Add option to include embeddings in normal search

along with new keybind functionality for quick jumping between sections.
Closes #230
This commit is contained in:
DominikDoom
2023-09-07 13:18:04 +02:00
parent e23bb6d4ea
commit 57821aae6a
4 changed files with 30 additions and 5 deletions

View File

@@ -1,5 +1,5 @@
const EMB_REGEX = /<(?!l:|h:|c:)[^,> ]*>?/g;
const EMB_TRIGGER = () => TAC_CFG.useEmbeddings && tagword.match(EMB_REGEX);
const EMB_TRIGGER = () => TAC_CFG.useEmbeddings && (tagword.match(EMB_REGEX) || TAC_CFG.includeEmbeddingsInNormalResults);
class EmbeddingParser extends BaseTagParser {
parse() {