Modify a tiddler using a link?

62 views
Skip to first unread message

Ronen Teva

unread,
Oct 21, 2012, 2:44:34 AM10/21/12
to tiddl...@googlegroups.com
How can I modify (delete, tag, etc...) a tiddler from a different tiddler?

My code is:
<<forEachTiddler 
 where 
'tiddler.tags.containsAll(["Task","Current"]) && !tiddler.tags.contains(["Done"]) && store.getTaggedTiddlers(tiddler.title).length == 0'
 write
'"<<toggleTag Done [["+tiddler.title+"]] ->\> [["+tiddler.title+"]]\n"'
>>

toggleTag works great for adding a tag, but what if I want to change a tag, or delete the tiddler?

Thanks ahead.

Ronen Teva

unread,
Oct 22, 2012, 3:52:11 PM10/22/12
to tiddl...@googlegroups.com
Anyone?

TonyM

unread,
Oct 23, 2012, 2:12:24 AM10/23/12
to tiddl...@googlegroups.com
If you used the trash Plugin you could tag it trash but you will still need to empty trash, and tag with excludeLists excludeMissing to keep it out of lists until then.

All my active lists will not list tiddlers tagged "closed". So tagging it closed is an intermediate from of delete.

http://ido-xp.tiddlyspot.com/#TrashPlugin

What do you mean Modify a tiddler ?

Regards
Tony

whatever

unread,
Oct 23, 2012, 3:40:42 AM10/23/12
to TiddlyWiki
Hi!

I suggest you try Eric's CheckboxToggleTag (1). With it, you can add/
remove tag and replace one tag with another.
Examples:
<<tiddler CheckboxToggleTag with: sometag>> add/remove 'sometag'
<<tiddler CheckboxToggleTag with: tagA tagB>> toggle tagA (checked)
and tagB (unchecked)

(1) http://www.TiddlyTools.com/#CheckboxToggleTag

w

Ronen Teva

unread,
Oct 23, 2012, 12:51:12 PM10/23/12
to tiddl...@googlegroups.com
Thank you for your replies.

TrashPlugin seems nice, but I cant use it as it won't change the name of the tiddler.
My plan is to "archive" my tiddlers, by adding the year in the title.

Thanks for referring me to Eric's CheckboxToggleTag, it wont help delete a tiddler,
but it helped me find Eric's CheckboxPlugin, which might do exactly what I want, as it support scripts.
Reply all
Reply to author
Forward
0 new messages