Kind People, Does anyone know of a macro/script to add remove tags on current tiddler. Not unlike the TiddlerTweakerPlugin with the + and - Fields, but as a button. Off course reuse of the macro/script in FET etc... on items in tiddler lists would also be great.
I will explain what I am looking for by giving and an example of a script that would be great. <<settags with:"lable" "set tag request">> Where "set tag request" contains a set of tags to be set with a prefix indicating what operation. Ideally the tags can be placed inside [[taghere]] so tags containing the prefix or spaces can be passed. eg: Add the tag and retain if it exists <<settags with:"lable" "+[[tagname]]">> Remove the Tag if it exists <<settags with:"lable" "-[[tagname]]">> Toggle Tag, if present remove it if not add it <<settags with:"lable" "~[[tagname]]">> allow prefix in tag <<settags with:"lable" "+[[-tagname]]">> Eg add the tag "-tagname" Then allow a combination of the above <<settags with:"lable" "-[[comms]] -[[place]] -[[pinged]] + [[commscleared]]">> I have some more ideas that could be included so if someone feels like being a Java Wizard let me know and I can give an expanded Requirements definition. For example conditional behavior eg do it if a tag prefixed = "= [[tagname]]" exists or only do it if a tag does not exist ! "! [[tagname]]" <<settags with:"lable" "=[[comms]] -[[comms]] -[[place]] -[[pinged]] + [[commscleared]]">> Only if tagged comms will it remove comms, place and pinged and also add commscleared if not tagged comms it will do nothing. This is I believe a very simple way of providing very advanced tag manipulation which would be nice in the core. Thanks TonyM --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/TiddlyWiki?hl=en -~----------~----~----~----~------~----~------~--~---

