Documentation

guide

Keybindings

croot has a small default keyboard layer and a larger set of opt-in shortcuts. Defaults work immediately; opt-in actions only become active after you add them to ~/.config/croot/config.toml.

Built-in Defaults

KeyAction
UpMove cursor up
DownMove cursor down
LeftCollapse directory
RightExpand directory
HomeJump to top
EndJump to bottom
/Open unified workspace search
mToggle Markdown rendered/raw preview
Ctrl+C / Super+CQuit, or copy selected preview text

The unified search overlay queries both path names and file contents for the same input. Path-name matches appear inline with grouped content matches, and matching characters are highlighted directly in the result rows.

Inside the overlay, Up / Down move through results, Enter selects the current path or match inside croot, Enter on a grouped text result toggles collapse, Tab reveals the underlying path in the tree, and Esc cancels. Selecting a text match also opens preview, jumps to the matched line, and highlights the matched content.

Opt-in Shortcuts

These actions have no default key until you configure them:

Config keyExampleAction
quitqQuit
filterfLegacy alias for unified workspace search
global_searchsLegacy alias for unified workspace search
global_search_contentSLegacy alias for unified workspace search
toggleoToggle directory expand/collapse
refreshrRefresh tree
new_fileaCreate new file
new_dirACreate new directory
renameRRename selected file or directory
deleteDDelete selected file or directory
toggle_previewpToggle preview pane
open_in_editoreOpen selected file in editor
open_externallyxOpen selected file with the system default app
collapse_allWCollapse all directories
branch_pickerbOpen the git branch picker
enterEnterToggle directory or open selected file

Customizing Keybindings

[keybindings]
# Override built-in defaults. Overrides replace the original key.
cursor_up = "Up"
cursor_down = "Down"
search = "/"

# Disable a built-in binding by setting it to an empty string.
# search = ""

# Enable opt-in bindings, including optional legacy search aliases.
filter = "f"
global_search = "s"
global_search_content = "S"
quit = "q"
toggle_preview = "p"
new_file = "a"
new_dir = "A"
rename = "R"
delete = "D"
open_in_editor = "e"
open_externally = "x"
enter = "Enter"

Key Format

  • Single characters: q, a, /
  • Special keys: Enter, Esc, Tab, Space, Backspace, Delete
  • Arrow keys: Up, Down, Left, Right
  • Navigation names: 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