kamiyaa / joshuto

ranger-like terminal file manager written in Rust
https://crates.io/crates/joshuto
GNU Lesser General Public License v3.0
3.46k stars 154 forks source link

zoxide can't access directories it hasn't indexed #240

Closed Sonico98 closed 7 months ago

Sonico98 commented 1 year ago

Trying to z inside a directory that zoxide has never accesed before returns zoxide: no match found. This prevents replacing cd with zoxide, as commands like z .. won't work.

To test, outside of joshuto, create 2 directories and access one of them with zoxide

mkdir /tmp/accessed_directory /tmp/not_accessed_directory
z /tmp/accessed_directory

Then, open joshuto and try browsing to each of them. Only the accessed directory works

:z /tmp/accessed_directory --> Works
:z /tmp/not_accessed_directory --> zoxide: no match found

In the same fashion, trying to access sub-folders on the home directory with ~ doesn't work, while accessing them with their absolute path works

:z /home/user/Downloads --> Works
:z ~/Downloads --> zoxide: no match found

joshuto 0.9.4 installed from source as of commit 5ea87f65df0b0744ee1d01fd40e240e6abf0da77