! Outstanding tasks<$list filter="[!has[draft.of]tag[task]!tag[In Progress]!tag[done]sort[created]]"><$checkbox tag="In Progress"> <$link to={{!!title}}><$view field="title"/></$link></$checkbox></$list>! In Progress...<$list filter="[!has[draft.of]tag[task]tag[In Progress]sort[created]]"><$checkbox tag="done"> <$link to={{!!title}}><$view field="title"/></$link></$checkbox></$list>! Completed tasks<$list filter="[!has[draft.of]tag[task]tag[done]sort[created]]"><$checkbox tag="done"> ~~<$link to={{!!title}}><$view field="title"/></$link>~~</$checkbox></$list>I've got tags adding with no issue...but I want the "In Progress" tag to be removed once I tick the box to complete it... I'm just not sure how to delete a tag.
According to those docs, you want to add invertTag="yes", which says:"When set to yes, flips the tag binding logic so that the absence of the tag causes the checkbox to be checked"
! Outstanding tasks
<$list filter="[!has[draft.of]tag[task]!tag[In Progress]!tag[done]sort[created]]">
<$checkbox tag="In Progress"> <$link to={{!!title}}><$view field="title"/></$link></$checkbox>
</$list>
! In Progress...
<$list filter="[!has[draft.of]tag[task]tag[In Progress]sort[created]]">
<$button class="tc-btn-invisible"><input type="checkbox"/><$action-listops $field="tags" $subfilter="+done -[[In Progress]]"/></$button>
<$link to={{!!title}}><$view field="title"/></$link>
</$list>
! Completed tasks
<$list filter="[!has[draft.of]tag[task]tag[done]sort[created]]">
<$checkbox tag="done"> ~~<$link to={{!!title}}><$view field="title"/></$link>~~</$checkbox>
</$list>Hi Eric,According to those docs, you want to add invertTag="yes", which says:"When set to yes, flips the tag binding logic so that the absence of the tag causes the checkbox to be checked"I think the problem is that Casey wants to perform two actions in one checkbox,and futhermore it appears that the CheckboxWidget is unfit to do so, see:
Only *one* action.... remove a tag when a checkbox is clicked (or set the tag when the checkbox is cleared)That is *exactly* what the "invertTag" parameter accomplishes.
<$action-listops $tags="done -[[In Progress]]"/><$action-listops $field="tags" $filter="[list[!!tags]] done -[[In Progress]]"/><$button><$action-listops $field="tags" $subfilter="done -[[In Progress]]"/>Set</$button>@matabele, I tried to use the $action-listops widget and a button,but it appears to fail to do what I want:
! In Progress...
<$list filter="[!has[draft.of]tag[task]tag[In Progress]sort[created]]">
<$button class="tc-btn-invisible"><input type="checkbox"/><$action-listops $field="tags" $subfilter="+done -[[In Progress]]"/></$button>
<$link to={{!!title}}><$view field="title"/></$link>
</$list>
<$button class="tc-btn-invisible"><input type="checkbox"/><$action-listops $field="tags" $subfilter="+done -[[In Progress]]"/></$button>! Backlog
<$list filter="[!has[draft.of]tag[task]!tag[active]!tag[done]sort[created]]">
<$checkbox tag="active">
<$link to={{!!title}}><$view field="title"/></$link>
</$checkbox>
<br>
</$list>
! In Progress...
<$list filter="[!has[draft.of]tag[task]tag[active]sort[created]]">
<$button class="tc-btn-invisible">
<input type="checkbox"/>
<$action-listops $tags="done -active"/>
</$button>
<$link to={{!!title}}><$view field="title"/></$link>
<br>
</$list>
! Completed Tasks
<$list filter="[!has[draft.of]tag[task]tag[done]sort[created]]">
<$checkbox tag="done">
~~<$link to={{!!title}}><$view field="title"/></$link>~~
</$checkbox>
<br>
</$list>Shouldn't close the <input type="checkbox"> with />
<$list filter="[!has[draft.of]tag[task]!tag[active]!tag[done]sort[created]]">
<$checkbox tag="active">
<$link to={{!!title}}><$view field="title"/></$link>
</$checkbox>
<br>
</$list>
! In Progress...
<$list filter="[!has[draft.of]tag[task]tag[active]sort[created]]"><$button class="tc-btn-invisible">
<input type="checkbox"/>
<$action-listops $tags="done -active"/>
</$button>
<$link to={{!!title}}><$view field="title"/></$link>
<br>
</$list>
! Completed Tasks
<$list filter="[!has[draft.of]tag[task]tag[done]sort[created]]">
<$checkbox tag="done">
~~<$link to={{!!title}}><$view field="title"/></$link>~~
</$checkbox>
<br>
</$list>I can't get the correction with the button to work, though, Tobias - it doesn't list the tasks at all under the In Progress... header. All I get is one lone checkbox.
<$button>
<$action-listops $tags="[list[]first[]] -[list[]last[]]" $subfilter="+[putlast[]]"/>
Tag</$button>list: todo active done\define cycleTags()
<$button>
<$action-listops $tags="+[cycle{!!list}]"/>
Cycle Tag</$button>
\end\define cycleStatus()
<$button>
<$action-listops $tags="+[cycle[active waiting done]]"/>Cycle Status</$button>
\end<ul><$list filter="[tag[ToReview]]"> <li> <$link><<currentTiddler>> </$link><$button class="tc-btn-invisible" tooltip="cycle period"><$action-listops $tags="+[cycle[Review1 Review2 Review3 Review4]"/>@<$list filter="[is[current]tags[]] +[keep[Review1 Review2 Review3 Review4]]" variable="item"><<item>></$list>
</$button>
</li></ul><ul>
<$list filter="[tag[ToReview]]">
<li>
<$link><<currentTiddler>> </$link></li>
<$button class="tc-btn-invisible" tooltip="cycle period">
<$action-listops $tags="+[cycle{!!list}]"/>
@ <$list filter="[is[current]tags[]] +[keep{!!list}]" variable="item"><<item>></$list>
</$button>
</$list>
</ul>\define cycleStatus()
<$button>
<$action-listops $tags="+[cycle[active waiting done]]"/>
Cycle Status</$button>
\end
<<cycleStatus>>causes the TW to need changes saved (the "save" icon turns red") but nothing happens - I was expecting the tiddler to cycle through the three tags
and this one:
<ul>
<$list filter="[tag[ToReview]]">
<li>
<$link><<currentTiddler>> </$link></li>
<$button class="tc-btn-invisible" tooltip="cycle period">
<$action-listops $tags="+[cycle{!!list}]"/>
@ <$list filter="[is[current]tags[]] +[keep{!!list}]" variable="item"><<item>></$list>
</$button>
</$list>
</ul>
(with "ToReview" changed to a tag that I have in use) also causes unseen changes
(yes, I added a field "list" with a few words in it to use as tags)
What am I doing wrong? My version is 5.1.13