exporting a tag tree from a TW

82 views
Skip to first unread message

Harris

unread,
May 30, 2020, 5:50:16 PM5/30/20
to TiddlyWiki
Hi all,
I am trying to export tiddlers from a TW by specifying only the top level tiddler of a tag hierarchy using advanced search. Some of the tiddlers to be exported are not tagged by the top level tiddler but by the children of the top level tiddler.

Basically I would like to export the whole output given by:
<<toc-selective-expandable 'MyTopLevelTag'>> 

I've included some thoughts and attempts below:

1. I have not managed to get this to work using "kin filter" by Bimlas. Maybe I am doing something wrong and also my wiki is quite large so I am struggling to run kin filter within advanced search. The wiki becomes unresponsive for a while so it takes a while to test various search syntax variations.

2. One other approach would be to use [[MyTopLevelTag]tagging[]] and combine the results with another instance of tagging[]. I would then keep doing this recursively until I would reach the bottom of the tag tree but again I have not figured out how to do this within advanced search.

3. Taking all the tiddlers tagged with MyTopLevelTag and returning their respective tags using tags[] (e.g. "[tag[MyTopLevelTag]tags[]]") will also need to be done recursively, so I have the same problem as above. 

4. I also thought of using the subfilter operator but I cannot run this within advanced search which offers the export function. By the way, are there other ways to export results as JSON or other formats from outside "advanced search"?

Any insights would be much appreciated. Also please flag any of my misunderstandings and bits where I have gotten the wrong end of the stick.

I'll also try to have another go with a clear head tomorrow.

Best wishes 
Harris

Mark S.

unread,
May 30, 2020, 7:09:47 PM5/30/20
to TiddlyWiki


On Saturday, May 30, 2020 at 2:50:16 PM UTC-7, Harris wrote:

1. I have not managed to get this to work using "kin filter" by Bimlas. Maybe I am doing something wrong and also my wiki is quite large so I am struggling to run kin filter within advanced search. The wiki becomes unresponsive for a while so it takes a while to test various search syntax variations.


Maybe you could share the filter you're attempting?

Harris

unread,
May 30, 2020, 7:35:35 PM5/30/20
to TiddlyWiki
Hi Mark,
The url for "kin filter" is: https://bimlas.gitlab.io/tw5-kin-filter/

Or are you referring to the exact syntax I tried to use with kin filter?

Thanks
H.

Mark S.

unread,
May 30, 2020, 7:40:26 PM5/30/20
to TiddlyWiki
Yes, the exact filter.

TonyM

unread,
May 30, 2020, 8:53:26 PM5/30/20
to TiddlyWiki
Harris

If you place your filter in advanced search filters. No matter how convoluted, using the kin filter etc... You will see the list of tiddlers below and you can export every tiddler from its export button. I recommend a json file.

Once you have the correct filter you can use it to make a custom exporthogonality button.

Regards
Tony

Reply all
Reply to author
Forward
0 new messages