KOSHI0.6.0
Keybindings
v0.5keybindingsfield manual

Default keymap

The default shortcuts for opening, moving, resizing, and closing panes, tabs, and sessions.

The default leader is the Ctrl modifier run, so <leader>p becomes <C-p>.

Normal mode

KeysAction
<C-l>Lock input
<C-q>Quit — leave the session, which keeps running
<C-g>Toggle mouse-selection mode
<C-p> nNew pane in configured direction
<C-p> hNew pane left
<C-p> jNew pane below
<C-p> kNew pane above
<C-p> lNew pane right
<C-p> sNew pane in the focused pane's stack
<C-p> mMove an existing pane
<C-p> xClose pane and its process tree
<C-p> ←↓↑→Focus nearby pane
<C-s> ←↓↑→Resize pane one cell
<C-t> nNew tab
<C-t> xClose tab
Alt+fToggle pane fullscreen
TabNext tab
Shift+TabPrevious tab

Focus and resize actions repeat from an open prefix: <C-s> ← ← ← moves the border three cells.

Move a pane

After <C-p> m, use these keys to preview a move:

KeysResult
←↓↑→Choose a pane to swap with
Shift+←↓↑→Choose an edge to insert beside a pane or stack
SpaceCycle split spans
Tab / Shift+TabPreview the next / previous visible tab
EnterAccept the move
EscCancel the preview

The preview appears only on the client that started the move. Every attached client sees the changed layout after it is accepted. You can also drag a pane; hold Shift when starting the drag to insert it beside the target.

<C-q> detaches this terminal; it never ends a session on its own. With auto-close-session #true, it ends the session when no other terminal is attached. To end a session whatever that setting says, run koshi kill-session.

Locked mode

KeysAction
<C-l>Unlock input
<C-q>Quit — leave the session
<C-g>Toggle mouse-selection mode
<C-p> mMove an existing pane

Every other key passes to the focused program.

Inspect effective bindings

User config can replace or remove defaults. Check the merged result:

koshi keys list
koshi keys list --mode normal
koshi keys list --scope default
koshi keys list --scope user

See keybinding.kdl to customize it.

On this page