z icon indicating copy to clipboard operation
z copied to clipboard

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

Open peey opened this issue 3 years ago • 1 comments

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

peey avatar Apr 20 '22 13:04 peey

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

tennox avatar Jul 14 '22 10:07 tennox