jq-mode icon indicating copy to clipboard operation
jq-mode copied to clipboard

Feature request: header argument for --slurpfile

Open johanwk opened this issue 4 years ago • 1 comments

As far as I can see, it's not currently possible to get input from more than one file in a jq block.

I propose adding a new header argument, which can appear more than once, to allow for several files to be read into variables. Something like this:

#+header: :slurpfile file1=file1.json :slurpfile file2=file2.json

johanwk avatar Jan 22 '21 12:01 johanwk

As a workaround you can use the :stdin option and cat the files in another shell block.

Fuco1 avatar Jan 22 '21 13:01 Fuco1