You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@ajeetdsouza From what I can tell, this is the expected behavior of zoxide query, which returns the highest scored directory, excluding the one you're in. This means if you repeated run it with the same argument when there are multiple results, it will oscillate between the first and second highest scored results. This is intended behavior as far as I can tell. However, I'm new to project and could be wrong.
This explanation could be checked by running the command zoxide query git --score --list and seeing if the second and third directory are the top two scores.
If there are plans to change zoxide query to account for recently queried directories, eg. to lower the score of recently returned directories when subsequent queries with the same argument are made (either temporarily or permanently), we should consider the similar issue #1020 as well.
I have directories
~/Documents/git
~/Documents/git/github.com
~/Documents/Z[redacted]/git
Repeatedly running
z git
(in my case,z
is aliased toy
) only ever visits the second and the third of these.I am using Fish 3.7.1 on NixOS. My config runs
/nix/store/l4k3n4vi2y5qjzzhihr37jwhwxz4vxdq-zoxide-0.9.6/bin/zoxide init fish --cmd y | source
.The text was updated successfully, but these errors were encountered: