Keybindings & Editing

The prompt is a real editor with modal editing and familiar shortcuts.

Built-in shortcuts

These work in insert mode (the default):

KeyAction
Ctrl+ALine start
Ctrl+ELine end
Ctrl+BBack one char
Ctrl+FForward one char
Ctrl+WDelete word back
Ctrl+KKill to end
Ctrl+UKill to start
Ctrl+RHistory search
Ctrl+PContext picker
Ctrl+CCancel/interrupt
Ctrl+DEOF (exit if empty)
Alt+BWord back
Alt+FWord forward

Normal mode (Helix-style)

Press Esc to enter normal mode for selection-first editing:

KeyAction
h/lMove left/right
j/kMove down/up (or history)
w/bWord forward/back
0/$Line start/end
xSelect line
dDelete selection
cChange selection
yYank selection
p/PPaste after/before
u/UUndo/redo
i/aInsert mode (at/after cursor)
I/AInsert at line start/end
o/OOpen line below/above

Multiline editing

Press Shift+Enter or Alt+Enter to insert a newline. Enter submits.

docker run
-p 8080:80
-v $(pwd):/app
nginx

Gutter indicator: The gutter shows the current mode (i│ for insert, n│ for normal).

config.toml
[input]
gutter = true # show mode indicator
  • Ctrl+R opens history picker
  • Fuzzy search across all history
  • Select with arrows, Enter to insert