#1240·zoxide

[Feature request] Search within child directories only

Author: KaKi87Created May 19, 2026Updated Aug 22, 2026

Hi,

In my current directory, I may have the following subdirectories :

  • ./foos/foo.bar
  • ./foos/foo.baz
  • ./foos/foo.fum

While, outside of that location, I may have the following :

  • ../../Downloads/bar

Then I run z bar : I expect it to go to ./foos/foo.bar, but it goes to ../../Downloads/bar, which I suppose makes sense as it's an exact match, while the former is a partial match.

So, it would be nice be able to specifically ask it to find the best match within children folders only, e.g. z -C bar, where -C is short for --children-only.

Or, a better (though more magical-looking) UX would be z ./bar where ./ is short for "child".

An intermediate option would be having a separate command, e.g. zc bar.

Thanks