Replies: 1 comment 1 reply
-
You should be able to achieve that with |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Since when I started using nvim-tree I missed the possibility to collapse a directory having focus on any file inside it instead of focusing the directory itself and then toggling it, which could be tedious for very large directories. The actual function is really simple and straight forward:
My concerns are about what section of the API it belongs to. It could be
api.node.collapse
,api.tree.collapse_current
or even something else. I'm also not sure about which file should I put the function in, I would probably choose thelib
module (because it's similar tolib.expand_or_collapse
), but maybe there is a more appropriate location.Let me know your considerations so that I can eventually open a PR with all the changes and the updated documentation.
Beta Was this translation helpful? Give feedback.
All reactions