Sessions being merged when selecting a different session #164
Unanswered
rbhanot4739
asked this question in
Q&A
Replies: 1 comment
-
Actually, there's nothing in that behaviour which is unexpected and I touch on your use case in the README, see the Events/Callbacks section:
The loading of a session simply uses vim's native source function ( |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
First of all thank you for the amazing plugin and it looks very promising. However, I am noticing weird behavior, i.e. when I switch to another session from within an existing session, the previous session gets merged with newly opened session, which is undesirable in my opinion if the sessions are from different directories or projects. Here is step by step breakdown of what I am experiencing
dir1
and open a bunch of files, and then quit it. The session is saved correctly; next time you launch vim, the session is restored correctly.dir2
) and repeat step 1.dir2
either with:Telescope persisted
or:SessionSelect
, the buffers fromdir1
anddir2
are merged together.dir1
and launch nvim again; the new loaded session fordir1
now has buffers fromdir2
merged.I am not sure if this is the desired behavior, but this sort of breaks the sessions for different directories or branches. The ideal and expected behaviour would be to somehow close all the buffers of the current session before the new session is loaded.
Btw this is my config
Beta Was this translation helpful? Give feedback.
All reactions