From cf6d81d592fc6bc78bcb4d5bd8278b09e9ca3898 Mon Sep 17 00:00:00 2001 From: pmario Date: Wed, 17 Jul 2024 00:46:10 +0200 Subject: [PATCH] tag field needs special handling --- core/wiki/macros/list-links-horizontal-draggable.tid | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/core/wiki/macros/list-links-horizontal-draggable.tid b/core/wiki/macros/list-links-horizontal-draggable.tid index 8de193e67..e22bb874c 100644 --- a/core/wiki/macros/list-links-horizontal-draggable.tid +++ b/core/wiki/macros/list-links-horizontal-draggable.tid @@ -13,7 +13,9 @@ tags: $:/tags/Macro $:/tags/Global \end \procedure list-links-horizontal-draggable(tiddler,field:"list",emptyMessage,type:"span",subtype:"span",class:"",itemTemplate,dragHandle:"⠿",enable:"yes") - \procedure customSort() [getenlist-input[]] :sort:alphanumeric:caseinsensitive[subfilter{$:/config/Tags/CustomSort/subfilter}] + \procedure tagSort() [getenlist-input[]] :sort:alphanumeric:caseinsensitive[subfilter{$:/config/Tags/CustomSort/subfilter}] + \procedure defaultSort() [getenlist-input[]] + \function tf.customSort() [match[tags]thenelse] <$let targetTiddler=<> @@ -21,9 +23,8 @@ tags: $:/tags/Macro $:/tags/Global _enable={{{ [!match[no]thenelse[yes]] }}} _dragHandle={{{ [<_enable>match[yes]thenelse[]] }}} > - <$log/> <$genesis $type=<> class=<>> - <$list filter=<> emptyMessage=<>> + <$list filter=<> emptyMessage=<>> <$droppable actions=<> tag=<>