ljos / jq-mode

Emacs major mode for editing jq queries.
GNU General Public License v3.0
110 stars 12 forks source link

Feature request: header argument for --slurpfile #28

Open johanwk opened 3 years ago

johanwk commented 3 years ago

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

Fuco1 commented 3 years ago

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