2.3 KiB
2.3 KiB
Neo-tree File Explorer Cheat Sheet
Opening/Closing
\- Toggle Neo-tree reveal (show tree with current file highlighted)q- Close Neo-tree window<Esc>- Cancel/close preview or Neo-tree window
Navigation
j/k- Move down/up in the file listl- Focus preview window<CR>(Enter) - Open file or toggle directory expand/collapse<Space>- Toggle directory expand/collapse<Backspace>- Navigate up one directory level.- Set current directory as root
Directory Expand/Collapse
<Space>- Toggle expand/collapse directory<CR>(Enter) - Open file OR toggle directoryC- Close node (collapse directory)z- Close all nodes (collapse all directories)
File Operations
a- Add new file (prompts for name)A- Add new directoryd- Delete file/directoryr- Rename file/directoryc- Copy (prompts for destination path)m- Move (prompts for destination path)y- Copy to clipboardx- Cut to clipboardp- Paste from clipboardb- Rename basename only (keep path)
File Opening
<CR>- Open in current windows- Open in vertical splitS- Open in horizontal splitt- Open in new tabw- Open with window picker
Display & Navigation
H- Toggle hidden files/- Fuzzy finder (search files in tree)f- Filter on submit<C-x>- Clear filteri- Show file detailsR- Refresh tree?- Show help (displays all available mappings)
Git Navigation
[g- Previous git modified file]g- Next git modified file
Sorting
Press o to show the order by menu, then:
oc- Order by created dateod- Order by diagnosticsog- Order by git statusom- Order by modified dateon- Order by nameos- Order by sizeot- Order by type
Custom Mappings (from your config)
<leader>sf- Telescope find files in current directory<leader>sg- Telescope live grep in current directory
Preview Window
P- Toggle preview window<C-f>- Scroll preview down<C-b>- Scroll preview up
Tips
- Use
?inside Neo-tree to see all available commands and their keybindings - The tree follows your current file automatically (if
follow_current_fileis enabled) - Hidden files (dotfiles) are toggled with
H - Most operations can be cancelled with
<Esc>