▲ | bjackman 4 days ago | ||||||||||||||||||||||||||||||||||
Does anyone know if zoxide has any fancy logic to ignore strings that appear in common prefixes? For example I have a big ~/src dir where I keep all my code checkouts. If I type 'z src' intending to go to ~/src/foo/bar/src, will it be clever enough to realise that I am referring to the second instance of the string 'src'? I currently use a Fish port of the original 'z'. It does ignore the common prefix of _all_ matches (so if I only ever used it within my ~/src tree, the problem would disappear) but after that binary exclusion it works exclusively on frecency. | |||||||||||||||||||||||||||||||||||
▲ | neobrain 4 days ago | parent | next [-] | ||||||||||||||||||||||||||||||||||
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. | |||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||
▲ | ShinTakuya 4 days ago | parent | prev [-] | ||||||||||||||||||||||||||||||||||
As far as I'm aware it keeps a history of the frequency you visit each directory so yes it will select the one you've visited more often (assuming you don't always start at the base one and work your way down). | |||||||||||||||||||||||||||||||||||
|