ajeetdsouza / zoxide

A smarter cd command. Supports all major shells.
MIT License
20.29k stars 518 forks source link

Feature request: "z . some keywords" to find matches in current directory #800

Open jakenvac opened 2 months ago

jakenvac commented 2 months ago

Hi there,

I've looked across all the issues and docs and couldn't find anything like this out of the box.

I think it would be great if we could use zoxide to find the best match within the current directory with the syntax: (Or something similar if this could break backwards compat)

z . some keywords

This can be achieved today with

z `pwd` some keywords

But this feels like something that could be built in.

I'd be happy to take a crack at implementing this if it's something that would fit the project, but I didn't want to rudely submit a PR for a feature no one wanted. No worries if this is out of scope for this project. Thanks for considering and thanks for a great tool that I use every day.

Blonteractor commented 2 months ago

Something like #468?

jakenvac commented 2 months ago

Something like #468?

Uh, yeah 😆 not sure how I missed that. Looks like it's been open for a good while though. I'll take a look and see if I can contribute to the PR. Thanks