[Request] Hybrid of new here button and clone button

67 views
Skip to first unread message

David Gifford

unread,
Nov 26, 2020, 7:15:49 AM11/26/20
to TiddlyWiki
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
Message has been deleted

David Gifford

unread,
Nov 26, 2020, 7:42:51 AM11/26/20
to TiddlyWiki
Well, okay, I spoke too soon. The snippet in my previous post adds all the tags from the parent to the child. I don't want that. So, I still need your help!

On Thursday, November 26, 2020 at 6:35:50 AM UTC-6 David Gifford wrote:
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>>

David Gifford

unread,
Nov 26, 2020, 10:58:35 AM11/26/20
to TiddlyWiki
I did a workaround: I leave the parent articles untagged, and use a meta field to have them appear in a list-search. So my "new here with parent title" button works as is, since there are no tags carried over from the articles. And I use a meta field with different context for the notes, which blocks the meta field from the parent article. Happy day!

David Gifford

unread,
Nov 26, 2020, 11:42:55 AM11/26/20
to TiddlyWiki
Here is a (Spanish) final result.  Conversaciones prematrimoniales

The note button is hidden in the more menu, first item. The article button is hidden in the sidebar.

The process is smooth for me:
  1. Click new article button. Change XXX to a unique state tab identifer. Save.
  2. From that tiddler, click the new here with parent title button. Add caption. Add text. Save. That's it.
Note that the home and save wiki buttons in the menubar don't work. I asked for help for those in a separate post. But you can download it and play with it if you open the sidebar.
Reply all
Reply to author
Forward
0 new messages