natecraddock / workspaces.nvim

a simple plugin to manage workspace directories in neovim
MIT License
309 stars 15 forks source link

feat: Adding "auto_dir" to enable a "DirChanged" autocmd #43

Closed ejrichards closed 1 month ago

ejrichards commented 1 month ago

This adds an option to create a "DirChanged" autocmd that will activate (and "deactivate") the workspace if the directory is changed not via this plugin, for example, via a manual ":cd" or another plugin.

I thought the deactivate part is useful since I personally added the workspace name to my status bar, and the current workspace would remain if I used ":cd" to change to another directory.

I set the config default to off.

Let me know if you like this feature and if the naming is ok, I wasn't sure the best name for the config option.

natecraddock commented 1 month ago

Looks good thank you!

Do you mind updating the workspaces.txt documentation file so this can also be found in the help page?

ejrichards commented 1 month ago

Missed that one, updated now