tpope / tpope/vim-obsession

Obsession! does not unlet v:this_session

Open
#47 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Vim Script
Stars
1.9k
Forks
73
PR merge metrics
No merged PRs in 30d

Description

Since session tracking is stopped and the relevant file deleted, I contend that v:this_session should be unlet.

This is mostly because after running Obsession! the status indicator shows [S], as though there were (paused) tracking.

A different solution would be to remove the v:this_session part of the check from the status line flags, but I imagine part of the idea there was to keep the status line flag visible even when using non-Obsession session files.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the Obsession! command handling and the status-line flag logic that checks v:this_session. Confirm the behavior after stopping tracking and deleting the session file; done means v:this_session is unset and the status indicator no longer shows [S], while the issue's stated non-Obsession session-file behavior remains intact.

Written by the indexing model from the issue text.

Assessment

Tech stack
vim
Domain
tooling
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.