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
[FEATURE] Add option to return jq command with raw output #745
Labels
enhancement
New feature or request
Comments
dtop129
changed the title
[FEATURE] Add to return jq command with raw output
[FEATURE] Add option to return jq command with raw output
Apr 10, 2023
I have just come across the same thing. Would be a very useful feature, or just have an optional third argument for jq for flags such as |
4 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description of the requested feature
For my use case, I retrieve the active window name from a JSON returned from Hyprland IPC, but since there is no option to get raw output, like with the command line option with
jaq --raw-output ....
, the output is"somethinginsidequotes"
.I could remove the quotes by wrapping the jq call inside a replace call that removes the first and last quote characters
"${replace(jq(...), "\(^\"\|\"$\)", "")}"
, but it would be cleaner to have this feature inside jq natively.Proposed configuration syntax
Maybe just add alongside the normal
jq
function ajq_raw
function, as not to break current configurations.Additional context
No response
The text was updated successfully, but these errors were encountered: