[TW5] How to import/export subset of tiddlers?

788 views
Skip to first unread message

Mark S.

unread,
Sep 1, 2014, 6:58:22 PM9/1/14
to tiddl...@googlegroups.com
Hello,

I've looked through the information at tiddlywiki.com and this forum, but haven't seen this directly addressed.

Is there a standard method or known plugin for exporting and importing a set (probably tagged) of tiddlers? In this case, I'm not concerned with the output/input format -- I'm mostly concerned about managing tiddlers as a particular page becomes too large.

Thank you,
Mark

James Anderson

unread,
Sep 2, 2014, 3:44:59 AM9/2/14
to tiddl...@googlegroups.com
looking at $:/editions/tw5.com/download-empty might help you (on tiddlywiki.com)

if you add [tag[introduction]]  to the \define saveTiddlerFilter() macro you will include all tiddlers tagged with introduction to the "empty" save.

Mark S.

unread,
Sep 2, 2014, 11:42:07 PM9/2/14
to tiddl...@googlegroups.com
Thank you for your response.

I'm surprised that a task so important is buried so deeply. When evaluating information managers (and I've looked at dozens) one of the first things I do is consider how I can get my data in/out in the event that the software is no longer supported. I can't be the only one looking for this feature.

What is the "empty" save? How is it triggered?

Thanks again,
Mark

James Anderson

unread,
Sep 3, 2014, 2:43:40 AM9/3/14
to tiddl...@googlegroups.com
It's triggered by the big green button here: http://tiddlywiki.com/#GettingStarted

By default it downloads a new version of TW containing no tiddlers. If you edit it in the way i suggested it will contain only tiddlers marked with the "introduction" tag.

Danielo Rodríguez

unread,
Sep 3, 2014, 3:25:16 AM9/3/14
to tiddl...@googlegroups.com
Thank you James!
I think this deserves a plugin that lets you download what you want. Looks very easy to implement.

PMario

unread,
Sep 3, 2014, 5:05:27 AM9/3/14
to tiddl...@googlegroups.com
On Wednesday, September 3, 2014 5:42:07 AM UTC+2, Mark S. wrote:
I'm surprised that a task so important is buried so deeply. When evaluating information managers (and I've looked at dozens) one of the first things I do is consider how I can get my data in/out in the event that the software is no longer supported. I can't be the only one looking for this feature.

TW is a text file based software. So there is no backend where you would need to get your data out. Just store the TW file on several harddisks and you are good to go.
If browsers refuse to open html files in the future, use a text editor. All your content will be there.

-m

Branimir Braykov

unread,
Sep 3, 2014, 7:26:31 AM9/3/14
to tiddl...@googlegroups.com
I think this deserves to go in a FAQ place somewhere.
It is a very good question. And there might be many more reasons for someone to want to export tiddlers.
One would be to split a wiki in two (or more) when while the wiki is growing the author(s) start to realize that some topic categories deserve a wiki themselves.
Of course other resolutions could be suggested, e.g. in my example, to just copy a wolo and then delete from each wiki the relevant tiddlers.

Jeremy Ruston

unread,
Sep 3, 2014, 7:29:33 AM9/3/14
to TiddlyWiki
The plan is to add an export facility, as described in my response to this ticket:


Best wishes

Jeremy



--
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 tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.



--
Jeremy Ruston
mailto:jeremy...@gmail.com

Mark S.

unread,
Sep 15, 2014, 12:02:53 AM9/15/14
to tiddl...@googlegroups.com
Now that I've had a chance to look at it, I find that there is no button activation code that I can borrow. Trying to look at it in the javascript debugger, I see a button that doesn't activate anything with some enclosed SVG that draws the button. Soooo .... what do I actually do to invoke the macro?

Thanks again!
Mark

c pa

unread,
Sep 15, 2014, 12:31:32 AM9/15/14
to tiddl...@googlegroups.com
Good point. I waded through the items that lead to that button working as follows:

* GettingStarted is composed of a set of tabs listing all tiddlers with a name starting with "GettingStarted -"
* GettingStarted - TiddlyFox is composed of "Saving with TiddlyFox"
* Saving with TiddlyFox points to "$:/editions/tw5.com/snippets/download-empty-button"
* $:/editions/tw5.com/snippets/download-empty-button has param="$:/editions/tw5.com/download-empty"
* $:/editions/tw5.com/download-empty is the tiddler that you need to edit and then you need to understand the filter language to do it

* I'm guessing that the correct code would be to create a new tiddler "downloadList" with contents like: (More seasoned guys chime in)

\define saveTiddlerFilter()
[[$:/core]] [[$:/isEncrypted]] [[$:/themes/tiddlywiki/snowwhite]] [[$:/themes/tiddlywiki/vanilla]] -[[$:/boot/boot.css]] -[type[application/javascript]library[yes]] -[[$:/boot/boot.js]] -[[$:/boot/bootprefix.js]] +[!!Put your filter here!!]  +[sort[title]]
\end
\define savingEmpty()
yes
\end
{{$:/core/templates/tiddlywiki5.html}}

And then call it in another tiddler with

<$button message="tm-download-file" param="downloadList" class="tc-btn-big-green">Download Empty + My List {{$:/core/images/save-button}}</$button>

BJ

unread,
Sep 15, 2014, 4:38:47 AM9/15/14
to tiddl...@googlegroups.com
HI Mark,
if you are using firefox there is now  a addon/plugin that enables tiddlers to to import based on a tag.
it can be found here:
http://tiddlyclip.tiddlyspot.com/
cheers

BJ

Mark S.

unread,
Sep 15, 2014, 12:07:34 PM9/15/14
to tiddl...@googlegroups.com
Hello c pa,

I tried this, but nothing seemed to happen -- not even an empty TW. Perhaps some other magic setting?

To me, an information manager without an export function is like a house without a front door. Sure you can break the windows and grab whatever you need, but somehow it doesn't seem right.

Thanks!
Mark

Mark S.

unread,
Sep 15, 2014, 12:11:53 PM9/15/14
to tiddl...@googlegroups.com
Hello BJ,

I couldn't get the add-on to dock to anything other than the site on tiddlyspot. Is the version imiportant? Working with 5.0.15-beta and FF 27.0.1.

The add-on did work for clipping text to the tiddlyclip page, so the add-on works partially.

Thanks,
Mark

BJ

unread,
Sep 15, 2014, 12:50:00 PM9/15/14
to tiddl...@googlegroups.com
Hi Mark,
the plugin was build for 5.0.16 or greater.
you also need to copy (drag to your tw) the plugin from the demo - $:/plugins/bj/tiddlyclip, from the 'getting started' tiddler
cheers

BJ

Mark S.

unread,
Sep 16, 2014, 11:16:59 AM9/16/14
to tiddl...@googlegroups.com
Ok. After upgrading and installing the plugin it works. Thanks!

Mark
Reply all
Reply to author
Forward
0 new messages