You know, I had looked at the clone button and the new here button before
asking, but hadn't figured it out. Then after writing my request, I figured
it out myself! Here it is. I will do up an example to share with you.
\whitespace trim
\define newHereActions()
<$set name="tags" filter="[<currentTiddler>]
[{$:/config/NewTiddler/Tags!!tags}]">
<$action-sendmessage $message="tm-new-tiddler" $param=<<currentTiddler>>
tags=<<tags>> text="" caption=""/>
</$set>
\end
\define newHereButton()
<$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/open-window}}
</$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>>
On Thursday, November 26, 2020 at 6:15:49 AM UTC-6 David Gifford wrote:
> Hi all
>
> I have yet another idea I think would be helpful in organizing and
> presenting ideas efficiently. But as usual, I am not sure how to do it.
>
> My idea is a "new-here-plus-clone-the-parent-tiddler's-title" button. A
> viewtemlate button that creates a tiddler tagged with its parent ("Birds"),
> and the title it would have if one used the clone button on its parent,
> e.g., "Birds 1".
>
> Use case: For fast, easy adding of notes as vertical tabs in an article /
> topic tiddler.
>
> 1. The parent tiddler will have the vertical tabs macro with
> [all[current]tagging[]], so using the button would make the children
> tiddlers appear as tabs in the article.
> 2. Having the parent title be the title of the new tiddler would save me
> time in creating unique titles. I could either leave the "1" as is, or
> replace it with something specific like "Sparrows" (subtopic) or "Marshall,
> 103" (author and page #)
> 3. I would add a caption for the tabs and use [sort[caption]] in the tabs
> filter.
> 4. Why use the caption field?
>
> - Vertical tabs need shorter titles so they are not too wide
> - Many articles would need the same title (definition, history of,
> themes, etc) so the tiddler title would need to be distinct, but not the
> caption title.
>
> 5. Note that this would be a TidldyWiki version of taking notes with the
> Cornell notes system: concise topic title on the left, data on the right.
> Browsing the tabs would also make it faster to browse the subtopics to find
> what you need quickly the second time around.
>
> Anyway, whether you are intrigued or not by my idea, if anyone could share
> what I would need to put in a button, basically "new tiddler, tagged with
> parent title, title is parent title", that would be a big help. Thanks in
> advance. I will share an example of the results with the community as
> always.
>
> To those who celebrate U.S. Thanksgiving, Happy Thanksgiving Day! I am
> thankful for this community. So many kind, patient people who have answered
> questions like this one, and who have created so many cool tools to play
> with. Thank you all!
>
> Dave
>
--
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 view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/08b71d27-4e48-4102-b0fd-4d82e17c34b7n%40googlegroups.com.