echasnovski / mini.nvim

Library of 40+ independent Lua modules improving overall Neovim (version 0.8 and higher) experience with minimal effort
MIT License
5.18k stars 187 forks source link

Beta-testing 'mini.sessions' #13

Closed echasnovski closed 2 years ago

echasnovski commented 2 years ago

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):

xigoi commented 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.

echasnovski commented 2 years ago

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?

echasnovski commented 2 years ago

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: