Skip to content

Improve @ file search autocomplete to prioritize filenames #21063

@sehoon38

Description

@sehoon38

Is your feature request related to a problem? Please describe.
Currently, searching for a file with @ (e.g. @hooks) using the fuzzy searcher prioritizes files with matching directory structures rather than matching the actual filename. For instance, src/abcdefg.tsx matches sr with the same score as asafsafasf/asf/srccer.tsx.

Describe the solution you'd like
Configure AsyncFzf to prioritize matches closer to the end of a path (the filename) and to break ties by choosing the shortest overall path.

Describe alternatives you've considered
N/A

Additional context
N/A

Metadata

Metadata

Assignees

Labels

status/need-triageIssues that need to be triaged by the triage automation.🔒 maintainer only⛔ Do not contribute. Internal roadmap item.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions