Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Symbol Search / Autocomplete Sorting by Relevance #4327

Open
1 task done
martinbliss opened this issue Nov 25, 2023 · 1 comment
Open
1 task done

Implement Symbol Search / Autocomplete Sorting by Relevance #4327

martinbliss opened this issue Nov 25, 2023 · 1 comment
Labels
autocompletions Feedback for code completions in the editor enhancement [core label]

Comments

@martinbliss
Copy link

martinbliss commented Nov 25, 2023

Check for existing issues

  • Completed

Describe the feature

As a Zed user, I'd like Zed to sort the "most relevant" search results to the top of the suggestion list when typing out a symbol. The most relevant result is defined as the symbol where the percent match of characters (of the symbol) is highest.

If applicable, add mockups / screenshots to help present your vision of the feature

image
Above is a sample screenshot from Zed. In this screenshot, I typed "Controller" and expected Controller to be result 1 and not result 6 because the letters typed match more letters for entry 6 as opposed to entry 1.

@martinbliss martinbliss added admin read Pending admin review enhancement [core label] triage Maintainer needs to classify the issue labels Nov 25, 2023
@JosephTLyons JosephTLyons added autocompletions Feedback for code completions in the editor and removed triage Maintainer needs to classify the issue admin read Pending admin review labels Nov 27, 2023
@JosephTLyons JosephTLyons transferred this issue from zed-industries/community Jan 24, 2024
@notpeter notpeter changed the title Implement Symbol Search Sorting by Relevance Implement Symbol Search / Autocomplete Sorting by Relevance Jun 20, 2024
@v-rogg
Copy link

v-rogg commented Nov 10, 2024

I have the same problem using snippets. I can type an exact snippet, but it's not sorted to be the first option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autocompletions Feedback for code completions in the editor enhancement [core label]
Projects
None yet
Development

No branches or pull requests

3 participants