Skip to content

fix: prefer exact keyword match over score match#1143

Open
dracarys18 wants to merge 8 commits into
ajeetdsouza:mainfrom
dracarys18:main
Open

fix: prefer exact keyword match over score match#1143
dracarys18 wants to merge 8 commits into
ajeetdsouza:mainfrom
dracarys18:main

Conversation

@dracarys18

Copy link
Copy Markdown

Fixes #1130

I had this issue when I am trying to cd to linux it would always choose linux-mma because it was frequently accessed and accessed recently. So add an additional sorting over the score sorting which is based on exact keyword matching. This would always prefer exact matches over the score

@mghesh-yseop

Copy link
Copy Markdown

Please @ajeetdsouza could you take a look here ? I have the same issue, which is really annoying day to day.
I think having a configuration option could be used to activate this feature though, as this can break the default behavior.

@xatuke

xatuke commented Feb 27, 2026

Copy link
Copy Markdown

i agree, this is a huge issue for me as well. especially since my projects are named tmp-[project name] and I have a tmp folder as well

@mghesh-yseop

Copy link
Copy Markdown

@ajeetdsouza I'd like to know if it is planned or not to get this behaviour?

For the moment, I don't have another choice but to stop using zoxide, as I always have the wrong destination for many directories...

I'll stay updated for any news, hoping to have this one day.

@xamcost

xamcost commented Jun 4, 2026

Copy link
Copy Markdown

Doubling on this, it would be a really nice feature.

@dracarys18

Copy link
Copy Markdown
Author

I will add this under a config if that's preferable.

@mghesh-yseop

Copy link
Copy Markdown

If you could add the associated documentation to this feature, it would be very nice 😄

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.

prefer exact match on last folder name

4 participants