diff options
| author | Paul Buetow <paul@buetow.org> | 2026-03-20 22:50:36 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-03-20 22:50:36 +0200 |
| commit | 8ff027c6d6551bfedd8332f5e4514f16612ffb74 (patch) | |
| tree | 0a1ae8e3b44258d6d98c4b1dea44b67e13860b3a /internal/repl/commands.go | |
| parent | 4636c649d74b5a620d70a32438869b2450daddb7 (diff) | |
internal/repl: Fix incorrect Vi mode documentation in help text
The help text incorrectly claimed to document Vi mode keybindings. The go-prompt library only supports Common and Emacs key binding modes, not Vi mode. Updated the help text to accurately describe the actual key bindings supported (Emacs mode with Ctrl+A, Ctrl+E, etc.).
Diffstat (limited to 'internal/repl/commands.go')
| -rw-r--r-- | internal/repl/commands.go | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/internal/repl/commands.go b/internal/repl/commands.go index ad8a34d..656f670 100644 --- a/internal/repl/commands.go +++ b/internal/repl/commands.go @@ -60,17 +60,17 @@ RPN (Reverse Polish Notation) Examples: rpn 1 2 3 dup Duplicate top value rpn show Show current stack state -Keyboard Shortcuts (Vi Mode): - Normal Mode: - i Enter Insert mode - a Append after cursor - 0 Move to beginning of line - $ Move to end of line - gg Move to top of history - G Move to bottom of history - Insert Mode: - ESC Return to Normal mode - Ctrl+C Cancel current input +Keyboard Shortcuts (Emacs Mode - default): + Ctrl+A Go to beginning of line + Ctrl+E Go to end of line + Ctrl+L Clear the screen + Ctrl+D Delete character under cursor + Ctrl+H Delete character before cursor (Backspace) + Ctrl+F Forward one character + Ctrl+B Backward one character + Ctrl+W Cut word before cursor + Ctrl+K Cut line after cursor + Ctrl+U Cut line before cursor History Navigation: Up Arrow Previous command |
