Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Auto save overrides wrong git-based-session file after switching sessions #389

Closed
rmagatti opened this issue Oct 18, 2024 Discussed in #388 · 0 comments · Fixed by #387
Closed

[BUG] Auto save overrides wrong git-based-session file after switching sessions #389

rmagatti opened this issue Oct 18, 2024 Discussed in #388 · 0 comments · Fixed by #387

Comments

@rmagatti
Copy link
Owner

Discussed in #388

Originally posted by rbhanot4739 October 18, 2024
Hello,

Thank you for writing this amazing plugin. I have the following query

  1. Let's say I create a session for branch A for repo in cwd.
  2. Switch to git branch B from the terminal, open Nvim again, and create/save a session.
  3. Now switch again to branch A from terminal and open nvim, the correct session (for branch A) is restored.
  4. Quit and reopen Nvim and select session for branch B for the same cwd using session lens and then quit nvim.
  5. Open nvim and the session for the current branch A is overridden with branch B.

While I understand this is the expected behaviour because when I load session for branch B and then quit nvim the session for cwd is replaced with session for branch B, is there any way I can keep the sessions for different branches isolated even if I open these sessions within neovim similar to how sessions for different cwds are handled.

cameronr added a commit that referenced this issue Oct 18, 2024
feat: autosave manually named sessions,  #386, #389
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant