rupa / z

z - jump around
Do What The F*ck You Want To Public License
16.39k stars 1.17k forks source link

Suggestion: Going to the next match #311

Open blakemcbride opened 2 years ago

blakemcbride commented 2 years ago

Let's say have two directories named:

~/abc/def ~/xyz/def

If I do "z def" it goes to one of those directories. Great!

However, if I am at one of those directories and I do "z def" again, it should go to the next match.

So, if I keep typing "z def" it should bounce between the two.

Thanks.

joostschuur-planetplay commented 2 months ago

Future person here. I just tried this and it worked for me. Switched too directories with a similar (but not identical) name at least. One had a '-next' after the string I used as an argument to z.

Not everything is great about this future, but it's the little things like this that bring joy.