Can I delete most a tiddly wiki in a quick way?

188 views
Skip to first unread message

Sebastian Heyneman

unread,
Mar 24, 2019, 11:39:47 AM3/24/19
to TiddlyWiki
Hi. I'd like to share my tiddlywiki with a friend (to show them how great of a tool it is!). I don't want to share everything, just a couple of sections.

All of my content is organized into a Table of Contents and it is all connected to everything else with tags.

Is it possible to select a couple of tags at the top of the table of contents and delete everything below that tag? Or, put another way, can I delete everything except the content under a couple of sections in the table of contents?

Mohammad

unread,
Mar 24, 2019, 11:46:22 AM3/24/19
to TiddlyWiki
Install Tiddler Commander and do it simply!

look at


--Mohammad

Sebastian Heyneman

unread,
Mar 25, 2019, 11:47:48 AM3/25/19
to TiddlyWiki
Great, thanks.

Sebastian Heyneman

unread,
Mar 25, 2019, 11:51:53 AM3/25/19
to TiddlyWiki
Can you direct me for instructions to delete all of the tags in the tag tree for a parent node? eg, I have a tag and then that tiddly has children and then that tiddly has children that don't have the first
tag, but are still connected. Either way - really excited about this plugin!

Small note, there's a short type on the Snr tab in Commander: Search and replcae in tiddler fields!




On Sunday, March 24, 2019 at 8:46:22 AM UTC-7, Mohammad wrote:

Mohammad

unread,
Mar 25, 2019, 3:08:28 PM3/25/19
to TiddlyWiki
I did not understand your question, by the way the below steps let you selectively delete tiddlers tags

1. Open $:/Commander
2. In the searchbox enter [tags[]] -YourTag
3. click the search button
4. look at select tiddler and select all of them or those you like delete
5. select Tiddler tab and then Delete tiddlers
6. click on the Delete Tiddlers button and confirm delete!


Your question is more or less is regarding having a filter!

--Mohammad

Mark S.

unread,
Mar 25, 2019, 6:04:23 PM3/25/19
to TiddlyWiki
You can use TW-Commander, but first you need to make a list of tiddlers based on a tag tree. This can't be done with a single filter. This code (tested on TiddlyWiki.com)
shows one method:

define downonelevel(tag)
<$text text="[["/><$text text="""$tag$"""/><$text text="]]"/><$list filter="""[[$tag$]] +[tagging[]]"""  >
<$macrocall $name="downonelevel" tag=<<currentTiddler>>/>
</$list>
\end

<<downonelevel "HelloThere">>

This recursively drills down through the tree, and then creates each title as a tiddler. You can then take the filter string produced and use it in TW-Commander  to delete the corresponding items.

Only tested once, so do try to verify that the titles generated are appropriate.

HTH
-- Mark

TonyM

unread,
Mar 25, 2019, 11:08:24 PM3/25/19
to TiddlyWiki
Try bimlas kin filter.

It is exactly what you need for treating a tree of tiddlers as a set, as if they all had the same tag.

Create one that lists all the tiddler s in your tree then use that filter for the batch delete.

Regards
Tony

Sebastian Heyneman

unread,
Mar 26, 2019, 3:39:32 PM3/26/19
to TiddlyWiki
Hey TonyM. I'm confused on the bimlas kin filter.

Could you show me an example?

Best,
Sebastian

TonyM

unread,
Mar 26, 2019, 4:50:41 PM3/26/19
to TiddlyWiki
Sebastian,

I do not have the kin filter on my mobile but I think all you need is kin[roottiddler] and it will list all tiddlers in your tree.

Regards
Tony

bimlas

unread,
Mar 27, 2019, 2:55:20 AM3/27/19
to TiddlyWiki
Sebastian,


You can combine it with Tiddler Commander to delete the tiddlers that belong to a particular tag. For example:

[kin::to[Top tag 1]] [kin::to[Top tag 2]]

This will give you all the tiddlers that belong to the "Top Tag 1" or "Top Tag 2" and you can delete them with the Tiddler Commander.
Reply all
Reply to author
Forward
0 new messages