summaryrefslogtreecommitdiff
path: root/internal/repl/help_test.go
AgeCommit message (Collapse)Author
2026-05-25fix: help <TAB> offers operator topics, not 'help help'Paul Buetow
When user types 'help ' (with trailing space), the completer now offers help topic completions (+, dup, swap, etc.). Just 'help' without a space still completes the command normally. Also skip 'help' itself from GetCompletionTopics to avoid suggesting 'help help'.
2026-05-25fix: exclude 'help' from help topic completionsPaul Buetow
'help <TAB>' was suggesting 'help help'. Skip 'help' itself in GetCompletionTopics so tab completion offers actual topics.
2026-05-25feat: inline help system with per-operator topics and auto-completionPaul Buetow
Replace the old static help text with a data-driven help system that provides one help entry per operator, function, or REPL command, each with category, description, usage, and examples. - help.go: 35+ help topics covering all operators (arithmetic, comparison, stack, hyper, variables, constants, REPL commands) - GetHelp(topic) returns formatted help; GetHelp("") returns overview - help categories lists all topics grouped by category - Aliases supported (e.g. help gt shows help for > operator) - Auto-completion for help topics when typing 'help <TAB>' - REPL entries take priority in helpByTopic (e.g. 'help clear' shows screen clear, not RPN variable clear) - Comprehensive tests for all public functions