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
I encountered an issue when trying to navigate to a directory containing rustfmt using zoxide. I expected z rustfmt to take me to the directory I was currently in, where rustfmt is present. Instead, it forwarded me to a different directory that also contains rustfmt.
Steps to Reproduce
Be in a directory that contains a rustfmt binary or folder (e.g., /path/to/my-project/rustfmt).
Run z rustfmt from the terminal.
Observe that zoxide forwards you to another directory (e.g., /other/path/to/rustfmt).
Expected Behavior
I expected z rustfmt to prioritize the rustfmt directory in the current context .
Actual Behavior
z rustfmt navigates to a different rustfmt directory, ignoring the current context.
The text was updated successfully, but these errors were encountered:
That's the expected behaviour - the directory you're currently in is excluded from the z results. So if you're in the best match, you will end up jumping to the second best match.
This is especially useful in cases where zoxide jumps to the wrong directory - you can just re-run your previous command and it will jump to another match.
Description
I encountered an issue when trying to navigate to a directory containing
rustfmt
using zoxide. I expectedz rustfmt
to take me to the directory I was currently in, whererustfmt
is present. Instead, it forwarded me to a different directory that also containsrustfmt
.Steps to Reproduce
rustfmt
binary or folder (e.g.,/path/to/my-project/rustfmt
).z rustfmt
from the terminal./other/path/to/rustfmt
).Expected Behavior
I expected
z rustfmt
to prioritize therustfmt
directory in the current context .Actual Behavior
z rustfmt
navigates to a differentrustfmt
directory, ignoring the current context.The text was updated successfully, but these errors were encountered: