Keybindings & Editing
The prompt is a real editor with modal editing and familiar shortcuts.
Built-in shortcuts
These work in insert mode (the default):
| Key | Action |
|---|---|
Ctrl+A | Line start |
Ctrl+E | Line end |
Ctrl+B | Back one char |
Ctrl+F | Forward one char |
Ctrl+W | Delete word back |
Ctrl+K | Kill to end |
Ctrl+U | Kill to start |
Ctrl+R | History search |
Ctrl+P | Context picker |
Ctrl+C | Cancel/interrupt |
Ctrl+D | EOF (exit if empty) |
Alt+B | Word back |
Alt+F | Word forward |
Normal mode (Helix-style)
Press Esc to enter normal mode for selection-first editing:
| Key | Action |
|---|---|
h/l | Move left/right |
j/k | Move down/up (or history) |
w/b | Word forward/back |
0/$ | Line start/end |
x | Select line |
d | Delete selection |
c | Change selection |
y | Yank selection |
p/P | Paste after/before |
u/U | Undo/redo |
i/a | Insert mode (at/after cursor) |
I/A | Insert at line start/end |
o/O | Open 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
-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
gutter = true # show mode indicator
History search
- Ctrl+R opens history picker
- Fuzzy search across all history
- Select with arrows, Enter to insert