koshi0.1.0
Keybindings

Actions

Built-in action names available to keybindings and how to inspect their scope and targets.

A binding names a full action reference such as core:new-pane-right. Run:

koshi actions list
koshi actions explain core:new-pane-right

list shows actions implemented by the running version. explain shows one action's description, scope, accepted targets, and related CLI command.

Pane actions

ActionResult
core:new-paneNew shell pane in configured direction
core:new-pane-leftNew shell pane left
core:new-pane-downNew shell pane below
core:new-pane-upNew shell pane above
core:new-pane-rightNew shell pane right
core:new-pane-stackedAdd shell pane to focused stack
core:runRun a command in a new pane
core:close-paneClose focused pane
core:close-pane-treeClose pane and every process it started
core:resize-paneResize along an explicit edge
core:resize-pane-leftMove border left
core:resize-pane-downMove border down
core:resize-pane-upMove border up
core:resize-pane-rightMove border right
core:focus-paneFocus an explicit pane
core:focus-pane-leftFocus pane left
core:focus-pane-downFocus pane below
core:focus-pane-upFocus pane above
core:focus-pane-rightFocus pane right
core:toggle-pane-fullscreenToggle focused-pane fullscreen
core:write-to-paneSend text to a pane

Tab, session, and client actions

ActionResult
core:new-tabCreate tab
core:close-tabClose focused tab
core:focus-tabFocus explicit tab
core:next-tabFocus next tab
core:previous-tabFocus previous tab
core:move-tabMove tab to another index
core:lockEnable pass-through lock mode
core:unlockDisable pass-through lock mode
core:toggle-lockToggle pass-through lock mode
core:mouse-selectToggle mouse-selection mode
core:quitEnd koshi

Binding rules

Write the namespace: core:new-tab, not new-tab. Bindings accept no action arguments. Fixed choices belong in the action name; open values such as a pane id, tab index, or text belong to the CLI.

keybinding.kdl
version 1

mode "normal" {
    bind "<A-h>" "core:focus-pane-left"
    bind "<A-l>" "core:focus-pane-right"
}

On this page