Closed echasnovski closed 2 years ago
I would appreciate if it was possible to create project-local sessions. Or alternatively, automatically make the outer terminal cd
to the correct directory when opening a session (is that even possible?) Sorry if this is already a thing, I haven't played around that much with sessions.
Thanks for the feedback!
Well, session is just a file which should be sourced. There is a possibility to create project-local sessions: look for certainly named file (Session.vim
by default) inside current working directory. I thought about it but decided to stick to what 'vim-startify' seemed to be doing.
I wasn't sure how to align this possibility with quite clean idea of "all session files are stored in this configured directory". Maybe something like MiniSessions.config.use_local
? If nil
, don't search in current working directory, if string - search for that file inside current working directory and display it first?
Adam, thank you once again for constructive feedback. I never use local sessions because i use start screen to choose a session, so I just forgot to implement this.
Now 'mini.sessions' can handle global and local sessions. It is primarily designed for two workflows:
config.autoread
is true
and global sessions are disabled.
Please leave your feedback about new 'mini.sessions' module here. Feel free to either add new comment or positively upvote existing one.
Some things that I am interested to find out (besides seemingly omnipresent bugs):
read
andwrite
for managing session files. I understand that they are different fromload
andsave
in 'vim-startify', but are they intuitive enough for you?