Make snippets for org header args

This commit is contained in:
Kiana Sheibani 2024-03-07 01:46:11 -05:00
parent 1dedd8c273
commit 4d2e6eed7b
Signed by: toki
GPG key ID: 6CB106C25E86A9F7
12 changed files with 155 additions and 2 deletions

View file

@ -0,0 +1,15 @@
# -*- mode: snippet -*-
# key: r
# name: header arg - results
# condition: (~/yas-org-src-header-p)
# --
`(let ((out
(->>
'((:results "Result collection: " ("value" "output"))
(:results "Results type: " ("table" "vector" "list" "verbatim" "file"))
(:results "Results format: " ("code" "drawer" "html" "latex" "link" "graphics" "org" "pp" "raw"))
(:results "Result output: " ("silent" "replace" "append" "prepend")))
(--map (apply #'~/yas-org-prompt-header-arg it))
-non-nil
(s-join " "))))
(if (string= out "") "" (concat ":results " out " ")))`