jethrokuan / z

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

Feature request: `-c` option (restrict matches to subdirectories of the current directory) #110

Open peey opened 2 years ago

peey commented 2 years ago

Use case: if you'd normally do z a b c then you may also wish to do z -c a; z -c b; z -c c and expect to land in the same directory with both commands.

Without -c, if you just do z a; z b; z c then you'll end up searching for b globally instead of within a.

Ref: - c option in readme of https://github.com/rupa/z

It seems that currently -c is used for "clean" operation according to --help

tennox commented 1 year ago

:+1: Using alias zc could also work, like in autojump