Skip to content

feat(prompt): Home/End/Ctrl+K/Alt-word shortcuts#123

Merged
esengine merged 1 commit into
mainfrom
fix/121-input-shortcuts
May 2, 2026
Merged

feat(prompt): Home/End/Ctrl+K/Alt-word shortcuts#123
esengine merged 1 commit into
mainfrom
fix/121-input-shortcuts

Conversation

@esengine

@esengine esengine commented May 2, 2026

Copy link
Copy Markdown
Owner

Closes #121.

Wires the readline keys long-time CLI users reach for and which were
silently dropped by the prompt input.

Added

  • Home / End — start / end of current line (joins the existing Ctrl+A / Ctrl+E)
  • Ctrl+K — kill from cursor to end of current line
  • Alt+B / Alt+F — jump cursor backward / forward by one word
  • Alt+Backspace — delete previous word (alias of the existing Ctrl+W)

Not changed

  • Ctrl+U keeps Reasonix's "clear whole buffer" behavior, not readline's "kill to start of line". The existing comment in multiline-keys.ts explains why — clearing a large paste needs an ergonomic single key.

Verification

  • npm run verify — typecheck, lint, build, 1791 tests all green
  • 8 new test cases in tests/multiline-keys.test.ts

Long-time CLI users reach for Home/End and Ctrl+K muscle-memory keys
that were never bound. Reuses the existing startOfLine/endOfLine
helpers and the previousWordStart helper used by Ctrl+W.

Ctrl+U keeps its non-standard "clear all" behavior — see comment.
@esengine esengine merged commit 08c14ad into main May 2, 2026
1 check passed
@esengine esengine deleted the fix/121-input-shortcuts branch May 2, 2026 11:35
ChasLui pushed a commit to ChasLui/DeepSeek-Reasonix that referenced this pull request May 23, 2026
Long-time CLI users reach for Home/End and Ctrl+K muscle-memory keys
that were never bound. Reuses the existing startOfLine/endOfLine
helpers and the previousWordStart helper used by Ctrl+W.

Ctrl+U keeps its non-standard "clear all" behavior — see comment.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Prompt input: add Home / End / Ctrl+U and other readline shortcuts

1 participant