New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Zoxide query: "query: " prefix in result hinders composability in shell commands #49
Comments
I did consider this, but it comes with problems:
Currently, the However, this is a very valid usecase, and is one that I too would love to see |
An alternative would be to offer a utility that would execute a given command with the results of a That gives you control over the entire command and you can skip execution if an error occurs. Things tend to get a bit complicated when you have multiple utilities with this behaviour (e.g. rust-parallel, fd with it's Personally, I'd have no issue with using the I can't say much about the complexity of the implementation as I'm not familiar with the internals. |
You make a fair point, I will work on this. |
I've added this in d3e49bd, it will be released with v0.3.1. Thanks! |
Thanks a lot! As an aside, I'd wanted to have a way to navigate different paths with less typing for a long time before you posted about this tool on reddit. I just want to thank you for that. |
Thank you, that means a lot! |
I request that
zoxide query
simply result the path without aquery:
prefix.That way you can use the result immediately as argument to other commands.
My primary interest is that I want to easily open VSCode on various codebases. Currently it's easiest if I run
z <keyword>; code .
in a new terminal and then close it again, but it would be easier if I could instead just docode $(zq <keyword>)
. As this doesn't modify the current directory of the terminal, I could execute this from any of the terminals I already have open.The text was updated successfully, but these errors were encountered: