Open multiple tiddlers with one button

39 views
Skip to first unread message

David Allen

unread,
Dec 23, 2019, 6:49:07 PM12/23/19
to TiddlyWiki
Hey everyone, I'm looking for a way to open multiple tiddlers with one button.  Anyone know of some way to do this?

TonyM

unread,
Dec 23, 2019, 7:13:02 PM12/23/19
to TiddlyWiki
David,

Very easy and exposes a valuable piece of tiddlywiki knowledge worth learning.

As you may know, on tiddlywiki.com the following produces a list of tiddlers;
<$list filter="[tag[Field Operators]]">

</$list>
you can use any filter to generate this list

Now we can look for an action that will open tiddlers eg; https://tiddlywiki.com/#ActionNavigateWidget 
  • We wrap it in a button so we can trigger this action
  • We wrap the action in the list so we can execute that action for every tiddler generated by the list
  • Since there is no variable= on the list widget the currentTiddler variable changes for each item in the list so the default of currentTiddler is used.
  • Since we did not provide the  $to= parameter in the action-navigate it defaulted to currentTiddler

<$button>
   <$list filter="[tag[Field Operators]]">
      <$action-navigate $to="ActionWidgets"/>
   </$list>
Click me!
</$button>

<$list filter="[tag[Field Operators]]">

</$list>

Why should you learn this deeply?, it opens up any list to activate any action on every tiddler in the list.
  • delete a tag
  • remove a tag
  • delete a set of tiddlers
  • more more more
Warning
  • Always consider showing the list of tiddlers to be impacted by the button with a seperate list as I have done

Regards
Tony
Reply all
Reply to author
Forward
0 new messages