Cool. That is workable. thanks. it puts the new tiddler button at the
bottom of every page in view mode., and I figured out the multiple tag
addition trick after a minute or two: As long as the new tag tiddler is
open for editing, clicking on the "new tagged tiddler" button just adds the
tag to the presently open draft of the previous one.
Is there any way to get this to work from the edit toolbar, so I can open a
new page with the same tags as the one I am currently editing? I added the
"$:/tags/EditorToolbar" tag, and it shows up in the editor toolbar, but it
does not pick up the tags, it just opens a new tiddler with no tags.
Thanks again for helping me on this. It will be a huge time save if I can
get it right!
On Tuesday, July 26, 2016 at 4:05:19 PM UTC-10, RichardWilliamSmith wrote:
>
> Hi Rich,
>
> Bit tricky, but I think this works - I looked at how similar things were
> handled in the other tiddlers that make up the editor, it needs the new
> tags to be set in a macro.
>
> (again, it's called $:/rs/ui/Buttons/new-here-with-tags and now needs the
> view template tag)
>
> \define newTagsButton()
> <$button tooltip={{$:/rs/ui/Buttons/new-here-with-tags!!description}}
> aria-label={{$:/rs/ui/Buttons/new-here-with-tags!!caption}}
> class=<<tv-config-toolbar-class>>>
> <$action-sendmessage $message="tm-new-tiddler" title="New Tag Tiddler"
> tags=$(newTiddlerTags)$ />
> ''T''
> </$button>
> \end
> \define getNewTags()
> {{$(currentTiddlerName)$!!tags}}
> \end
>
> <$set name="newTiddlerTags" value=<<getNewTags>>>
> <<newTagsButton>>
> </$set>
>
> An interesting side effect of this is that, if you click the button on
> multiple existing tiddlers, before editing the default title of the new
> tiddler, it will add the tags from each in turn.
>
> Regards,
> Richard
>
> On Wednesday, July 27, 2016 at 10:29:03 AM UTC+10, Rich wrote:
>>
>> Thank you Mario and RIchard.
>>
>> I got this partially working. It produces a new tiddler from the
>> "new-here-with tags" tiddler when it is in view mode, but the toolbar
>> version is not picking up the tags, so it pops up with no tags when I try
>> to use it to pick up the tags of the currently focused tiddler when in view
>> mode. I would almost always be using this while editing rather than
>> viewing, so I tried to hack together a frankenstein combo with my limited
>> skills that looks like this:
>>
>> <$button tooltip={{$:/rr/ui/Buttons/new-here-with tags!!description}}
>> aria-label={{$:/rr/ui/Buttons/new-here-with tags!!caption}}
>> class=<<tv-config-toolbar-class>>>
>> <$action-sendmessage $message="tm-new-tiddler" title="New+tags"
>> tags={{!!tags}} />+t
>> </$button>
>> <$action-sendmessage
>> $message="tm-edit-text-operation"
>> $param="wrap-selection"
>> prefix="''"
>> suffix="''"
>> />
>>
>> That successfully made it into the toolbar after I copied some of the the
>> fields from another toolbar entry, but instead of picking up the current
>> tiddlers tags, it grabbed the system tags from "new-here-with tags".
>>
>> I tried replacing
>>
>> tags={{!!tags}}
>>
>> with
>>
>> tags={{||!!tags}}
>>
>> as per this help page on templating
>> <http://tiddlywiki.com/static/Transclusion%2520with%2520Templates.html>,
>> but that just removed all the tags.
>>
>>
>> ANy ideas what I'm doing wrong (probably a lot!)
>>
>> RIch
>>
>>
>> On Monday, July 25, 2016 at 11:38:20 PM UTC-10, RichardWilliamSmith wrote:
>>>
>>> Hi Rich,
>>>
>>> If you combine Mario's suggestions, you can do this - clone and edit the
>>> new journal button, or otherwise create a tiddler with the same tag, call
>>> it $:/rs/ui/Buttons/new-here-with tags (if you change the title, you need
>>> to change the two references to it below - I always add my initials to the
>>> name of this kind of tiddler, to distinguish them from the core) give it
>>> the following text;
>>>
>>> <$button tooltip={{$:/rs/ui/Buttons/new-here-with tags!!description}}
>>> aria-label={{$:/rs/ui/Buttons/new-here-with tags!!caption}}
>>> class=<<tv-config-toolbar-class>>>
>>> <$action-sendmessage $message="tm-new-tiddler" title="New Tag Tiddler"
>>> tags={{!!tags}} />
>>> ''T''
>>> </$button>
>>>
>>> and the fields
>>>
>>> caption: ''T'' New Tiddler With Tags
>>> description: Create a new tiddler with the same tags as this one
>>>
>>> This will appear in the view toolbar and can be toggled from the control
>>> panel. If you want to put it in a particular place in the toolbar, give it
>>> a list-after or list-before field too.
>>>
>>> Regards,
>>> Richard
>>>
>>
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/735454d1-7823-46bb-8b8b-36da9f1ee6d1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.