Documentation

guide

Keybindings

croot provides two layers of keybindings: built-in defaults that work out of the box, and opt-in bindings you can enable in your config.

KeyAction
Up / kMove cursor up
Down / jMove cursor down
Left / hCollapse directory
Right / lExpand directory
Home / gJump to top
End / GJump to bottom
EnterToggle directory or open file
PageUpScroll page up
PageDownScroll page down

Search & Filter

KeyAction
/Fuzzy search — jump to match
fFilter — show only matching files
sGlobal search — fd filename search
SGlobal content search — rg content search
TabNext search match
Shift+TabPrevious search match
EscCancel search/filter

Preview

KeyAction
pToggle preview pane
mToggle Markdown rendering (raw/rendered)

File Operations

KeyAction
aCreate new file
ACreate new directory
RRename file/directory
DDelete file/directory
eOpen in editor
xOpen externally (Finder, xdg-open)

Other

KeyAction
qQuit
rRefresh tree
oToggle expand/collapse
WCollapse all directories
bBranch picker (git repos)
Ctrl+CForce quit
Right-clickContext menu

Customizing Keybindings

All keybindings are configurable in ~/.config/croot/config.toml:

[keybindings]
# Override defaults
cursor_up = "Up"
cursor_down = "Down"
search = "/"
filter = "f"

# Enable opt-in bindings
quit = "q"
toggle_preview = "p"
new_file = "a"
delete = "D"

# Disable a binding by setting it to empty string
# filter = ""

Key Format

  • Single characters: q, a, /
  • Special keys: Enter, Esc, Tab, Space, Backspace, Delete
  • Arrow keys: Up, Down, Left, Right
  • Navigation: Home, End, PageUp, PageDown
  • Function keys: F1 through F12
  • Modifiers: Ctrl+c, Shift+a, Alt+x, Super+k
  • Uppercase letters automatically include Shift: S = Shift+s