feat:autosave session and tmp session for switching between sesssion and non-session#7
Conversation
b5a7056 to
d1b20e9
Compare
|
Thanks, at first glance this looks good. I didn't have much time lately, but I'll try to review this PR soon. |
|
Thank you for your work, this is really nice! I tested this and everything seems to work fine. I modified the config options to use a I pushed these modifications on this branch, I hope you don't mind (you had "allow changes from maintainers" enabled). |
|
I just noticed that when using I think it should be fine to merge this even with this issue. After all, it is a bug in these plugins to assume that a buffer will still be valid when the callback from But I was also thinking about a potential solution. One thing that comes to my mind would be to save current buffers list in |
It looks fine to me.
I haven't used it, but I will try to install it later.
I use bufferline.nvim to manage hidden buffers. Keeping hidden buffers is pretty important to me. |
|
Currently delete_buffers has some edge cases that may cause some plugins like nvim-notify, lspconfig, lsp-status to show errors due to invalid buffer.
Ok, I see now. This is a workflow that I didn't think about. I tested your fix, but I still run into an issue with nvim-notify when I load a session, then load another one while notify window is still visible: For now I removed your nvim-notify fix as I think it should live in a separate plugin, or maybe we can find a way to modify I don't want to hold this PR, as your auto-save function is working without problems. In theory |
|
Thanks for your work. I will try to do some more testing of |
|
@jedrzejboczar Oh, I forgot you enabled other plugins that can delete buffers. Nvim-notify needs to keep a buffer to display the message, my solution is not to delete the buffer. Obviously, this is not a good solution for other plugins. |
|
@wasden Currently |
|
Glad to hear this. And probably |
No description provided.