Skip to content

[Feature]: Fuzzy/prefix filtering in the slash-command menu #61

Description

@shauryagangrade

Problem

The interactive slash menu (/ then arrow keys) lists 11 commands with no
way to filter. Users who remember part of a command (e.g. "ollama") have to
scroll and read every entry.

Proposed approach

  • Add as-you-type filtering to _show_slash_menu: typing narrows choices
    (prefix and/or fuzzy match), Enter runs the top match.
  • prompt_toolkit/questionary support custom instructions; keep the Esc
    cancel and arrow-key behavior.

Where to look

  • gcode/ui.py:96-117 (_show_slash_menu), :23-36 (_SLASH_COMMANDS).

Acceptance criteria

  • Typing "oll" filters to /ollama and related entries.
  • Arrow keys and Esc still work; empty selection still returns "".

Difficulty

Low — good first issue.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueGood for newcomersui/uxInterface, usability, and user experience

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions