Hi, I once wanted to do a PR for this feature but then solved it in a different way...
@James maybe have a look at: https://github.com/Jermolene/TiddlyWiki5/issues/1109 -Felix On 09.06.2015 19:39, Jeremy Ruston wrote: > Hi James > > Adding an "invert" attribute to the checkbox widget is reasonable. It > would be more consistent with existing widgets for the text to be > "invert='yes'". > > The other possibility is to avoid using the checkbox widget at all, > and use the reveal widget to flip between Unicode checkboxes. > > Best wishes > > Jeremy. > > > On Sun, Jun 7, 2015 at 11:21 PM, James Anderson > <james.w.ander...@gmail.com <mailto:james.w.ander...@gmail.com>> wrote: > > TL;DR: I would like to be able to specify the lack of a tag to > check a checkbox widget i.e. <$checkbox !tag="incomplete"> > > I had a couple of helper tiddlers and buttons for generating task > lists by topic. They were > > *GenericTaskListComplete* > | > <$list > filter="[!has[draft.of]tag{!!title}tag[task]tag[complete]sort[created]]"> > <$checkbox tag="complete"><$link to={{!!title}}><$view > field="title"/></$link></$checkbox><br/> > </$list> > | > > > *GenericTaskListIncomplete* > | > <$list > filter="[!has[draft.of]tag{!!title}tag[task]!tag[complete]sort[created]]"> > <$checkbox tag="complete"> <$link to={{!!title}}><$view > field="title"/></$link></$checkbox><br/> > </$list> > | > > > *Articles (*for example) > > | > !ReadMe > {{||GenericTaskListIncomplete}} > !Read > {{||GenericTaskListComplete}} > !Other > |{{||GenericList}} //<-- anything that is not tagged as a task > > Which was good...Except when I wanted to stop the tiddler from > being a task and i'd have to remove both the "task" and "complete" > tags. Also "complete" tags end up littering up my TW. I would > rather that incomplete tasks stood out and that i only had to > remove one tag on completed tasks :) > > So I would prefer to do it this way: > > If something is tagged as a "task" and "incomplete" it should be > unchecked and once completed the "incomplete" tag removed and have > it checked. this is mostly possible aside from the checked boxes > being inverted. > > *GenericTaskListComplete* > | > <$list > > filter="[!has[draft.of]tag{!!title}tag[task]!tag[incomplete]sort[created]]"> > <$checkbox tag="incomplete"><$link to={{!!title}}><$view > field="title"/></$link></$checkbox><br/> > </$list> > | > > > *GenericTaskListIncomplete* > | > <$list > > filter="[!has[draft.of]tag{!!title}tag[task]tag[incomplete]sort[created]]"> > <$checkbox tag="incomplete"> <$link to={{!!title}}><$view > field="title"/></$link></$checkbox><br/> > </$list> > | > > Obviously i could just make a checkbox1 widget and maintain that, > but would there be any possibility of getting something like a > "tag doesn't contain" parameter into the checkbox core? In fact a > simple "invert=`true`" param would be even easier. > > Thanks, > > James > -- > You received this message because you are subscribed to the Google > Groups "TiddlyWikiDev" group. > To unsubscribe from this group and stop receiving emails from it, > send an email to tiddlywikidev+unsubscr...@googlegroups.com > <mailto:tiddlywikidev+unsubscr...@googlegroups.com>. > To post to this group, send email to > tiddlywikidev@googlegroups.com > <mailto:tiddlywikidev@googlegroups.com>. > Visit this group at http://groups.google.com/group/tiddlywikidev. > To view this discussion on the web visit > > https://groups.google.com/d/msgid/tiddlywikidev/f53e1396-e0ac-4adb-a316-d4e0e15ee597%40googlegroups.com > > <https://groups.google.com/d/msgid/tiddlywikidev/f53e1396-e0ac-4adb-a316-d4e0e15ee597%40googlegroups.com?utm_medium=email&utm_source=footer>. > For more options, visit https://groups.google.com/d/optout. > > > > > -- > Jeremy Ruston > mailto:jeremy.rus...@gmail.com <mailto:jeremy.rus...@gmail.com> > -- > You received this message because you are subscribed to the Google > Groups "TiddlyWikiDev" group. > To unsubscribe from this group and stop receiving emails from it, send > an email to tiddlywikidev+unsubscr...@googlegroups.com > <mailto:tiddlywikidev+unsubscr...@googlegroups.com>. > To post to this group, send email to tiddlywikidev@googlegroups.com > <mailto:tiddlywikidev@googlegroups.com>. > Visit this group at http://groups.google.com/group/tiddlywikidev. > To view this discussion on the web visit > https://groups.google.com/d/msgid/tiddlywikidev/CAPKKYJbOX0%2Bx%3DEYVT7%2Br8%3DjbZH7LJUu_egtAuptbm7t6rx35Yg%40mail.gmail.com > <https://groups.google.com/d/msgid/tiddlywikidev/CAPKKYJbOX0%2Bx%3DEYVT7%2Br8%3DjbZH7LJUu_egtAuptbm7t6rx35Yg%40mail.gmail.com?utm_medium=email&utm_source=footer>. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywikidev+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywikidev@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywikidev. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywikidev/BLU436-SMTP24AE87F17A65663A5C8B51CEBE0%40phx.gbl. For more options, visit https://groups.google.com/d/optout.