diff --git a/core/wiki/macros/keyboard-driven-input.tid b/core/wiki/macros/keyboard-driven-input.tid index 9a172c904..b0a7ac9c0 100644 --- a/core/wiki/macros/keyboard-driven-input.tid +++ b/core/wiki/macros/keyboard-driven-input.tid @@ -21,13 +21,7 @@ $actions$ \end -\define input-next-actions(afterOrBefore:"after",reverse:"") -<$list filter="[<__storeTitle__>get[text]minlength<__filterMinLength__>] [<__filterMinLength__>match[0]] +[limit[1]]" variable="ignore"> -<$vars userInput={{{ [<__storeTitle__>get[text]] }}} selectedItem={{{ [<__selectionStateTitle__>get[text]] }}}> -<$set name="configTiddler" value={{{ [subfilter<__configTiddlerFilter__>] }}}> -<$vars primaryListFilter={{{ [get<__firstSearchFilterField__>] }}} secondaryListFilter={{{ [get<__secondSearchFilterField__>] }}}> -<$set name="filteredList" filter="[subfilteraddsuffix[-primaryList]] =[subfilteraddsuffix[-secondaryList]]"> -<$set name="nextItem" value={{{ [enlist$afterOrBefore$] ~[enlist$reverse$nth[1]] }}}> +\define input-next-actions-inner() <$list filter="[minlength[1]]" variable="ignore"> <$action-setfield $tiddler=<<__selectionStateTitle__>> text=<>/> <$list filter="[<__index__>match[]]"> @@ -38,7 +32,34 @@ $actions$ <$action-setfield $tiddler=<<__refreshTitle__>> text="yes"/> +\end + +\define input-next-actions(afterOrBefore:"after",reverse:"") +<$list filter="[<__storeTitle__>get[text]minlength<__filterMinLength__>] [<__filterMinLength__>match[0]] +[limit[1]]" variable="ignore"> +<$vars userInput={{{ [<__storeTitle__>get[text]] }}} selectedItem={{{ [<__selectionStateTitle__>get[text]] }}}> +<$set name="configTiddler" value={{{ [subfilter<__configTiddlerFilter__>] }}}> +<$vars primaryListFilter={{{ [get<__firstSearchFilterField__>] }}} secondaryListFilter={{{ [get<__secondSearchFilterField__>] }}}> +<$set name="filteredList" filter="[subfilteraddsuffix[-primaryList]] =[subfilteraddsuffix[-secondaryList]]"> +<$vars nextItem={{{ [enlist$afterOrBefore$] ~[enlist$reverse$nth[1]] }}} firstItem={{{ [enlistnth[1]] }}} lastItem={{{ [enlistlast[]] }}}> +<$list filter="[match!match]" variable="ignore"> +<$set name="nextItem" value={{{ [[$afterOrBefore$]match[before]thenaddsuffix[-userInput]] ~[] }}}> +<> + +<$list filter="[match!match]" variable="ignore"> +<$set name="nextItem" value={{{ [[$afterOrBefore$]match[after]thenaddsuffix[-userInput]] ~[] }}}> +<> + + +<$list filter="[matchmatch]" variable="ignore"> +<$set name="nextItem" value={{{ [addsuffix[-userInput]] }}}> +<> + + +<$list filter="[!match!match]" variable="ignore"> +<> + +