mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-05 17:46:19 +00:00
5d69fe7bef
* adding trim: AdvancedSearch Standard * adding trim: tiddlers that had SOME trim already * making all existing trim tiddlers consistent * Forgot to properly indent this widget * I don't THINK that space was important... but I'm putting it back in * Forgot one whitespace trim
27 lines
901 B
Plaintext
27 lines
901 B
Plaintext
title: $:/core/ui/Buttons/new-here
|
|
tags: $:/tags/ViewToolbar
|
|
caption: {{$:/core/images/new-here-button}} {{$:/language/Buttons/NewHere/Caption}}
|
|
description: {{$:/language/Buttons/NewHere/Hint}}
|
|
|
|
\whitespace trim
|
|
\define newHereActions()
|
|
\whitespace trim
|
|
<$set name="tags" filter="[<currentTiddler>] [{$:/config/NewTiddler/Tags}]">
|
|
<$action-sendmessage $message="tm-new-tiddler" tags=<<tags>>/>
|
|
</$set>
|
|
\end
|
|
\define newHereButton()
|
|
\whitespace trim
|
|
<$button actions=<<newHereActions>> tooltip={{$:/language/Buttons/NewHere/Hint}} aria-label={{$:/language/Buttons/NewHere/Caption}} class=<<tv-config-toolbar-class>>>
|
|
<$list filter="[<tv-config-toolbar-icons>match[yes]]">
|
|
{{$:/core/images/new-here-button}}
|
|
</$list>
|
|
<$list filter="[<tv-config-toolbar-text>match[yes]]">
|
|
<span class="tc-btn-text">
|
|
<$text text={{$:/language/Buttons/NewHere/Caption}}/>
|
|
</span>
|
|
</$list>
|
|
</$button>
|
|
\end
|
|
<<newHereButton>>
|