olimorris / persisted.nvim

💾 Simple session management for Neovim with git branching, autoloading and Telescope support

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Select which directory to save session for

Chaitanyabsprip opened this issue · comments

I am trying out this plugin after auto-session, I would like to have the functionality of choosing the directories I want to save session for, or specifying the directories I don't want to save the session for.

commented

Could you give me a bit more detail so I understand your use case?

So my auto-session configuration has a list of directories I want auto-session to work in. In case this list is empty, the plugin provides another configuration option which allows you to blacklist some directories that you don't want auto-session to work in. For e.g. you might not want auto-session to work in the home directory.

commented

Ahhh! Gotcha. Probably easier to implement than I expected. Okay will look at it in the next couple of days. Thanks for the suggestion.

commented

Also, could we just have a blocked_dirs option in the config which specifies which dirs you do not want to autosave or autoload from? Not sure if we need an allowed_dirs and a blocked_dirs one.

commented

@Chaitanyabsprip let me know what you think