Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 22, 2026

The -q flag performs exact substring matching server-side, failing on typos. Users typing quickly or without visual aids get zero results for minor misspellings.

Changes

Client-side fuzzy matching: Query flag now applies sahilm/fuzzy to filter fetched results instead of server-side substring matching. Handles typos, partial matches, and fuzzy abbreviations with ranked results.

Modified files:

  • internal/cmd/issue/list.go: Apply fuzzy search to issue subjects
  • internal/cmd/project/list.go: Apply fuzzy search to project names
  • Updated flag descriptions to indicate fuzzy search capability

Examples:

# Typo tolerance
red-cli issue list -q "lgn"  # matches "login"

# Fuzzy abbreviations  
red-cli issue list -q "fxbg"  # matches "fix bug in..."

# Partial matches
red-cli project list -q "web"  # matches "Website Redesign"

Trade-off: Searches within pagination window (default 25 for issues, 1000 for projects). Users needing broader search can increase --limit.

Dependency: Added github.com/sahilm/fuzzy@v0.1.1 (1.4k stars, zero external dependencies, designed for VSCode-style search).

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • go.googlesource.com
    • Triggering command: /update-job-proxy /update-job-proxy tcp -m conntrack --ctstate INVALID,NEW -j DROP -errorsas -ifaceassert -nilfunc /opt/hostedtoolcache/go/1.24.11/x64/pkg/tool/linux_amd64/compile -V=f�� cac04d5b:docs/red-cli_config_editor.md -tests ux_amd64/covdata (dns block)
    • Triggering command: /update-job-proxy /update-job-proxy conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT /usr/bin/unpigz /bin/test -c la/UCA_Extended_cat-file e test -e mSign_Root_CA_-_G1.pem bash ps --root /var/run/docker/--wait e ps (dns block)
  • go.mongodb.org
    • Triggering command: /update-job-proxy /update-job-proxy tcp -m conntrack --ctstate INVALID,NEW -j DROP -errorsas -ifaceassert -nilfunc /opt/hostedtoolcache/go/1.24.11/x64/pkg/tool/linux_amd64/compile -V=f�� cac04d5b:docs/red-cli_config_editor.md -tests ux_amd64/covdata (dns block)
    • Triggering command: /update-job-proxy /update-job-proxy conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT /usr/bin/unpigz /bin/test -c la/UCA_Extended_cat-file e test -e mSign_Root_CA_-_G1.pem bash ps --root /var/run/docker/--wait e ps (dns block)
  • go.yaml.in
    • Triggering command: /update-job-proxy /update-job-proxy tcp -m conntrack --ctstate INVALID,NEW -j DROP -errorsas -ifaceassert -nilfunc /opt/hostedtoolcache/go/1.24.11/x64/pkg/tool/linux_amd64/compile -V=f�� cac04d5b:docs/red-cli_config_editor.md -tests ux_amd64/covdata (dns block)
    • Triggering command: /update-job-proxy /update-job-proxy conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT /usr/bin/unpigz /bin/test -c la/UCA_Extended_cat-file e test -e mSign_Root_CA_-_G1.pem bash ps --root /var/run/docker/--wait e ps (dns block)
  • gopkg.in
    • Triggering command: /update-job-proxy /update-job-proxy tcp -m conntrack --ctstate INVALID,NEW -j DROP -errorsas -ifaceassert -nilfunc /opt/hostedtoolcache/go/1.24.11/x64/pkg/tool/linux_amd64/compile -V=f�� cac04d5b:docs/red-cli_config_editor.md -tests ux_amd64/covdata (dns block)
    • Triggering command: /update-job-proxy /update-job-proxy conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT /usr/bin/unpigz /bin/test -c la/UCA_Extended_cat-file e test -e mSign_Root_CA_-_G1.pem bash ps --root /var/run/docker/--wait e ps (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>Greetings from Brazil. Oh, of course, I'd like fuzzy search in "list -q" param :)</issue_title>
<issue_description>The problem: today in my work I forgot my glasses (for real) at home, that's a problem of mine of course, but now I wanna type fast looking only to the screen (you know, using only the muscular memory) and I misstype some words here and there. So I'd like to suggest a simple fuzzy search, the same of frameworks like Fuzze.js in JS ecosystem, in Go/Ruby I don't know, but there should be an implementation for certain.</issue_description>

Comments on the Issue (you are @copilot in this section)

@MrJeffLarry Hello!

Sorry for late response, I totally understand i have my self dyslexia and this could make it easier

I will se what we can do thanks!</comment_new>


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 4 commits January 22, 2026 21:14
Co-authored-by: MrJeffLarry <369605+MrJeffLarry@users.noreply.github.com>
Co-authored-by: MrJeffLarry <369605+MrJeffLarry@users.noreply.github.com>
Co-authored-by: MrJeffLarry <369605+MrJeffLarry@users.noreply.github.com>
Co-authored-by: MrJeffLarry <369605+MrJeffLarry@users.noreply.github.com>
Copilot AI changed the title [WIP] Add fuzzy search to list -q parameter Add fuzzy search to issue and project list queries Jan 22, 2026
Copilot AI requested a review from MrJeffLarry January 22, 2026 21:22
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.

Greetings from Brazil. Oh, of course, I'd like fuzzy search in "list -q" param :)

2 participants