From e43ffe860bb225ca5ccada65fdb757e0b116e128 Mon Sep 17 00:00:00 2001 From: Simon Huber Date: Tue, 27 Oct 2020 18:33:06 +0100 Subject: [PATCH] Fix #4910 - "Editor link dropdown is broken in pre-release." (#4913) * fix #4910 in sidebarsegments/search * fix #4910 in editortoolbar/link-dropdown * fix #4910 in keyboard-driven-input macro * Update keyboard-driven-input_Macro.tid * Fix #4910 in tag-picker macro * Update tag-picker.tid --- core/ui/EditorToolbar/link-dropdown.tid | 6 +++++- core/ui/SideBarSegments/search.tid | 17 +++++++---------- core/wiki/macros/keyboard-driven-input.tid | 8 ++++++-- core/wiki/macros/tag-picker.tid | 12 +++++++----- .../macros/keyboard-driven-input_Macro.tid | 5 ++--- 5 files changed, 27 insertions(+), 21 deletions(-) diff --git a/core/ui/EditorToolbar/link-dropdown.tid b/core/ui/EditorToolbar/link-dropdown.tid index c9c1989b6..671796ce4 100644 --- a/core/ui/EditorToolbar/link-dropdown.tid +++ b/core/ui/EditorToolbar/link-dropdown.tid @@ -37,8 +37,12 @@ title: $:/core/ui/EditorToolbar/link-dropdown <$linkcatcher actions=<> to=<>> +<$vars userInput={{{ [get[text]] }}} configTiddler={{{ [[$:/state/search/currentTab]!is[missing]get[text]] ~[{$:/config/SearchResults/Default}] }}}> + {{$:/core/ui/SearchResults}} + + @@ -47,4 +51,4 @@ title: $:/core/ui/EditorToolbar/link-dropdown \end -<$macrocall $name="body" config-title=<>/> \ No newline at end of file +<$macrocall $name="body" config-title=<>/> diff --git a/core/ui/SideBarSegments/search.tid b/core/ui/SideBarSegments/search.tid index ee2d03928..a4c645168 100644 --- a/core/ui/SideBarSegments/search.tid +++ b/core/ui/SideBarSegments/search.tid @@ -19,17 +19,17 @@ tags: $:/tags/SideBarSegment \define search-results-list() \whitespace trim -<$set name="userInput" value={{$(searchTiddler)$}}> +<$vars userInput={{$(searchTiddler)$}} configTiddler={{{ [[$:/state/search/currentTab]!is[missing]get[text]] ~[{$:/config/SearchResults/Default}] }}}> <$list filter="[minlength{$:/config/Search/MinLength}limit[1]]" emptyMessage="""
{{$:/language/Search/Search/TooShort}}
""" variable="listItem"> -<$tiddler tiddler="$(configTiddler)$"> +<$tiddler tiddler=<>> {{$:/core/ui/SearchResults}} - + \end \define delete-state-tiddlers() <$action-deletetiddler $filter="[[$:/temp/search]] [] []"/> @@ -46,8 +46,7 @@ tags: $:/tags/SideBarSegment