@zigai/pi-keymap-tweaks

Pi package for opinionated editor and message-submit key tweaks.

Packages

Package details

extension

Install @zigai/pi-keymap-tweaks from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:@zigai/pi-keymap-tweaks
Package
@zigai/pi-keymap-tweaks
Version
0.1.3
Published
Jun 14, 2026
Downloads
263/mo · 263/wk
Author
zigai
License
MIT
Types
extension
Size
8.1 KB
Dependencies
0 dependencies · 2 peers
Pi manifest JSON
{
  "extensions": [
    "./src/index.ts"
  ]
}

Security note

Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.

README

Pi Keymap Tweaks

npm version npm downloads license

This Pi extension collects opinionated editor and message-submit key tweaks.

Features

  • Makes Enter queue a follow-up and Alt+Enter steer the current run.
  • Normalizes terminal LF Enter input to submit correctly in SSH/TMUX sessions.
  • Adds Codex-style line start/end behavior for Pi's configured tui.editor.cursorLineStart and tui.editor.cursorLineEnd actions:
    • 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"]
}

Install

pi install npm:@zigai/pi-keymap-tweaks

License

MIT