mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-12-10 02:38:06 +00:00
Add "new here" button
This is a basic “new here” tiddler toolbar button that just creates a new tiddler tagged with the title of the current tiddler. @pmario is there anything else required?
This commit is contained in:
14
core/ui/ViewToolbar/new-here.tid
Normal file
14
core/ui/ViewToolbar/new-here.tid
Normal file
@@ -0,0 +1,14 @@
|
||||
title: $:/core/ui/Buttons/new-here
|
||||
tags: $:/tags/ViewToolbar
|
||||
caption: {{$:/core/images/new-here-button}} {{$:/language/Buttons/NewHere/Caption}}
|
||||
description: {{$:/language/Buttons/NewHere/Hint}}
|
||||
|
||||
<$button tooltip={{$:/language/Buttons/NewHere/Hint}} aria-label={{$:/language/Buttons/NewHere/Caption}} class=<<tv-config-toolbar-class>>>
|
||||
<$action-sendmessage $message="tm-new-tiddler" tags=<<currentTiddler>>/>
|
||||
<$list filter="[<tv-config-toolbar-icons>prefix[yes]]">
|
||||
{{$:/core/images/new-here-button}}
|
||||
</$list>
|
||||
<$list filter="[<tv-config-toolbar-text>prefix[yes]]">
|
||||
<$text text={{$:/language/Buttons/NewHere/Caption}}/>
|
||||
</$list>
|
||||
</$button>
|
||||
Reference in New Issue
Block a user