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

Prefer filename matches when doing search #1015

Closed
non25 opened this issue Jul 17, 2021 · 2 comments
Closed

Prefer filename matches when doing search #1015

non25 opened this issue Jul 17, 2021 · 2 comments
Labels
enhancement Enhancement to performance, inner workings or existent features wontfix This will not be worked on

Comments

@non25
Copy link

non25 commented Jul 17, 2021

Hi! Telescope is amazing. Thanks a lot. Now I'm just going to fill the form. 😁

Is your feature request related to a problem? Please describe.
I'm always frustrated when I type exact name of a file, like SomeInterestingName, and it will print paths containing parts of this filename first:

DifferentPath/WhichContains/WhatImLookingFor/SomeInterestingName.tsx
SomeInteresting/Name/SomethingCompletelyUnrelatedAgain.tsx
SomeInterestingName/SomethingCompletelyUnrelated.tsx
SomeInterestingName/SomethingCompletelyUnrelatedAgain.tsx

Describe the solution you'd like
I would like it to give filename matches more priority.

SomeInteresting/Name/SomethingCompletelyUnrelatedAgain.tsx
SomeInterestingName/SomethingCompletelyUnrelated.tsx
SomeInterestingName/SomethingCompletelyUnrelatedAgain.tsx
DifferentPath/WhichContains/WhatImLookingFor/SomeInterestingName.tsx

Describe alternatives you've considered
Not doing anything, replacing fuzzy finding engine in Telescope somehow?

Additional context
If that is not enough to get point accross I'll add more.

@non25 non25 added the enhancement Enhancement to performance, inner workings or existent features label Jul 17, 2021
@fdschmidt93
Copy link
Member

I think this is something for a potential break_ties option to our pickers.

I'm happy to guide if you are willing to contribute on this comparably straightforward project. Please see #1190 and "custom tiebreak".

@fdschmidt93 fdschmidt93 added the wontfix This will not be worked on label May 22, 2022
@fdschmidt93
Copy link
Member

This should now be achievable via tiebreak, see :h telescope.defaults.tiebreak or probably better with an optimized sorter https://github.com/natecraddock/telescope-zf-native.nvim .

In any case, closing as wontfix from telescope.nvim side.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement to performance, inner workings or existent features wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants