c77ba18e71
- Re-prioritise lower-case "s": silent is more common than session - The $0 doesn't actually seem to change the final cursor position, and if the snippet is cancelled it is left behind as clutter. - Fix incorrect labelling with NoWeb snippet
15 lines
639 B
Plaintext
15 lines
639 B
Plaintext
# -*- mode: snippet -*-
|
|
# name: Header arg - results
|
|
# key: r
|
|
# condition: (+yas/org-src-header-p)
|
|
# --
|
|
`(let ((out
|
|
(string-trim-right
|
|
(concat
|
|
(+yas/org-prompt-header-arg :results "Result collection: " '("value " "output "))
|
|
(+yas/org-prompt-header-arg :results "Results type: " '("table " "vector " "list " "verbatim " "file "))
|
|
(+yas/org-prompt-header-arg :results "Results format: " '("code " "drawer " "html " "latex " "link " "graphics " "org " "pp " "raw "))
|
|
(+yas/org-prompt-header-arg :results "Result output: " '("silent " "replace " "append " "prepend "))))))
|
|
(if (string= out "") ""
|
|
(concat ":results " out " ")))
|
|
` |