From 8ff027c6d6551bfedd8332f5e4514f16612ffb74 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Fri, 20 Mar 2026 22:50:36 +0200 Subject: 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.). --- internal/repl/commands.go | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'internal/repl') 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 -- cgit v1.2.3