Skip to content

Choosing and pasting one of ~20 multi-line pastes using Split- and Choice-commands #206

Answered by lintalist
Gewerd-Strauss asked this question in Q&A
Discussion options

You must be logged in to vote
  1. Create a snippet for each template. Give each snippet a unique shorthand which is also descriptive e.g. rmdtemp_tableofcontents (doesn't matter, you wont have to type these shorthands, just use them to search/select)
  2. if snippets share common parts, save that common part into a snippet as well and include them where appropriate in the template (snippet) via [[snippet=rmd_header]]
  3. Now your search snippet is a simple snippet+choice [[Snippet=[[choice=!|rmdtemplate1|rmdtemplate2|rmdtemplate3]]]]

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Gewerd-Strauss
Comment options

@lintalist
Comment options

Answer selected by Gewerd-Strauss
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #205 on August 14, 2021 16:07.