Open qzdl opened 2 years ago
@qzdl thanks for taking a look, I am totally open to supporting variables this way, would you be interested in working on a PR that adds this? (and maybe some docs for users also)
sure thing! I'll prepare some contextual info too, the tldr is that org-babel-ref-resolve
is used intermittently in other libraries, and in varying ways, and most arg parsing lets the native backend handle the variable substitution, which might make better UX
;; prefer this
#+call: my-jq-block(query="\"term1\" AND \"term2\"")
;; to this
#+call: my-jq-block(query="\\\"term1\\\" AND \\\"term2\\\"")
Hey, thanks for a lovely experience with elasticsearch.
I've been getting into
#+call
blocks recently, and a killer feature has been the use of:var
, which turns into the backend-specific variable (usually inlined before the declaration)I have a hacky implementation that you can try here, if you're interested I can make it work for the multi requests and submit a PR.
Cheers!