Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Adding to the other answer: You can also pass multiple keywords to zoxide and they are expected to match in order. So in your example, `z foo src` would reliably cd into `~src/foo/bar/src` even if `src/foo` has a higher visit frequency.


Ok what about when I have this

~/src/linux/linux

~/src/linux/stable

And I want to go to the first one? It doesn't have a unique sequence of keywords in it :/

Unless it recognises that if I type "z lin lin" I want the one where it appears twice?

I'm beginning to think my directory structure might just be toxic haha


You can think of it as replacing the space between words as wildcards, so `z lin lin` would indeed work to select the first one!


> I'm beginning to think my directory structure might just be toxic haha

Some tools have a hard time solving some problems when the problem is us.


Here's an idea that might work for you. Rename ~/src/linux_/ or something like that.


lacy https://crates.io/crates/lacy might be what you want




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: