From 32c75cbb68967c2f63c1d422a2dd62a804fb0a16 Mon Sep 17 00:00:00 2001 From: Mario Pietsch Date: Thu, 4 Jul 2024 18:24:06 +0200 Subject: [PATCH] Allow fieldmangler to catch unsaved tag changes (#8332) * allow fieldmangler to catch unsaved tag changes * fix typo in comment --- core/wiki/macros/tag-picker.tid | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/wiki/macros/tag-picker.tid b/core/wiki/macros/tag-picker.tid index 3bc1617db..a67568d8e 100644 --- a/core/wiki/macros/tag-picker.tid +++ b/core/wiki/macros/tag-picker.tid @@ -154,8 +154,10 @@ The second ESC tries to close the "draft tiddler" \function _tf.getUserInput() [get[text]] \function _tf.getTag() [get[text]] + +\function _tf.makeTagNameTiddler() [[$:/temp/NewTagName]] [!match[tags]] +[join[/]] [] +[join[]] - + <$let palette={{$:/palette}} colourA={{{ [getindex[foreground]] }}} @@ -164,7 +166,7 @@ The second ESC tries to close the "draft tiddler" saveTiddler={{{ [is[blank]thenelse] }}} - newTagNameTiddler={{{ [[$:/temp/NewTagName]] [!match[tags]] +[join[/]] [] +[join[]] }}} + newTagNameTiddler={{{ [[newTagNameTiddler]is[variable]then] :else[<_tf.makeTagNameTiddler>] }}} storeTitle={{{ [[$:/temp/NewTagName/input]] [!match[tags]] +[join[/]] [] +[join[]] }}} newTagNameSelectionTiddlerQualified=<>