@zigai/pi-keymap-tweaks
v0.2.0
Published
Pi package for opinionated editor and message-submit key tweaks.
Maintainers
Readme
Pi Keymap Tweaks
Opinionated editor and message-submit key tweaks for Pi.
Features
- Makes
Enterqueue a follow-up andAlt+Entersteer the current run. - Normalizes terminal
LFEnter input to submit correctly in SSH/TMUX sessions. - Prevents
Upfrom recalling prompt history while a non-empty draft is open. - Uses Pi's configured
app.models.clearAllkey (recommended asCtrl+X) to copy and delete the current editor line. - Adds Codex-style line start/end behavior for Pi's configured
tui.editor.cursorLineStartandtui.editor.cursorLineEndactions:- line start moves to the previous line when already at column 0
- line end moves to the next line when already at the current line end
Recommended keybindings
This extension provides behavior; key assignments still live in your Pi keybindings config.
{
"tui.editor.cursorWordLeft": ["ctrl+a", "ctrl+left", "alt+left", "alt+b"],
"tui.editor.cursorWordRight": ["ctrl+d", "ctrl+right", "alt+right", "alt+f"],
"tui.editor.cursorLineStart": ["home", "ctrl+q"],
"tui.editor.cursorLineEnd": ["end", "ctrl+e"],
"tui.editor.deleteCharForward": ["delete"],
"app.models.clearAll": ["ctrl+x"]
}Install
pi install npm:@zigai/pi-keymap-tweaksLicense
MIT
