-
Notifications
You must be signed in to change notification settings - Fork 19
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
:PossessionSave
closes all non-visible buffers
#18
Comments
This is most likely caused by setup option |
I see, but why does vim.o.sessionoptions:match('buffer') and 'before_save' instead be this: not vim.o.sessionoptions:match('buffer') and 'before_save' Here's what
|
Yeah, maybe it's confusing, it's partially due to "historic" reasons. I added this because I don't like saving hidden buffers, because I can easily have tens of "throwaway" buffers open due to jumping through the code. And these would accumulate when changing sessions, so buffers from session A would still be there in session B (and then would be saved). At that time there was no |
:PossessionSave
closes any buffer that's not in a window. To reproduce, use the following config:Click to expand
Here's the output of the first
:buffers
:And here's the output of the second
:buffers
:You get the same behaviour if you run
:PossessionSave
manually from inside Neovim.The text was updated successfully, but these errors were encountered: