jethrokuan / z

Pure-fish z directory jumping
MIT License
1.26k stars 44 forks source link

z "A" goes to subdir "A/B" #105

Closed aj3423 closed 2 years ago

aj3423 commented 2 years ago

There is directory

~ > z server
/e/wa/server >

This is ok, but

~ > z wa
/e/wa/server >

Why the second also goes to dir "server"? Is z wa supposed to be dir "/e/wa" ?

krobelus commented 2 years ago

I think that's intentional, because you might have several directories with the same basename, like

project1/src
project2/src

if you change to /e/wa more often than /e/wa/server, then the former will also be prioritized, so that's an easy workaround