Skip to content

Conversation

@estum
Copy link

@estum estum commented Jun 4, 2017

This commit allows to run jq with the -r flag, when the feature's checkbox is checked.
Solves issue #3.

estum added 2 commits June 4, 2017 18:34
This commit allows to run jq with the `-r` flag, when the feature's checkbox is checked.

Solves issue virtzilla#3
@crsantos
Copy link

crsantos commented Aug 5, 2019

What's missing here, @virtzilla?
This is a very useful feature

@nunogoncalves
Copy link

Hello.
Is this plugin no longer being supported? Would also love to have this!

if (this.rawOutput)
flags += 'r';

var jqOutput = jq.raw(this.jsonInput, [flags, this.jqargs]);
Copy link

@nunogoncalves nunogoncalves Jan 18, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @estum great work!
I was desperately needing this feature, and went ahead and copied the code into my local plugin.
Turns out there's a bug in this line.
I actually created an issue on luckymarmot/Paw-Issues#104 because of it that I can close.
The issue is that jq.raw() is returning an extra \n in the end.
I added a suggestion to the code that fixes the issue on my side.

@nunogoncalves nunogoncalves mentioned this pull request Jan 18, 2021
Co-authored-by: Nuno Gonçalves <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants