Shatur / neovim-session-manager

A simple wrapper around :mksession.
GNU General Public License v3.0
510 stars 52 forks source link

Allow multiple startup options to be tried in order #123

Closed nuchs closed 4 months ago

nuchs commented 4 months ago

Describe the problem or limitation you are having On startup I'd like to load the session for the current directory if it exists or load the last session if it doesn't

Describe the solution you'd like Either to add a new value for autoload_mode e.g. CurrentDirThenLast to specify this behaviour or to make autoload_mode be an ordered list where each startup options is tried in turn until one succeeds.

Describe alternatives you've considered n/a

Additional context I'm just about to go on holiday but I'd be happy to contribute a pull request when I get back if that helps.