Replies: 1 comment
-
|
Thanks for sharing and the suggestion! The overall design of 'mini.sessions' is to serve as a thin layer between So I think rewriting this as a hooks might be a better fit for 'mini.sessions'. |
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
Uh oh!
There was an error while loading. Please reload this page.
-
mksessiondoes not save user-definedb:variables. Plugins that store per-buffer metadata lose it when a session is restored.I use a custom session config that appends buffer-variable restore commands to the session file after
mksession:Only uppercase string/number variables are preserved (these are internal plugin vars by convention).
Table support is feasible with vim.inspect but not essential.
Proposal: save_buffer_variables option in config (default false). When enabled, write() appends the restore commands to the session file. No changes to read() needed.
Happy to implement it myself!
Beta Was this translation helpful? Give feedback.
All reactions