Skip to content

Commit 68e7f8a

Browse files
committed
tags tag
1 parent 3303cf1 commit 68e7f8a

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

_site/actions/templates.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ <h3 id="content-tags">Content Tags</h3>
5858
<li><code class="highlighter-rouge">[[safe_title]]</code> File name safe version of the first line with white-space and punctuation characters removed.</li>
5959
<li><code class="highlighter-rouge">[[body]]</code> The remainder of the draft text after the first line is removed.</li>
6060
<li><code class="highlighter-rouge">[[selection]]</code> If text was selected within the draft before selecting an action, this tag will return only that selected text. If no text was selected, it will return the full text of the draft.</li>
61+
<li><code class="highlighter-rouge">[[tags]]</code> Comma-separated list of tags linked to the draft.</li>
6162
<li><code class="highlighter-rouge">[[line|n]]</code> The text of a specific line number in the draft, where “n” is the line number. i.e. <code class="highlighter-rouge">[[line|1]]</code>, <code class="highlighter-rouge">[[line|2]]</code>.</li>
6263
<li><code class="highlighter-rouge">[[line|n..n]]</code> In addition to specific lines, the lines tag (above) can accept ranges of lines, such as <code class="highlighter-rouge">[[line|2..5]]</code> for lines 2 through 5. This initial or trailing number in the range can be omitted to indicate the beginning or end, i.e. <code class="highlighter-rouge">[[line|2..]]</code> is line 2 through the end of the draft, <code class="highlighter-rouge">[[line|..4]]</code> is the first for lines of the draft.</li>
6364
<li><code class="highlighter-rouge">[[selection_start]]</code> The integer index of the start location of the last text selection in the draft.</li>

actions/templates.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Drafts actions support a number of tags for dynamically inserting text when an a
1212
- `[[safe_title]]` File name safe version of the first line with white-space and punctuation characters removed.
1313
- `[[body]]` The remainder of the draft text after the first line is removed.
1414
- `[[selection]]` If text was selected within the draft before selecting an action, this tag will return only that selected text. If no text was selected, it will return the full text of the draft.
15+
- `[[tags]]` Comma-separated list of tags linked to the draft.
1516
- `[[line|n]]` The text of a specific line number in the draft, where “n” is the line number. i.e. `[[line|1]]`, `[[line|2]]`.
1617
- `[[line|n..n]]` In addition to specific lines, the lines tag (above) can accept ranges of lines, such as `[[line|2..5]]` for lines 2 through 5. This initial or trailing number in the range can be omitted to indicate the beginning or end, i.e. `[[line|2..]]` is line 2 through the end of the draft, `[[line|..4]]` is the first for lines of the draft.
1718
- `[[selection_start]]` The integer index of the start location of the last text selection in the draft.

0 commit comments

Comments
 (0)