ms-jpq / chadtree

File manager for Neovim. Better than NERDTree.
1.62k stars 60 forks source link

Feature Request: Close Tree on File Selection #327

Open porl opened 1 year ago

porl commented 1 year ago

I have CHADtree set to pop open on a keybind. It would be useful if there was a configuration option that would cause the tree window to close/hide when a file is opened. That way on my smaller screen I don't need to manually close it after selecting my file, especially on a smaller screen.

I guess this could also be implemented as an extra keybind (as you have the default chadtree_settings.keymap.primary and chadtree_settings.keymap.secondary).

If there is an easy way to do this with external lua script instead then sorry, I've used basic plugin-free vim for years but only just started looking into these plugins/lua stuff recently.