Skip to content

[Feature request] Search within child directories only #1240

@KaKi87

Description

@KaKi87

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions