-
Notifications
You must be signed in to change notification settings - Fork 17
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
Toggle between path suggest view and keys from the current entry in REPL #38
Comments
Given that this is just thin wrapper around fzf has a To provide an example: .items[]|select(.metadata.namespace == "test")|.metadata You want to see all keys in the input list that can be found under
The replace would look something like this though when I select the last item: .items[]|select(.metadata.namespace == "test")|.metadata|.labels["app.kubernetes.io/name"] Sadly transforming into the last form is not possible with fzf to the best of my knowledge. It's out of scope to implement such complicated features outside of fzf though, this is a very lightweight convenience project that integrates jq and fzf, if those tools don't ship with the capability I don't intend to put it into this project. |
Actually, it seems like fzf has a so it could be feasible to do it. Will investigate. |
Hi again, I apologize for not replying back. |
I thought I'd would be a nice addition to be able to toggle the view above the command line between showing all the valid paths in the JSON (which it currently does) and showing the existing keys in the object that you have currently queried for in the REPL session.
Basically showing you the result of the last valid query and " | to_entries[] | .key" appended.
I'm fairly new to jq as a language, so I apologize if my naivety makes this request totally infeasible or confusing.
The text was updated successfully, but these errors were encountered: