Practical usage of nvim-tree in Neovim

Here is a summary of commonly used commands. There are still many features that haven’t been convered yet. I will continue to add them as I use them in the future.

Basic Features

ShortcutsFunction
aCreate File Or Directory
dDelete
cCopy
xCut
pPaste
oOpen File in current window Or Expand a Directory
qClose
rRename
eRename: Basename
yCopy Filename
YCopy Relative Path
gyCopy Absolute Path

Quick navigation in the file tree

ShortcutsFunction
<CTRL-]>Change current directory
BackSpaceClose floder of current file
-Set the working directory to the parent directory of current working directory
PMove to the parent directory of current file
>Move to next sibling
<Move to previous sibling
JMove to the last sibling
KMove to the first sibling
EExpand All
WCollapse All

Buffer and Tab management

ShortcutsFunction
Ctrl-TOpen file in new tab
Ctrl-VOpen file in current window by vertival split
Ctrl-XOpen file in current window by horizontal split
TabOpen preview

Git integration

I’m not very familiar with Git-related features currently.

Other useful key mappings

ShortcutsFunction
BToggle Filter: Display only files currently loaded in the buffer
Ctrl-KShow information of the file
g?Help
RRefresh
comments powered by Disqus