2016-04-29 17:54:41 +00:00
|
|
|
title: $:/core/ui/EditorToolbar/link-dropdown
|
|
|
|
|
|
|
|
\define lingo-base() $:/language/Buttons/Link/
|
|
|
|
|
|
|
|
\define link-actions()
|
|
|
|
<$action-sendmessage
|
|
|
|
$message="tm-edit-text-operation"
|
|
|
|
$param="make-link"
|
2016-04-29 18:19:18 +00:00
|
|
|
text={{$(linkTiddler)$}}
|
2016-04-29 17:54:41 +00:00
|
|
|
/>
|
|
|
|
|
|
|
|
<$action-deletetiddler
|
|
|
|
$tiddler=<<dropdown-state>>
|
|
|
|
/>
|
2016-04-29 18:19:18 +00:00
|
|
|
|
|
|
|
<$action-deletetiddler
|
|
|
|
$tiddler=<<searchTiddler>>
|
|
|
|
/>
|
|
|
|
|
|
|
|
<$action-deletetiddler
|
|
|
|
$tiddler=<<linkTiddler>>
|
|
|
|
/>
|
2016-04-29 17:54:41 +00:00
|
|
|
\end
|
|
|
|
|
2016-04-29 18:19:18 +00:00
|
|
|
\define body(config-title)
|
2016-04-29 17:54:41 +00:00
|
|
|
''<<lingo Hint>>''
|
|
|
|
|
2016-04-29 18:19:18 +00:00
|
|
|
<$vars searchTiddler="""$config-title$/search""" linkTiddler="""$config-title$/link""">
|
2016-04-29 17:54:41 +00:00
|
|
|
|
2016-04-29 18:19:18 +00:00
|
|
|
<$edit-text tiddler=<<searchTiddler>> type="search" tag="input" focus="true" placeholder={{$:/language/Search/Search}} default=""/>
|
2016-04-29 17:54:41 +00:00
|
|
|
<$reveal tag="span" state=<<searchTiddler>> type="nomatch" text="">
|
|
|
|
<$button class="tc-btn-invisible" style="width: auto; display: inline-block; background-colour: inherit;">
|
|
|
|
<$action-setfield $tiddler=<<searchTiddler>> text="" />
|
|
|
|
{{$:/core/images/close-button}}
|
|
|
|
</$button>
|
|
|
|
</$reveal>
|
|
|
|
|
|
|
|
<$reveal tag="div" state=<<searchTiddler>> type="nomatch" text="">
|
|
|
|
|
2016-04-29 18:19:18 +00:00
|
|
|
<$linkcatcher actions=<<link-actions>> to=<<linkTiddler>>>
|
2016-04-29 17:54:41 +00:00
|
|
|
|
|
|
|
{{$:/core/ui/SearchResults}}
|
|
|
|
|
|
|
|
</$linkcatcher>
|
|
|
|
|
|
|
|
</$reveal>
|
|
|
|
|
2016-04-29 18:19:18 +00:00
|
|
|
</$vars>
|
|
|
|
|
|
|
|
\end
|
|
|
|
|
|
|
|
<$macrocall $name="body" config-title=<<qualify "$:/state/Link/">>/>
|