Skip to main content

Navigation and Keybindings

The current keybindings come from packages/gotui/internal/keybindings/keybindings.go.

Core navigation

KeyAction
Ctrl+]Next top-level tab
Ctrl+[Previous top-level tab
Ctrl+1Open Chat tab
Ctrl+2Open Logs tab
Ctrl+3Open Git tab
Ctrl+4Open Files tab
Ctrl+RRetry connection
Ctrl+C or Ctrl+QQuit
Ctrl+OOpen keybindings dialog

Chat input and message flow

KeyAction
EnterSend message
Ctrl+EnterAdd next step
Ctrl+JInsert newline
TabToggle focus between chat input and scroll area
Up / kScroll up
Down / jScroll down

Conversations

KeyAction
Ctrl+NNew conversation
Ctrl+WClose current conversation
Ctrl+EToggle conversation tree
Ctrl+PToggle command palette
Ctrl+SToggle context panel

Layout controls

KeyAction
Ctrl+TToggle chat layout mode
Ctrl+UToggle auto-tiling in window mode

The chat tab can switch out of its default panel-oriented layout into a window-oriented layout manager. Auto-tiling only matters when the window layout is active.

Files tab navigation

The Files tab has two focusable areas: the tree on the left and the preview on the right.

General

KeyAction
TabSwitch focus between tree and preview

File tree

KeyAction
Up / kMove up
Down / jMove down
Enter, Right, or lExpand or open selected item
Left or hCollapse selected directory

File preview

KeyAction
Up / kScroll up
Down / jScroll down
Home or gJump to top
End or GJump to bottom
PgUpPage up
PgDnPage down

Mouse click and wheel scrolling are also supported in the Files tab.

Leader key

The TUI also has a leader-key system. The default leader key is:

Ctrl+B

After pressing Ctrl+B, you can trigger a second key to run an action.

Common leader chords

ChordAction
Ctrl+B, gOpen keybindings
Ctrl+B, nNew conversation
Ctrl+B, wClose conversation
Ctrl+B, eConversation tree
Ctrl+B, tToggle layout mode
Ctrl+B, sContext panel
Ctrl+B, pCommand palette
Ctrl+B, uToggle auto-tiling
Ctrl+B, fFiles tab
Ctrl+B, lLogs tab
Ctrl+B, dOpen steps panel
Ctrl+B, oOpen todos panel
Ctrl+B, mToggle text mode / click mode
Ctrl+B, rRetry connection
Ctrl+B, qQuit

Custom keybindings

The TUI keybinding dialog allows rebinding keys, and the shared keymap loads persisted overrides from the user's config directory under codebolt/keybindings.json.

See Onboarding and Settings for the settings dialogs.