Skip to content

feat: zsh-like dynamic completion for colon commands - #7

Merged
sergiorandria merged 1 commit into
mainfrom
dev
Sep 2, 2026
Merged

feat: zsh-like dynamic completion for colon commands#7
sergiorandria merged 1 commit into
mainfrom
dev

Conversation

@sergiorandria

Copy link
Copy Markdown
Owner

Bash required double-Tab and showed only common prefix; zsh shows all on single Tab, cycles with menu-complete, colored prefix/stats, case-insensitive, and annotated list.

  • setup_zsh_completion(): show-all-if-ambiguous/on, completion-ignore-case, colored-completion-prefix/stats, menu-complete-display-prefix, skip-completed-text, completion-query-items=0, Tab->menu-complete, Shift-Tab->menu-complete, display hook with descriptions
  • case-insensitive generators for :help etc., :stack sub-commands (pop/push/clear/rm/set/swap/edit), :security keys/values
  • file completion for :load/:I/:L/:lib via rl_filename_completion_function
  • zsh_display_matches: colored "cmd -- desc" list, fallback to rl_display_match_list for files
  • heap/trace commands + interpreter support (getSymbolAddress, heapLayout, trace)

Description

Type of change

  • Bug fix
  • New feature
  • Performance / Refactor
  • Documentation
  • CI / Build

How Has This Been Tested?

Checklist

  • cmake -B build && cmake --build build -j passes
  • Tested with clang-format
  • Updated README.md / docs if needed
  • Added example or test if applicable

Bash required double-Tab and showed only common prefix; zsh shows
all on single Tab, cycles with menu-complete, colored prefix/stats,
case-insensitive, and annotated list.

- setup_zsh_completion(): show-all-if-ambiguous/on, completion-ignore-case,
  colored-completion-prefix/stats, menu-complete-display-prefix,
  skip-completed-text, completion-query-items=0, Tab->menu-complete,
  Shift-Tab->menu-complete, display hook with descriptions
- case-insensitive generators for :help etc., :stack sub-commands
  (pop/push/clear/rm/set/swap/edit), :security keys/values
- file completion for :load/:I/:L/:lib via rl_filename_completion_function
- zsh_display_matches: colored "cmd -- desc" list, fallback to
  rl_display_match_list for files
- heap/trace commands + interpreter support (getSymbolAddress, heapLayout, trace)
@sergiorandria
sergiorandria merged commit 6360fd7 into main Sep 2, 2026
6 checks passed
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.

1 participant