Skip to content

Is there a way to sort the results by match? #18

@SqrtRyan

Description

@SqrtRyan

First off, thank you so much for this package - it's soooo useful!

That being said, is there a way to sort the results by how well they match?
When I'm searching for large file paths, it's kinda annoying that irrelevant queries pop up first just by random chance.

For example, given the query 'abc', and file paths

/files/And/Butterflies/and/Cookies
/abc
/things/And/stuff/But/Crackers

it's annoying that /abc, the obvious best match, isn't on the far top or the far bottom. Is there a way to remedy this? Sorting is pretty fast in python, so I wouldn't mind waiting for it to re-sort the entire list every time the screen updates if nessecary

Thank you,
Ryan

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions