Skip to content

Keybindings

Fresh

Default prefix is ctrl+b. prefix+n means press the prefix, then n. Open the in-app help panel with prefix+?.

Essentials

ActionKey
Detach clientprefix+q
New tabprefix+c
Next / previous tabprefix+n / prefix+p
Switch tab by numberprefix+1..9
Workspace navigationprefix+w
New workspaceprefix+shift+n
New worktreeprefix+shift+g
Gotoprefix+g
Toggle sidebarprefix+b
Keybind helpprefix+?

Panes

ActionKey
Split rightprefix+v
Split downprefix+minus
Focus left / down / up / rightprefix+h / prefix+j / prefix+k / prefix+l
Swap left / down / up / rightprefix+shift+h/j/k/l
Cycle next / previousprefix+tab / prefix+shift+tab
Zoomprefix+z
Resize modeprefix+r
Close paneprefix+x
Copy modeprefix+[

Copy mode

ActionKey
Moveh/j/k/l, w/b/e, { / }
Start selectionv or Space
Copy selectiony or Enter
Leave without copyingq or Esc

Workspace and tab management

ActionKey
Rename workspaceprefix+shift+w
Close workspaceprefix+shift+d
Switch workspace by numberprefix+shift+1..9
Rename tabprefix+shift+t
Close tabprefix+shift+x
Focus agent by numberprefix+alt+1..9
ActionKey
Workspace up / downup / down (or bind j/k)
Pane left / down / up / righth / j / k / l (or ctrl+j style)

Left and right arrows are permanent aliases for pane-left and pane-right navigation.

Direct attach

ActionKey
Detach from direct attachctrl+b q
Send literal ctrl+bctrl+b ctrl+b

Customizing

Override in ~/.config/herdr/config.toml:

[keys]
prefix = "ctrl+b"
new_tab = "prefix+c"
split_horizontal = "prefix+minus"
next_tab = ["prefix+n", "ctrl+alt+]"]

Custom command keybindings:

[[keys.command]]
key = "prefix+alt+g"
type = "pane"          # temporary pane, closes when the command exits
command = "lazygit"
description = "run lazygit"

type = "shell" runs detached in the background. Custom commands receive HERDR_SOCKET_PATH, HERDR_BIN_PATH, HERDR_ACTIVE_WORKSPACE_ID, HERDR_ACTIVE_TAB_ID, HERDR_ACTIVE_PANE_ID, and HERDR_ACTIVE_PANE_CWD when available.

To reset old custom keybindings to the v2 defaults: herdr config reset-keys (backs up config.toml first). Full syntax rules in Configuration.