rmagatti / auto-session

A small automated session manager for Neovim
MIT License
1.26k stars 47 forks source link

Option to ignore certain directories #15

Closed Adictya closed 3 years ago

Adictya commented 3 years ago

Description:

  1. A global variable to store list of blacklisted directories which would not auto save/restore sessions. eg.
    let g:auto_session_ignore = ["~/","~/Expermiments"]
  2. Optionally matched using regex (*) operator to handle all sub directories eg.
    let g:auto_session_ignore = ["~/Expermiments/*"]

    doesnt save session for all sub directories of Experiments

Motivation

First of all amazing plugin, after sifting through loads of legacy plugins I was able to find just what I was looking for.

However my usage pattern involves opening up my terminal by default in home directory and relying on startify to navigate. It would be greate if I could still reatain that somewhat as I use it to primarily navigate to my config files. I also have an experiments folder where I prefer to not have the auto session behaviour. Could be a nice to have feature for those who need it?

Adictya commented 3 years ago

16

rmagatti commented 3 years ago

Hey, thanks for the submission @Adictya. Yeah I agree that would be a welcome addition!

rmagatti commented 3 years ago

Implemented in https://github.com/rmagatti/auto-session/pull/17