Exporting Groups of Tiddlers

64 views
Skip to first unread message

Ash Sangoram

unread,
Jun 29, 2007, 2:34:34 PM6/29/07
to TiddlyWiki
I am a huge fan of TW and am now starting to use it as my electronic
laboratory notebook. I was outlining thoughts for a paper within the
file and realized that I probably should break those tiddlers off
into their own TW. Is there a way to select a particular tiddler and
export all tiddlers that are referenced by it (and iteratively
forward) so that one could scoop out an internally linked (and
complete) subset of tiddlers that correspond to my outline into
another file?
Thanks in advance,
Ash Sangoram

FND

unread,
Jun 30, 2007, 5:12:32 AM6/30/07
to Tiddl...@googlegroups.com
> Is there a way to select a particular tiddler and export
> all tiddlers that are referenced by it (and iteratively forward)

I don't think there's something doing exactly that.
However, you can create (or download) a new TiddlyWiki and import the
desired tiddlers from your original TW.
Take a look at Eric's ImportTiddlersPlugin*, which provides a lot of
enhanced importing features.

HTH.


-- F.


* http://www.tiddlytools.com/#ImportTiddlersPlugin

dawn ahukanna

unread,
Jun 30, 2007, 8:24:51 AM6/30/07
to Tiddl...@googlegroups.com
Or take a look at Eric's NewDocumentPlugin - http://www.tiddlytools.com/#NewDocumentPlugin. Creates new TiddlyWiki file from existing tiddlers with specific tag(s).
Dawn
--
http://dahukanna.net

Eric Shulman

unread,
Jun 30, 2007, 2:29:36 PM6/30/07
to TiddlyWiki
> > > Is there a way to select a particular tiddler and export
> > > all tiddlers that are referenced by it (and iteratively forward)

Give this a try:
http://www.TiddlyTools.com/#ShowRelatedTiddlers
(note: requires InlineJavascriptPlugin and NestedSlidersPlugin)

This HTML form+inline script starts from any selected tiddler and
recursively scans the tiddler links[] information to gather up a "list
view" of all related tiddler titles. The links[] info for each
tiddler includes references for each tiddler that is linked to, as
well as references for each tiddler that was *transcluded* by using
the <<tiddler>> macro, so the resulting list *should* contain ALL
tiddlers that are used (even indirectly) by the original selected
tiddler.

The script also generates a "tree view" (using nested blockquotes) so
you can examine the individual paths from the starting tiddler to any
other related tiddler. The tree shows all branches, so a tiddler may
be listed more than once. However, the recursion along any given
branch is automatically limited so that circular references are
avoided.

While this script doesn't actually *export* the tiddlers it finds, the
recursive function I've used here could also be applied to auto-
selecting tiddlers for export by either NewDocumentPlugin or
ExportTiddlersPlugin... it shouldn't be difficult to add a "select
related" feature as a keyword macro param for NewDocumentPlugin, and
as a clickable command link in the ExportTiddlerPlugin control panel.

enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios

BTW: In Graph Theory terms, the ShowRelatedTiddlers recursion is
finding a "partial spanning tree of a digraph with redundantly listed
leaf nodes".

Reply all
Reply to author
Forward
0 new messages