Is there a way of exporting only my current open tiddlers?

81 views
Skip to first unread message

Rafael Oliveira

unread,
Aug 2, 2020, 3:52:56 PM8/2/20
to TiddlyWiki
I understand I can filter the tiddlers I want to export and export tiddlers individually as described on the documentation. However, is there any way of exporting all my current open tiddlers? I mean, something that works similarly to the permaview functionality but instead of opening the tiddlers on the page I'd like to export them. Is it possible?

Mark S.

unread,
Aug 2, 2020, 4:54:59 PM8/2/20
to TiddlyWiki
Go to advanced search. Filters tab. Click the "down" arrow. Pick the filter that says 
"Tiddlers in the story river, exclusing $:/Advancedsearch" or something to that effect. Use the export icon to export the filtered items.

Eric Shulman

unread,
Aug 2, 2020, 5:04:23 PM8/2/20
to TiddlyWiki
On Sunday, August 2, 2020 at 12:52:56 PM UTC-7, Rafael Oliveira wrote:
I understand I can filter the tiddlers I want to export and export tiddlers individually as described on the documentation. However, is there any way of exporting all my current open tiddlers? I mean, something that works similarly to the permaview functionality but instead of opening the tiddlers on the page I'd like to export them. Is it possible?

The list of currently open tiddlers is stored in the "list" field of $:/StoryList (i.e., $:/StoryList!!list)

To create a button that exports this list is easy:
<$vars tv-config-toolbar-class="tc-button" tv-config-toolbar-icons="yes" tv-config-toolbar-text="yes">
<$macrocall $name="exportButton" exportFilter={{$:/StoryList!!list}} lingoBase=<
<currentTiddler>>/>
</$vars>

1) tv-config-toolbar-class="tc-button" makes it look like a standard button (otherwise it looks like a toolbar button)
2) tv-config-toolbar-icons="yes" makes the icon appear (even if you have toolbar icons turned off)
3) tv-config-toolbar-text="yes" makes the text appear (even if you have toolbar text turned off)
4) lingoBase=<<currentTiddler>> lets you define custom button text (default="export tiddlers")

To add custom button text
1) create a tiddler with the same title as the tiddler containing the above button with "Caption" added to the title
2) enter the desired button text in the body of that tiddler

That's it.

enjoy,
-e



Rafael Oliveira

unread,
Aug 2, 2020, 5:05:37 PM8/2/20
to TiddlyWiki
Thanks!

Rafael Oliveira

unread,
Aug 2, 2020, 5:19:13 PM8/2/20
to TiddlyWiki
Eric,

Just as a curiosity... When a button with a custom functionality is created inside a tiddler like you did now. Can I add this button on my View Toolbar or Page Toolbar by pointing to that created Tiddler somehow?

Eric Shulman

unread,
Aug 2, 2020, 5:47:25 PM8/2/20
to TiddlyWiki
On Sunday, August 2, 2020 at 2:19:13 PM UTC-7, Rafael Oliveira wrote:
Just as a curiosity... When a button with a custom functionality is created inside a tiddler like you did now. Can I add this button on my View Toolbar or Page Toolbar by pointing to that created Tiddler somehow?

Just add the appropriate tag to the custom tiddler

$:/tags/ViewToolbar
$:/tags/PageControls
etc.

-e 

Rafael Oliveira

unread,
Aug 2, 2020, 6:23:20 PM8/2/20
to TiddlyWiki
Thanks
Reply all
Reply to author
Forward
0 new messages