If I have a list of tiddlers created by forEachTiddler,
how can I have a check box or button next to each listing which
will allow me to delete the tiddlers I want?
I have been unable to find a plugin or work out some code to do it.
> If I have a list of tiddlers created by forEachTiddler,
> how can I have a check box or button next to each listing which
> will allow me to delete the tiddlers I want?
While not actually a direct answer to your question...
> > If I have a list of tiddlers created by forEachTiddler,
> > how can I have a check box or button next to each listing which
> > will allow me to delete the tiddlers I want?
> While not actually a direct answer to your question...
> I can't see how that deletes tiddlers, rather manipulates them.
> I am looking into deleteAllTagged as a possible solution to my
> problem.
There's a "delete tiddlers" push button right in the Tweaker (in
between the "display tiddlers" and "update tiddlers")...
Select the tiddlers you want to delete (try using the "tags" auto-
select command) ... press the "delete tiddlers" button... confirm the
"are you sure?" warning... the tiddlers are deleted. QED.
> If I have a list of tiddlers created by forEachTiddler, > how can I have a check box or button next to each listing which > will allow me to delete the tiddlers I want?
If you like, I could write a simple DeleteTiddlersMacro - that might work like this: <<deleteTiddlers [[tiddler title]]>> You could then integrate that macro into your FET call. Not sure whether I'll get to look into this today though...
Nearly got it sorted with deleteAllTaggedPlugin.
Just have to get a refresh to happen after the deletion,
and find out how to control the title of the delete button.
> > If I have a list of tiddlers created by forEachTiddler,
> > how can I have a check box or button next to each listing which
> > will allow me to delete the tiddlers I want?
> If you like, I could write a simple DeleteTiddlersMacro - that might
> work like this:
> <<deleteTiddlers [[tiddler title]]>>
> You could then integrate that macro into your FET call.
> Not sure whether I'll get to look into this today though...
> My novice skills are not sure how I can use it yet
Well, you said you wanted a "button next to each listing which will allow me to delete the tiddlers I want" - and this pretty much does exactly that (see the FET code in my previous post).
> > My novice skills are not sure how I can use it yet
> Well, you said you wanted a "button next to each listing which
> will allow me to delete the tiddlers I want" - and this pretty much does
> exactly that (see the FET code in my previous post).
Odd, it should have done that - except maybe if you have disabled popups? Anyway, it's nothing to worry about.
> If I want the button to say something like Confirm Delete > instead of the tiddler name, how do I do that?
I couldn't be bothered to include parameters for those things (yet), so try this slightly altered version: http://tiddlywiki.pastebin.com/f34cb54bd To change the button label, modify the following line to your liking: label: "delete",
> Odd, it should have done that - except maybe if you have disabled
> popups? Anyway, it's nothing to worry about.
> > If I want the button to say something like Confirm Delete
> > instead of the tiddler name, how do I do that?
> I couldn't be bothered to include parameters for those things (yet), so
> try this slightly altered version:
> http://tiddlywiki.pastebin.com/f34cb54bd > To change the button label, modify the following line to your liking:
> label: "delete",