3 ms·
That's pretty cool. Would be nice if there was an option to put the currently used filter/query into the shell history or the clipboard. So that you could exp
by tyingq 5y ago
That's pretty cool. Would be nice if there was an option to put the currently used filter/query into the shell history or the clipboard. So that you could experiment to find the right one, then back out and use it in a pipeline.
- gryn 5y agoCat xxx.json | fx 'whatever' | fx Is how I usually do so, if you don't want the interactive mode drop the last pipe
- tyingq 5y agoNot sure I understand. I mean using the interactive mode to figure out the right query ("[].mumble.whatever...") and then being able to save the text of the query that you figured out by pointing and clicking. Like a graphical SQL query builder allows you to do.
- FragenAntworten 5y agoYou can do this with `jid -q`: https://github.com/simeji/jid https://github.com/simeji/jid (Its interactivity is keyboard- rather than mouse-based.)
- tyingq 5y agoOh, that's great...outputs a jq-compatible query. Thanks!