3 ms·
I made a VSCode extension for jq[0], so I really like when people see the power of jq. I should probably update it with a couple of life improvements now that
by ldd 6y ago
I made a VSCode extension for jq[0], so I really like when people see the power of jq.
I should probably update it with a couple of life improvements now that I think about it.
[0]: https://github.com/ldd/vscode-jq https://github.com/ldd/vscode-jq
- prepend 6y agoThanks for your plugin. I wish it had up arrow history. I keep a separate text log with commands and it would be nice if the plugin tracked them. Especially given the high numbers of jq syntax errors.
- ldd 6y agoGreat feature request. I've been there. I'll look into it for sure!
- originalvichy 6y agoIf this hasn’t been said: Is there a way to instantly find out what filter to use when you click on a certain row? Kind of like doing exploratory jq on VSCode so you can quickly move it to the shell?
- ldd 6y agoSo, I don't really understand. but! Suppose you have a JSON file like this: [ { "a": 1, "b": 2 }, { "a": 5, "b": 6 }, ] what exactly do you want to do with it?
- originalvichy 6y agoIf I was to click on the part that saus ’”b”:2’, could you show me the jq query I could use to get just that part of the json file? Kind of similar to how some Git extensions show who has the last commit on a certain line of code when you click/place cursor on a line
- ldd 6y agoGotcha. I'd honestly also would want this, but I don't see an easy way of implementing it. It sort of makes me wonder how xpath queries work and what algorithms are used. At face value, for certain JSON files, it is probably possible to do quickly, like in my example above, but the devil is always in the details...