aboutsummaryrefslogtreecommitdiff
path: root/ext/settings.html
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2021-05-17 20:18:37 -0400
committerGitHub <noreply@github.com>2021-05-17 20:18:37 -0400
commit76276e78dac387df66384a10bc1179c90ebd93fe (patch)
treeba11d7bf4375aa76ae45646b45953df9e71f1d78 /ext/settings.html
parent12451eaf61281e588fb8ef5f911d604ba34aca92 (diff)
Expose search query to anki template renderer (#1686)
* Expose query and fullQuery to Anki context * Add {search-query} marker * Update test data * Update tests * Wrap search query in multiLine
Diffstat (limited to 'ext/settings.html')
-rw-r--r--ext/settings.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/settings.html b/ext/settings.html
index 1b167e22..aade3345 100644
--- a/ext/settings.html
+++ b/ext/settings.html
@@ -2878,6 +2878,10 @@
<td>Screenshot of the web page taken at the time the term or kanji was added.</td>
</tr>
<tr>
+ <td><code class="anki-field-marker">{search-query}</code></td>
+ <td>The full search query shown on the search page.</td>
+ </tr>
+ <tr>
<td><code class="anki-field-marker">{sentence}</code></td>
<td>Sentence, quote, or phrase that the term or kanji appears in from the source content.</td>
</tr>