Navigation with HJKL #163
-
Seeking to emulate atom's tree-view component, I'd like for hjkl to operate like so in neo-tree buffers: h - out (i.e up to parent dir when on a file, close dir when on a dir) does neotree expose commands to setup those bindings? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
With the |
Beta Was this translation helpful? Give feedback.
-
hey is there a way to modify this to allow pressing l on a file itll just automatically decide to open instead of expanding the directory ? |
Beta Was this translation helpful? Give feedback.
out
andin
don't exist, but you can create custom functions that do this, see::h neo-tree-custom-commands
neo-tree.nvim/lua/neo-tree/sources/common/commands.lua
Line 180 in 75cde5d
neo-tree.nvim/lua/neo-tree/sources/filesystem/init.lua
Line 326 in 75cde5d
With the
next_sibling
/prev_sibling
commands, I know I've used them before but I can't remember, in what situation is it different than a standard j/k navigation?