zoxide icon indicating copy to clipboard operation
zoxide copied to clipboard

zoxide can't go to directory named `py_dex`

Open rew1nter opened this issue 2 years ago • 6 comments

report to github

As you can see it works fine when you wanna switch to js by typing z js. For some unknown reason it never memorizes the py_dex directory and always fails to cd with py :/

rew1nter avatar Feb 15 '23 18:02 rew1nter

Have you excluded py_dex via the $_ZO_EXCLUDE_DIRS environment variable? I don't see any reason why zoxide would ignore a particular directory and work for others.

ajeetdsouza avatar Feb 15 '23 19:02 ajeetdsouza

No I haven't added any env vars like that. Just went with the default installation.

rew1nter avatar Feb 22 '23 15:02 rew1nter

Is py_dex a symlink or a regular directory? The file command should give you the information.

Does it work if you manually run zoxide add /path/to/py_dex? Does it show under zoxide query --all -ls?

ajeetdsouza avatar Feb 22 '23 19:02 ajeetdsouza

file command: image

zoxide add didn't work: image

zoxide query --all -ls |grep py_dex: Shows the full path to py_dex

rew1nter avatar Mar 03 '23 10:03 rew1nter

To clarify - are you saying it shows up under zoxide query --all -ls but not under zoxide query -ls?

If this is the case, this means Rust is somehow returning false for std::fs::metadata("./py_dex").is_dir().

ajeetdsouza avatar May 07 '23 15:05 ajeetdsouza

To clarify - are you saying it shows up under zoxide query --all -ls but not under zoxide query -ls?

No. zoxide query --all -ls and zoxide query -ls both shows the dir py_dex. Yet you can't cd with py .

rew1nter avatar May 12 '23 15:05 rew1nter

This is quite bizarre. zoxide should handle both directories the same way - I tried creating a directory called py_dex and it's working fine for me.

  • Does it show up with zoxide query --all py?
  • Does it show up with zoxide query py?
  • Can you think of anything unusual about this directory which would cause the behaviour to be different?

ajeetdsouza avatar Mar 16 '24 06:03 ajeetdsouza

This issue has been automatically closed due to inactivity. If you feel this is still relevant, please comment here or create a fresh issue.

github-actions[bot] avatar Apr 16 '24 00:04 github-actions[bot]