[tw] Re: Checkbox for removing tags?

2017-01-29 Thread Dave
I'm trying to get this working in my TW and am struggling:

this:

\define cycleStatus()
<$button>
<$action-listops $tags="+[cycle[active waiting done]]"/>
Cycle Status
\end

<>


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:



<$list filter="[tag[ToReview]]">


<$link><> 

<$button class="tc-btn-invisible" tooltip="cycle period">
<$action-listops $tags="+[cycle{!!list}]"/>
@ <$list filter="[is[current]tags[]] +[keep{!!list}]" variable="item"><
>




(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

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/07f2074c-8711-4a67-846d-1820beadef68%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Checkbox for removing tags?

2016-02-02 Thread Andrew Whiting
Hi Matabele,

I stumbled across this thread and was wondering if there is a way to 
combine your cycle [] filter operator with a checkbox so that checking the 
box removes one tag and adds the next in the cycle? I'm new to TIddlyWiki 
and am not in any way a programmer so hopefully that's not a dumb 
question...

For some added context, I'm pulling in a linked list of the titles of all 
tiddlers tagged "Review" that were created 2, 7, 14, 28 etc days ago (as a 
way of systematically reviewing class notes). I would like to use your 
cycle filter operator to make it so that checking the box next to the title 
removes "Review" and adds "Review 2" (or removes "Review 2" and adds 
"Review 3" and so on) to bump the tiddler into the next group with a longer 
waiting period.

I've been at it for hours and am stumped haha.

Thanks in advance!



On Friday, January 15, 2016 at 10:45:56 AM UTC+1, Matabele wrote:
>
> Hi Casey
>
> You might like to have a look at my new cycle[] filter operator from here 
> . If you like this solution, copy across 
> the modified version of the '$:/core/modules/filters/x-listops.js 
> <#c00a13fa-7179-4e65-9d6e-c4e9df77e5be@googlegroups.com_%24%3A%2Fcore%2Fmodules%2Ffilters%2Fx-listops.js>'
>  
> filters to your wiki (from the More/Systems tab.)
>
> This mechanism has several advantages over my previous <> macro:
> -- only one reference list required
> -- no conflicts between multiple buttons cycling the same tag
> -- can work forward/reverse
> -- can cycle multiple items in multiple lists/tiddler
>
> If you prefer this in the form of a macro, this works much like the old 
> macro (taking values from the 'list' field of the current tiddler):
>
> \define cycleTags()
> <$button>
> <$action-listops $tags="+[cycle{!!list}]"/>
> Cycle Tag
> \end
>
> -- or, even simpler:
>
> \define cycleStatus()
> <$button>
> <$action-listops $tags="+[cycle[active waiting done]]"/>
> Cycle Status
> \end
>
> regards
>
> On Friday, 15 January 2016 11:29:46 UTC+2, Casey Allan wrote:
>>
>> Oh, this is cool. Thanks, Matabele.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/1b366027-8d01-4550-894a-8243787f8a89%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Checkbox for removing tags?

2016-02-02 Thread Andrew Whiting
The problem is that I have multiple titles in my list (I attached a pic) so 
I was hoping not to end up with a bunch of buttons.

If I understand correctly, the state of the checkbox would reflect the 
presence of a "Review" (or some iteration of it) tag. By clicking it, I 
would remove "Review" and add "Review 2." This would both remove that title 
from my list and get it ready to pop up on my list again after x days 
because I would be pulling in anything tagged Review that's 3 days old, 
anything tagged Review 2 that's a week old, anything tagged Review 3 that's 
2 weeks old on so on. 

If you tell me it won't work I'll believe you and build the button. I just 
hoping your cycle filter would be a pretty solution to my problem.

Thanks!

On Tuesday, February 2, 2016 at 4:36:47 PM UTC+1, Matabele wrote:
>
> Hi Andrew
>
> The state of a checkbox (checked/unchecked) is tied to the 
> presence/absence of an item in a list. When cycling a tag, therefore, what 
> should the state of the checkbox reflect?
>
> Rather build a button which cycles the tag on each click -- the current 
> state can be displayed (on the button, if you wish) with the keep[] 
> operator (designed specifically for this purpose.)
>
> There's an example of this on the demo website here 
>  -- flip through the slides to keep[] 
> Operator (Examples), and repeatedly click any of the tags at the bottom of 
> the page. This should be something like what you're after.
>
> You'll need the version of the x-listops.js filters from the demo site 
> (which includes the cycle[] and keep[] operators) -- then adapt the code 
> from the aforementioned example.
>
> regards
>
> On Tuesday, 2 February 2016 17:24:06 UTC+2, Andrew Whiting wrote:
>>
>> Hi Matabele,
>>
>> I stumbled across this thread and was wondering if there is a way to 
>> combine your cycle [] filter operator with a checkbox so that checking the 
>> box removes one tag and adds the next in the cycle? I'm new to TIddlyWiki 
>> and am not in any way a programmer so hopefully that's not a dumb 
>> question...
>>
>> For some added context, I'm pulling in a linked list of the titles of all 
>> tiddlers tagged "Review" that were created 2, 7, 14, 28 etc days ago (as a 
>> way of systematically reviewing class notes). I would like to use your 
>> cycle filter operator to make it so that checking the box next to the title 
>> removes "Review" and adds "Review 2" (or removes "Review 2" and adds 
>> "Review 3" and so on) to bump the tiddler into the next group with a longer 
>> waiting period.
>>
>> I've been at it for hours and am stumped haha.
>>
>> Thanks in advance!
>>
>>
>>
>> On Friday, January 15, 2016 at 10:45:56 AM UTC+1, Matabele wrote:
>>>
>>> Hi Casey
>>>
>>> You might like to have a look at my new cycle[] filter operator from 
>>> here . If you like this solution, copy 
>>> across the modified version of the '$:/core/modules/filters/x-listops.js 
>>> <#388f1d21-b285-437c-8b24-0b6a9db9cc74@googlegroups.com_1b366027-8d01-4550-894a-8243787f8a89@googlegroups.com_c00a13fa-7179-4e65-9d6e-c4e9df77e5be@googlegroups.com_%24%3A%2Fcore%2Fmodules%2Ffilters%2Fx-listops.js>'
>>>  
>>> filters to your wiki (from the More/Systems tab.)
>>>
>>> This mechanism has several advantages over my previous <> 
>>> macro:
>>> -- only one reference list required
>>> -- no conflicts between multiple buttons cycling the same tag
>>> -- can work forward/reverse
>>> -- can cycle multiple items in multiple lists/tiddler
>>>
>>> If you prefer this in the form of a macro, this works much like the old 
>>> macro (taking values from the 'list' field of the current tiddler):
>>>
>>> \define cycleTags()
>>> <$button>
>>> <$action-listops $tags="+[cycle{!!list}]"/>
>>> Cycle Tag
>>> \end
>>>
>>> -- or, even simpler:
>>>
>>> \define cycleStatus()
>>> <$button>
>>> <$action-listops $tags="+[cycle[active waiting done]]"/>
>>> Cycle Status
>>> \end
>>>
>>> regards
>>>
>>> On Friday, 15 January 2016 11:29:46 UTC+2, Casey Allan wrote:

 Oh, this is cool. Thanks, Matabele.

>>>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/beb7e055-d13a-43ea-9c4e-dfd8a8e3adeb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Checkbox for removing tags?

2016-02-02 Thread Matabele
Hi Andrew

Note the @ I've placed before the expression with the keep[] operator -- 
this is so that the '@' shows as a button if the tiddler contains none of 
the tags in the list.

The @ can be replaced with anything -- a string of text or an icon for 
example.

regards

On Tuesday, 2 February 2016 18:20:05 UTC+2, Andrew Whiting wrote:
>
> Hi Matabele
>
> Okay, I'll see if I can make that work. It's not displaying a button for 
> some reason but I'm really new at this so I'll keep working on it.
>
> Thanks so much for your time and help!
>
> Andrew
>
> On Tuesday, February 2, 2016 at 5:04:03 PM UTC+1, Matabele wrote:
>>
>> Hi Andrew
>>
>> In the demo, each of the 'tag buttons' is cycling a different tag on a 
>> different tiddler. For your usage case, you'd need only a single 'tag 
>> button':
>>
>> <$list filter="[tag[ToReview]]">
>> 
>> <$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">
>>
>> <>
>> 
>> 
>>
>> 
>>
>> 
>>
>>
>> The top filter lists all of the tiddlers tagged 'ToReview'  -- and the 
>> <$link><> displays the title of the tiddler as a 
>> link.
>>
>> The button alongside will cycle through your four tags for that tiddler.
>>
>> Bare in mind, that when specified like this, the list of tags can not 
>> contain spaces. If any of your tags contain spaces, you must use a 
>> reference to a list in a field or variable (as in the example.)
>>
>> regards
>>
>> On Tuesday, 2 February 2016 17:53:29 UTC+2, Andrew Whiting wrote:
>>>
>>> The problem is that I have multiple titles in my list (I attached a pic) 
>>> so I was hoping not to end up with a bunch of buttons.
>>>
>>> If I understand correctly, the state of the checkbox would reflect the 
>>> presence of a "Review" (or some iteration of it) tag. By clicking it, I 
>>> would remove "Review" and add "Review 2." This would both remove that title 
>>> from my list and get it ready to pop up on my list again after x days 
>>> because I would be pulling in anything tagged Review that's 3 days old, 
>>> anything tagged Review 2 that's a week old, anything tagged Review 3 that's 
>>> 2 weeks old on so on. 
>>>
>>> If you tell me it won't work I'll believe you and build the button. I 
>>> just hoping your cycle filter would be a pretty solution to my problem.
>>>
>>> Thanks!
>>>
>>> On Tuesday, February 2, 2016 at 4:36:47 PM UTC+1, Matabele wrote:

 Hi Andrew

 The state of a checkbox (checked/unchecked) is tied to the 
 presence/absence of an item in a list. When cycling a tag, therefore, what 
 should the state of the checkbox reflect?

 Rather build a button which cycles the tag on each click -- the current 
 state can be displayed (on the button, if you wish) with the keep[] 
 operator (designed specifically for this purpose.)

 There's an example of this on the demo website here 
  -- flip through the slides to keep[] 
 Operator (Examples), and repeatedly click any of the tags at the bottom of 
 the page. This should be something like what you're after.

 You'll need the version of the x-listops.js filters from the demo site 
 (which includes the cycle[] and keep[] operators) -- then adapt the code 
 from the aforementioned example.

 regards

 On Tuesday, 2 February 2016 17:24:06 UTC+2, Andrew Whiting wrote:
>
> Hi Matabele,
>
> I stumbled across this thread and was wondering if there is a way to 
> combine your cycle [] filter operator with a checkbox so that checking 
> the 
> box removes one tag and adds the next in the cycle? I'm new to TIddlyWiki 
> and am not in any way a programmer so hopefully that's not a dumb 
> question...
>
> For some added context, I'm pulling in a linked list of the titles of 
> all tiddlers tagged "Review" that were created 2, 7, 14, 28 etc days ago 
> (as a way of systematically reviewing class notes). I would like to use 
> your cycle filter operator to make it so that checking the box next to 
> the 
> title removes "Review" and adds "Review 2" (or removes "Review 2" and 
> adds 
> "Review 3" and so on) to bump the tiddler into the next group with a 
> longer 
> waiting period.
>
> I've been at it for hours and am stumped haha.
>
> Thanks in advance!
>
>
>
> On Friday, January 15, 2016 at 10:45:56 AM UTC+1, Matabele wrote:
>>
>> Hi Casey
>>
>> You might like to have a look at my new cycle[] filter operator from 
>> here . If you like this solution, 
>> copy across the modified version of the '
>> $:/core/modules/filters/x-listops.js 
>> 

[tw] Re: Checkbox for removing tags?

2016-02-02 Thread Andrew Whiting
That was it haha. I should have seen that. I told you I'm very new at this. 

Thanks!

On Tuesday, February 2, 2016 at 5:36:27 PM UTC+1, Matabele wrote:
>
> Hi Andrew
>
> Oops -- I left out a  at the bottom there.
>
> regards
>
> On Tuesday, 2 February 2016 18:20:05 UTC+2, Andrew Whiting wrote:
>>
>> Hi Matabele
>>
>> Okay, I'll see if I can make that work. It's not displaying a button for 
>> some reason but I'm really new at this so I'll keep working on it.
>>
>> Thanks so much for your time and help!
>>
>> Andrew
>>
>> On Tuesday, February 2, 2016 at 5:04:03 PM UTC+1, Matabele wrote:
>>>
>>> Hi Andrew
>>>
>>> In the demo, each of the 'tag buttons' is cycling a different tag on a 
>>> different tiddler. For your usage case, you'd need only a single 'tag 
>>> button':
>>>
>>> <$list filter="[tag[ToReview]]">
>>> 
>>> <$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">
>>>
>>> <>
>>> 
>>> 
>>>
>>> 
>>>
>>> 
>>>
>>>
>>> The top filter lists all of the tiddlers tagged 'ToReview'  -- and the 
>>> <$link><> displays the title of the tiddler as a 
>>> link.
>>>
>>> The button alongside will cycle through your four tags for that tiddler.
>>>
>>> Bare in mind, that when specified like this, the list of tags can not 
>>> contain spaces. If any of your tags contain spaces, you must use a 
>>> reference to a list in a field or variable (as in the example.)
>>>
>>> regards
>>>
>>> On Tuesday, 2 February 2016 17:53:29 UTC+2, Andrew Whiting wrote:

 The problem is that I have multiple titles in my list (I attached a 
 pic) so I was hoping not to end up with a bunch of buttons.

 If I understand correctly, the state of the checkbox would reflect the 
 presence of a "Review" (or some iteration of it) tag. By clicking it, I 
 would remove "Review" and add "Review 2." This would both remove that 
 title 
 from my list and get it ready to pop up on my list again after x days 
 because I would be pulling in anything tagged Review that's 3 days old, 
 anything tagged Review 2 that's a week old, anything tagged Review 3 
 that's 
 2 weeks old on so on. 

 If you tell me it won't work I'll believe you and build the button. I 
 just hoping your cycle filter would be a pretty solution to my problem.

 Thanks!

 On Tuesday, February 2, 2016 at 4:36:47 PM UTC+1, Matabele wrote:
>
> Hi Andrew
>
> The state of a checkbox (checked/unchecked) is tied to the 
> presence/absence of an item in a list. When cycling a tag, therefore, 
> what 
> should the state of the checkbox reflect?
>
> Rather build a button which cycles the tag on each click -- the 
> current state can be displayed (on the button, if you wish) with the 
> keep[] 
> operator (designed specifically for this purpose.)
>
> There's an example of this on the demo website here 
>  -- flip through the slides to keep[] 
> Operator (Examples), and repeatedly click any of the tags at the bottom 
> of 
> the page. This should be something like what you're after.
>
> You'll need the version of the x-listops.js filters from the demo site 
> (which includes the cycle[] and keep[] operators) -- then adapt the code 
> from the aforementioned example.
>
> regards
>
> On Tuesday, 2 February 2016 17:24:06 UTC+2, Andrew Whiting wrote:
>>
>> Hi Matabele,
>>
>> I stumbled across this thread and was wondering if there is a way to 
>> combine your cycle [] filter operator with a checkbox so that checking 
>> the 
>> box removes one tag and adds the next in the cycle? I'm new to 
>> TIddlyWiki 
>> and am not in any way a programmer so hopefully that's not a dumb 
>> question...
>>
>> For some added context, I'm pulling in a linked list of the titles of 
>> all tiddlers tagged "Review" that were created 2, 7, 14, 28 etc days ago 
>> (as a way of systematically reviewing class notes). I would like to use 
>> your cycle filter operator to make it so that checking the box next to 
>> the 
>> title removes "Review" and adds "Review 2" (or removes "Review 2" and 
>> adds 
>> "Review 3" and so on) to bump the tiddler into the next group with a 
>> longer 
>> waiting period.
>>
>> I've been at it for hours and am stumped haha.
>>
>> Thanks in advance!
>>
>>
>>
>> On Friday, January 15, 2016 at 10:45:56 AM UTC+1, Matabele wrote:
>>>
>>> Hi Casey
>>>
>>> You might like to have a look at my new cycle[] filter operator from 
>>> here . If you like this solution, 
>>> copy across the modified version of the '
>>> 

[tw] Re: Checkbox for removing tags?

2016-02-02 Thread Matabele
Hi Andrew

On checking the demo site -- it isn't obvious that the buttons are cycling 
tags from the tags field of the target tiddler (as the tiddlers are open in 
a substory without the tag pills displayed.) If you wish to see this, open 
any of the target tiddlers from the sidebar (perhaps, Modals 
) -- then you can see the tag pills 
themselves cycling on the target tiddler.

The buttons have been set up to cycle and display the tags -- any other 
action widgets could be added to the buttons to do other stuff at the same 
time.

regards

On Tuesday, 2 February 2016 17:24:06 UTC+2, Andrew Whiting wrote:
>
> Hi Matabele,
>
> I stumbled across this thread and was wondering if there is a way to 
> combine your cycle [] filter operator with a checkbox so that checking the 
> box removes one tag and adds the next in the cycle? I'm new to TIddlyWiki 
> and am not in any way a programmer so hopefully that's not a dumb 
> question...
>
> For some added context, I'm pulling in a linked list of the titles of all 
> tiddlers tagged "Review" that were created 2, 7, 14, 28 etc days ago (as a 
> way of systematically reviewing class notes). I would like to use your 
> cycle filter operator to make it so that checking the box next to the title 
> removes "Review" and adds "Review 2" (or removes "Review 2" and adds 
> "Review 3" and so on) to bump the tiddler into the next group with a longer 
> waiting period.
>
> I've been at it for hours and am stumped haha.
>
> Thanks in advance!
>
>
>
> On Friday, January 15, 2016 at 10:45:56 AM UTC+1, Matabele wrote:
>>
>> Hi Casey
>>
>> You might like to have a look at my new cycle[] filter operator from here 
>> . If you like this solution, copy across 
>> the modified version of the '$:/core/modules/filters/x-listops.js 
>> <#1b366027-8d01-4550-894a-8243787f8a89@googlegroups.com_c00a13fa-7179-4e65-9d6e-c4e9df77e5be@googlegroups.com_%24%3A%2Fcore%2Fmodules%2Ffilters%2Fx-listops.js>'
>>  
>> filters to your wiki (from the More/Systems tab.)
>>
>> This mechanism has several advantages over my previous <> 
>> macro:
>> -- only one reference list required
>> -- no conflicts between multiple buttons cycling the same tag
>> -- can work forward/reverse
>> -- can cycle multiple items in multiple lists/tiddler
>>
>> If you prefer this in the form of a macro, this works much like the old 
>> macro (taking values from the 'list' field of the current tiddler):
>>
>> \define cycleTags()
>> <$button>
>> <$action-listops $tags="+[cycle{!!list}]"/>
>> Cycle Tag
>> \end
>>
>> -- or, even simpler:
>>
>> \define cycleStatus()
>> <$button>
>> <$action-listops $tags="+[cycle[active waiting done]]"/>
>> Cycle Status
>> \end
>>
>> regards
>>
>> On Friday, 15 January 2016 11:29:46 UTC+2, Casey Allan wrote:
>>>
>>> Oh, this is cool. Thanks, Matabele.
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/fb5762d4-4b1e-4326-8df3-223febca039a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Checkbox for removing tags?

2016-02-02 Thread Andrew Whiting
Awesome, that was confusing me. Thanks!

On Tuesday, February 2, 2016 at 4:49:33 PM UTC+1, Matabele wrote:
>
> Hi Andrew
>
> On checking the demo site -- it isn't obvious that the buttons are cycling 
> tags from the tags field of the target tiddler (as the tiddlers are open in 
> a substory without the tag pills displayed.) If you wish to see this, open 
> any of the target tiddlers from the sidebar (perhaps, Modals 
> ) -- then you can see the tag 
> pills themselves cycling on the target tiddler.
>
> The buttons have been set up to cycle and display the tags -- any other 
> action widgets could be added to the buttons to do other stuff at the same 
> time.
>
> regards
>
> On Tuesday, 2 February 2016 17:24:06 UTC+2, Andrew Whiting wrote:
>>
>> Hi Matabele,
>>
>> I stumbled across this thread and was wondering if there is a way to 
>> combine your cycle [] filter operator with a checkbox so that checking the 
>> box removes one tag and adds the next in the cycle? I'm new to TIddlyWiki 
>> and am not in any way a programmer so hopefully that's not a dumb 
>> question...
>>
>> For some added context, I'm pulling in a linked list of the titles of all 
>> tiddlers tagged "Review" that were created 2, 7, 14, 28 etc days ago (as a 
>> way of systematically reviewing class notes). I would like to use your 
>> cycle filter operator to make it so that checking the box next to the title 
>> removes "Review" and adds "Review 2" (or removes "Review 2" and adds 
>> "Review 3" and so on) to bump the tiddler into the next group with a longer 
>> waiting period.
>>
>> I've been at it for hours and am stumped haha.
>>
>> Thanks in advance!
>>
>>
>>
>> On Friday, January 15, 2016 at 10:45:56 AM UTC+1, Matabele wrote:
>>>
>>> Hi Casey
>>>
>>> You might like to have a look at my new cycle[] filter operator from 
>>> here . If you like this solution, copy 
>>> across the modified version of the '$:/core/modules/filters/x-listops.js 
>>> <#fb5762d4-4b1e-4326-8df3-223febca039a@googlegroups.com_1b366027-8d01-4550-894a-8243787f8a89@googlegroups.com_c00a13fa-7179-4e65-9d6e-c4e9df77e5be@googlegroups.com_%24%3A%2Fcore%2Fmodules%2Ffilters%2Fx-listops.js>'
>>>  
>>> filters to your wiki (from the More/Systems tab.)
>>>
>>> This mechanism has several advantages over my previous <> 
>>> macro:
>>> -- only one reference list required
>>> -- no conflicts between multiple buttons cycling the same tag
>>> -- can work forward/reverse
>>> -- can cycle multiple items in multiple lists/tiddler
>>>
>>> If you prefer this in the form of a macro, this works much like the old 
>>> macro (taking values from the 'list' field of the current tiddler):
>>>
>>> \define cycleTags()
>>> <$button>
>>> <$action-listops $tags="+[cycle{!!list}]"/>
>>> Cycle Tag
>>> \end
>>>
>>> -- or, even simpler:
>>>
>>> \define cycleStatus()
>>> <$button>
>>> <$action-listops $tags="+[cycle[active waiting done]]"/>
>>> Cycle Status
>>> \end
>>>
>>> regards
>>>
>>> On Friday, 15 January 2016 11:29:46 UTC+2, Casey Allan wrote:

 Oh, this is cool. Thanks, Matabele.

>>>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/4eab749b-3295-4a12-bd78-3e6db012b9eb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Checkbox for removing tags?

2016-02-02 Thread Andrew Whiting
Hi Matabele

Okay, I'll see if I can make that work. It's not displaying a button for 
some reason but I'm really new at this so I'll keep working on it.

Thanks so much for your time and help!

Andrew

On Tuesday, February 2, 2016 at 5:04:03 PM UTC+1, Matabele wrote:
>
> Hi Andrew
>
> In the demo, each of the 'tag buttons' is cycling a different tag on a 
> different tiddler. For your usage case, you'd need only a single 'tag 
> button':
>
> <$list filter="[tag[ToReview]]">
> 
> <$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">
>
> <>
> 
> 
>
> 
>
> 
>
>
> The top filter lists all of the tiddlers tagged 'ToReview'  -- and the 
> <$link><> displays the title of the tiddler as a 
> link.
>
> The button alongside will cycle through your four tags for that tiddler.
>
> Bare in mind, that when specified like this, the list of tags can not 
> contain spaces. If any of your tags contain spaces, you must use a 
> reference to a list in a field or variable (as in the example.)
>
> regards
>
> On Tuesday, 2 February 2016 17:53:29 UTC+2, Andrew Whiting wrote:
>>
>> The problem is that I have multiple titles in my list (I attached a pic) 
>> so I was hoping not to end up with a bunch of buttons.
>>
>> If I understand correctly, the state of the checkbox would reflect the 
>> presence of a "Review" (or some iteration of it) tag. By clicking it, I 
>> would remove "Review" and add "Review 2." This would both remove that title 
>> from my list and get it ready to pop up on my list again after x days 
>> because I would be pulling in anything tagged Review that's 3 days old, 
>> anything tagged Review 2 that's a week old, anything tagged Review 3 that's 
>> 2 weeks old on so on. 
>>
>> If you tell me it won't work I'll believe you and build the button. I 
>> just hoping your cycle filter would be a pretty solution to my problem.
>>
>> Thanks!
>>
>> On Tuesday, February 2, 2016 at 4:36:47 PM UTC+1, Matabele wrote:
>>>
>>> Hi Andrew
>>>
>>> The state of a checkbox (checked/unchecked) is tied to the 
>>> presence/absence of an item in a list. When cycling a tag, therefore, what 
>>> should the state of the checkbox reflect?
>>>
>>> Rather build a button which cycles the tag on each click -- the current 
>>> state can be displayed (on the button, if you wish) with the keep[] 
>>> operator (designed specifically for this purpose.)
>>>
>>> There's an example of this on the demo website here 
>>>  -- flip through the slides to keep[] 
>>> Operator (Examples), and repeatedly click any of the tags at the bottom of 
>>> the page. This should be something like what you're after.
>>>
>>> You'll need the version of the x-listops.js filters from the demo site 
>>> (which includes the cycle[] and keep[] operators) -- then adapt the code 
>>> from the aforementioned example.
>>>
>>> regards
>>>
>>> On Tuesday, 2 February 2016 17:24:06 UTC+2, Andrew Whiting wrote:

 Hi Matabele,

 I stumbled across this thread and was wondering if there is a way to 
 combine your cycle [] filter operator with a checkbox so that checking the 
 box removes one tag and adds the next in the cycle? I'm new to TIddlyWiki 
 and am not in any way a programmer so hopefully that's not a dumb 
 question...

 For some added context, I'm pulling in a linked list of the titles of 
 all tiddlers tagged "Review" that were created 2, 7, 14, 28 etc days ago 
 (as a way of systematically reviewing class notes). I would like to use 
 your cycle filter operator to make it so that checking the box next to the 
 title removes "Review" and adds "Review 2" (or removes "Review 2" and adds 
 "Review 3" and so on) to bump the tiddler into the next group with a 
 longer 
 waiting period.

 I've been at it for hours and am stumped haha.

 Thanks in advance!



 On Friday, January 15, 2016 at 10:45:56 AM UTC+1, Matabele wrote:
>
> Hi Casey
>
> You might like to have a look at my new cycle[] filter operator from 
> here . If you like this solution, 
> copy across the modified version of the '
> $:/core/modules/filters/x-listops.js 
> <#75feaa6b-3ac7-4373-847e-0a7a3ba813f4@googlegroups.com_beb7e055-d13a-43ea-9c4e-dfd8a8e3adeb@googlegroups.com_388f1d21-b285-437c-8b24-0b6a9db9cc74@googlegroups.com_1b366027-8d01-4550-894a-8243787f8a89@googlegroups.com_c00a13fa-7179-4e65-9d6e-c4e9df77e5be@googlegroups.com_%24%3A%2Fcore%2Fmodules%2Ffilters%2Fx-listops.js>'
>  
> filters to your wiki (from the More/Systems tab.)
>
> This mechanism has several advantages over my previous <> 
> macro:
> -- only one reference list required
> -- no conflicts between multiple buttons cycling the same tag

[tw] Re: Checkbox for removing tags?

2016-02-02 Thread Matabele
Hi Andrew

OK -- tested this in a TW now :-) Place this code in a tiddler, and place 
the list of tags in the list field (of the same tiddler.)


<$list filter="[tag[ToReview]]">

<$link><> 
<$button class="tc-btn-invisible" tooltip="cycle period">
<$action-listops $tags="+[cycle{!!list}]"/>
@ <$list filter="[is[current]tags[]] +[keep{!!list}]" variable="item"><
>




regards

On Tuesday, 2 February 2016 18:20:05 UTC+2, Andrew Whiting wrote:
>
> Hi Matabele
>
> Okay, I'll see if I can make that work. It's not displaying a button for 
> some reason but I'm really new at this so I'll keep working on it.
>
> Thanks so much for your time and help!
>
> Andrew
>
> On Tuesday, February 2, 2016 at 5:04:03 PM UTC+1, Matabele wrote:
>>
>> Hi Andrew
>>
>> In the demo, each of the 'tag buttons' is cycling a different tag on a 
>> different tiddler. For your usage case, you'd need only a single 'tag 
>> button':
>>
>> <$list filter="[tag[ToReview]]">
>> 
>> <$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">
>>
>> <>
>> 
>> 
>>
>> 
>>
>> 
>>
>>
>> The top filter lists all of the tiddlers tagged 'ToReview'  -- and the 
>> <$link><> displays the title of the tiddler as a 
>> link.
>>
>> The button alongside will cycle through your four tags for that tiddler.
>>
>> Bare in mind, that when specified like this, the list of tags can not 
>> contain spaces. If any of your tags contain spaces, you must use a 
>> reference to a list in a field or variable (as in the example.)
>>
>> regards
>>
>> On Tuesday, 2 February 2016 17:53:29 UTC+2, Andrew Whiting wrote:
>>>
>>> The problem is that I have multiple titles in my list (I attached a pic) 
>>> so I was hoping not to end up with a bunch of buttons.
>>>
>>> If I understand correctly, the state of the checkbox would reflect the 
>>> presence of a "Review" (or some iteration of it) tag. By clicking it, I 
>>> would remove "Review" and add "Review 2." This would both remove that title 
>>> from my list and get it ready to pop up on my list again after x days 
>>> because I would be pulling in anything tagged Review that's 3 days old, 
>>> anything tagged Review 2 that's a week old, anything tagged Review 3 that's 
>>> 2 weeks old on so on. 
>>>
>>> If you tell me it won't work I'll believe you and build the button. I 
>>> just hoping your cycle filter would be a pretty solution to my problem.
>>>
>>> Thanks!
>>>
>>> On Tuesday, February 2, 2016 at 4:36:47 PM UTC+1, Matabele wrote:

 Hi Andrew

 The state of a checkbox (checked/unchecked) is tied to the 
 presence/absence of an item in a list. When cycling a tag, therefore, what 
 should the state of the checkbox reflect?

 Rather build a button which cycles the tag on each click -- the current 
 state can be displayed (on the button, if you wish) with the keep[] 
 operator (designed specifically for this purpose.)

 There's an example of this on the demo website here 
  -- flip through the slides to keep[] 
 Operator (Examples), and repeatedly click any of the tags at the bottom of 
 the page. This should be something like what you're after.

 You'll need the version of the x-listops.js filters from the demo site 
 (which includes the cycle[] and keep[] operators) -- then adapt the code 
 from the aforementioned example.

 regards

 On Tuesday, 2 February 2016 17:24:06 UTC+2, Andrew Whiting wrote:
>
> Hi Matabele,
>
> I stumbled across this thread and was wondering if there is a way to 
> combine your cycle [] filter operator with a checkbox so that checking 
> the 
> box removes one tag and adds the next in the cycle? I'm new to TIddlyWiki 
> and am not in any way a programmer so hopefully that's not a dumb 
> question...
>
> For some added context, I'm pulling in a linked list of the titles of 
> all tiddlers tagged "Review" that were created 2, 7, 14, 28 etc days ago 
> (as a way of systematically reviewing class notes). I would like to use 
> your cycle filter operator to make it so that checking the box next to 
> the 
> title removes "Review" and adds "Review 2" (or removes "Review 2" and 
> adds 
> "Review 3" and so on) to bump the tiddler into the next group with a 
> longer 
> waiting period.
>
> I've been at it for hours and am stumped haha.
>
> Thanks in advance!
>
>
>
> On Friday, January 15, 2016 at 10:45:56 AM UTC+1, Matabele wrote:
>>
>> Hi Casey
>>
>> You might like to have a look at my new cycle[] filter operator from 
>> here . If you like this solution, 
>> copy across the modified version of the '
>> 

[tw] Re: Checkbox for removing tags?

2016-02-02 Thread Matabele
Hi Andrew

The state of a checkbox (checked/unchecked) is tied to the presence/absence 
of an item in a list. When cycling a tag, therefore, what should the state 
of the checkbox reflect?

Rather build a button which cycles the tag on each click -- the current 
state can be displayed (on the button, if you wish) with the keep[] 
operator (designed specifically for this purpose.)

There's an example of this on the demo website here 
 -- flip through the slides to keep[] 
Operator (Examples), and repeatedly click any of the tags at the bottom of 
the page. This should be something like what you're after.

You'll need the version of the x-listops.js filters from the demo site 
(which includes the cycle[] and keep[] operators) -- then adapt the code 
from the aforementioned example.

regards

On Tuesday, 2 February 2016 17:24:06 UTC+2, Andrew Whiting wrote:
>
> Hi Matabele,
>
> I stumbled across this thread and was wondering if there is a way to 
> combine your cycle [] filter operator with a checkbox so that checking the 
> box removes one tag and adds the next in the cycle? I'm new to TIddlyWiki 
> and am not in any way a programmer so hopefully that's not a dumb 
> question...
>
> For some added context, I'm pulling in a linked list of the titles of all 
> tiddlers tagged "Review" that were created 2, 7, 14, 28 etc days ago (as a 
> way of systematically reviewing class notes). I would like to use your 
> cycle filter operator to make it so that checking the box next to the title 
> removes "Review" and adds "Review 2" (or removes "Review 2" and adds 
> "Review 3" and so on) to bump the tiddler into the next group with a longer 
> waiting period.
>
> I've been at it for hours and am stumped haha.
>
> Thanks in advance!
>
>
>
> On Friday, January 15, 2016 at 10:45:56 AM UTC+1, Matabele wrote:
>>
>> Hi Casey
>>
>> You might like to have a look at my new cycle[] filter operator from here 
>> . If you like this solution, copy across 
>> the modified version of the '$:/core/modules/filters/x-listops.js 
>> <#1b366027-8d01-4550-894a-8243787f8a89@googlegroups.com_c00a13fa-7179-4e65-9d6e-c4e9df77e5be@googlegroups.com_%24%3A%2Fcore%2Fmodules%2Ffilters%2Fx-listops.js>'
>>  
>> filters to your wiki (from the More/Systems tab.)
>>
>> This mechanism has several advantages over my previous <> 
>> macro:
>> -- only one reference list required
>> -- no conflicts between multiple buttons cycling the same tag
>> -- can work forward/reverse
>> -- can cycle multiple items in multiple lists/tiddler
>>
>> If you prefer this in the form of a macro, this works much like the old 
>> macro (taking values from the 'list' field of the current tiddler):
>>
>> \define cycleTags()
>> <$button>
>> <$action-listops $tags="+[cycle{!!list}]"/>
>> Cycle Tag
>> \end
>>
>> -- or, even simpler:
>>
>> \define cycleStatus()
>> <$button>
>> <$action-listops $tags="+[cycle[active waiting done]]"/>
>> Cycle Status
>> \end
>>
>> regards
>>
>> On Friday, 15 January 2016 11:29:46 UTC+2, Casey Allan wrote:
>>>
>>> Oh, this is cool. Thanks, Matabele.
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/388f1d21-b285-437c-8b24-0b6a9db9cc74%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Checkbox for removing tags?

2016-02-02 Thread Matabele
Hi Andrew

In the demo, each of the 'tag buttons' is cycling a different tag on a 
different tiddler. For your usage case, you'd need only a single 'tag 
button':

<$list filter="[tag[ToReview]]">

<$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">

<>








The top filter lists all of the tiddlers tagged 'ToReview'  -- and the 
<$link><> displays the title of the tiddler as a 
link.

The button alongside will cycle through your four tags for that tiddler.

Bare in mind, that when specified like this, the list of tags can not 
contain spaces. If any of your tags contain spaces, you must use a 
reference to a list in a field or variable (as in the example.)

regards

On Tuesday, 2 February 2016 17:53:29 UTC+2, Andrew Whiting wrote:
>
> The problem is that I have multiple titles in my list (I attached a pic) 
> so I was hoping not to end up with a bunch of buttons.
>
> If I understand correctly, the state of the checkbox would reflect the 
> presence of a "Review" (or some iteration of it) tag. By clicking it, I 
> would remove "Review" and add "Review 2." This would both remove that title 
> from my list and get it ready to pop up on my list again after x days 
> because I would be pulling in anything tagged Review that's 3 days old, 
> anything tagged Review 2 that's a week old, anything tagged Review 3 that's 
> 2 weeks old on so on. 
>
> If you tell me it won't work I'll believe you and build the button. I just 
> hoping your cycle filter would be a pretty solution to my problem.
>
> Thanks!
>
> On Tuesday, February 2, 2016 at 4:36:47 PM UTC+1, Matabele wrote:
>>
>> Hi Andrew
>>
>> The state of a checkbox (checked/unchecked) is tied to the 
>> presence/absence of an item in a list. When cycling a tag, therefore, what 
>> should the state of the checkbox reflect?
>>
>> Rather build a button which cycles the tag on each click -- the current 
>> state can be displayed (on the button, if you wish) with the keep[] 
>> operator (designed specifically for this purpose.)
>>
>> There's an example of this on the demo website here 
>>  -- flip through the slides to keep[] 
>> Operator (Examples), and repeatedly click any of the tags at the bottom of 
>> the page. This should be something like what you're after.
>>
>> You'll need the version of the x-listops.js filters from the demo site 
>> (which includes the cycle[] and keep[] operators) -- then adapt the code 
>> from the aforementioned example.
>>
>> regards
>>
>> On Tuesday, 2 February 2016 17:24:06 UTC+2, Andrew Whiting wrote:
>>>
>>> Hi Matabele,
>>>
>>> I stumbled across this thread and was wondering if there is a way to 
>>> combine your cycle [] filter operator with a checkbox so that checking the 
>>> box removes one tag and adds the next in the cycle? I'm new to TIddlyWiki 
>>> and am not in any way a programmer so hopefully that's not a dumb 
>>> question...
>>>
>>> For some added context, I'm pulling in a linked list of the titles of 
>>> all tiddlers tagged "Review" that were created 2, 7, 14, 28 etc days ago 
>>> (as a way of systematically reviewing class notes). I would like to use 
>>> your cycle filter operator to make it so that checking the box next to the 
>>> title removes "Review" and adds "Review 2" (or removes "Review 2" and adds 
>>> "Review 3" and so on) to bump the tiddler into the next group with a longer 
>>> waiting period.
>>>
>>> I've been at it for hours and am stumped haha.
>>>
>>> Thanks in advance!
>>>
>>>
>>>
>>> On Friday, January 15, 2016 at 10:45:56 AM UTC+1, Matabele wrote:

 Hi Casey

 You might like to have a look at my new cycle[] filter operator from 
 here . If you like this solution, copy 
 across the modified version of the '
 $:/core/modules/filters/x-listops.js 
 <#beb7e055-d13a-43ea-9c4e-dfd8a8e3adeb@googlegroups.com_388f1d21-b285-437c-8b24-0b6a9db9cc74@googlegroups.com_1b366027-8d01-4550-894a-8243787f8a89@googlegroups.com_c00a13fa-7179-4e65-9d6e-c4e9df77e5be@googlegroups.com_%24%3A%2Fcore%2Fmodules%2Ffilters%2Fx-listops.js>'
  
 filters to your wiki (from the More/Systems tab.)

 This mechanism has several advantages over my previous <> 
 macro:
 -- only one reference list required
 -- no conflicts between multiple buttons cycling the same tag
 -- can work forward/reverse
 -- can cycle multiple items in multiple lists/tiddler

 If you prefer this in the form of a macro, this works much like the old 
 macro (taking values from the 'list' field of the current tiddler):

 \define cycleTags()
 <$button>
 <$action-listops $tags="+[cycle{!!list}]"/>
 Cycle Tag
 \end

 -- or, even simpler:

 \define cycleStatus()
 <$button>
 <$action-listops 

[tw] Re: Checkbox for removing tags?

2016-02-02 Thread Matabele
Hi Andrew

Oops -- I left out a  at the bottom there.

regards

On Tuesday, 2 February 2016 18:20:05 UTC+2, Andrew Whiting wrote:
>
> Hi Matabele
>
> Okay, I'll see if I can make that work. It's not displaying a button for 
> some reason but I'm really new at this so I'll keep working on it.
>
> Thanks so much for your time and help!
>
> Andrew
>
> On Tuesday, February 2, 2016 at 5:04:03 PM UTC+1, Matabele wrote:
>>
>> Hi Andrew
>>
>> In the demo, each of the 'tag buttons' is cycling a different tag on a 
>> different tiddler. For your usage case, you'd need only a single 'tag 
>> button':
>>
>> <$list filter="[tag[ToReview]]">
>> 
>> <$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">
>>
>> <>
>> 
>> 
>>
>> 
>>
>> 
>>
>>
>> The top filter lists all of the tiddlers tagged 'ToReview'  -- and the 
>> <$link><> displays the title of the tiddler as a 
>> link.
>>
>> The button alongside will cycle through your four tags for that tiddler.
>>
>> Bare in mind, that when specified like this, the list of tags can not 
>> contain spaces. If any of your tags contain spaces, you must use a 
>> reference to a list in a field or variable (as in the example.)
>>
>> regards
>>
>> On Tuesday, 2 February 2016 17:53:29 UTC+2, Andrew Whiting wrote:
>>>
>>> The problem is that I have multiple titles in my list (I attached a pic) 
>>> so I was hoping not to end up with a bunch of buttons.
>>>
>>> If I understand correctly, the state of the checkbox would reflect the 
>>> presence of a "Review" (or some iteration of it) tag. By clicking it, I 
>>> would remove "Review" and add "Review 2." This would both remove that title 
>>> from my list and get it ready to pop up on my list again after x days 
>>> because I would be pulling in anything tagged Review that's 3 days old, 
>>> anything tagged Review 2 that's a week old, anything tagged Review 3 that's 
>>> 2 weeks old on so on. 
>>>
>>> If you tell me it won't work I'll believe you and build the button. I 
>>> just hoping your cycle filter would be a pretty solution to my problem.
>>>
>>> Thanks!
>>>
>>> On Tuesday, February 2, 2016 at 4:36:47 PM UTC+1, Matabele wrote:

 Hi Andrew

 The state of a checkbox (checked/unchecked) is tied to the 
 presence/absence of an item in a list. When cycling a tag, therefore, what 
 should the state of the checkbox reflect?

 Rather build a button which cycles the tag on each click -- the current 
 state can be displayed (on the button, if you wish) with the keep[] 
 operator (designed specifically for this purpose.)

 There's an example of this on the demo website here 
  -- flip through the slides to keep[] 
 Operator (Examples), and repeatedly click any of the tags at the bottom of 
 the page. This should be something like what you're after.

 You'll need the version of the x-listops.js filters from the demo site 
 (which includes the cycle[] and keep[] operators) -- then adapt the code 
 from the aforementioned example.

 regards

 On Tuesday, 2 February 2016 17:24:06 UTC+2, Andrew Whiting wrote:
>
> Hi Matabele,
>
> I stumbled across this thread and was wondering if there is a way to 
> combine your cycle [] filter operator with a checkbox so that checking 
> the 
> box removes one tag and adds the next in the cycle? I'm new to TIddlyWiki 
> and am not in any way a programmer so hopefully that's not a dumb 
> question...
>
> For some added context, I'm pulling in a linked list of the titles of 
> all tiddlers tagged "Review" that were created 2, 7, 14, 28 etc days ago 
> (as a way of systematically reviewing class notes). I would like to use 
> your cycle filter operator to make it so that checking the box next to 
> the 
> title removes "Review" and adds "Review 2" (or removes "Review 2" and 
> adds 
> "Review 3" and so on) to bump the tiddler into the next group with a 
> longer 
> waiting period.
>
> I've been at it for hours and am stumped haha.
>
> Thanks in advance!
>
>
>
> On Friday, January 15, 2016 at 10:45:56 AM UTC+1, Matabele wrote:
>>
>> Hi Casey
>>
>> You might like to have a look at my new cycle[] filter operator from 
>> here . If you like this solution, 
>> copy across the modified version of the '
>> $:/core/modules/filters/x-listops.js 
>> 

[tw] Re: Checkbox for removing tags?

2016-01-15 Thread Casey Allan
Thanks :)
 
I changed things to "active", "waiting" and "done" .
 
All is happy on the tasklist front.
 
Cheers,
-C

On Wednesday, January 13, 2016 at 4:33:18 PM UTC, Tobias Beer wrote:

> Hi Casey,
>  
>
>> 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. 
>>
>
> I feared this might happen. ;-)
>
> It's because I was so so sneaky as to change the tag from *In Progress* 
> to *active*. 
> So, you can either search and replace it back or...
>
> Best wishes,
>
> Tobias.
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/15febf46-cc34-4bae-9ce5-de4342c2ea50%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Checkbox for removing tags?

2016-01-15 Thread Casey Allan
Oh, this is cool. Thanks, Matabele. 
 
Cheers,
-C
 

On Thursday, January 14, 2016 at 4:59:45 AM UTC, Matabele wrote:

> Hi Casey
>
> An alternative approach which might suit your usage case:
> -- each click of the button will choose the next tag in the list from the 
> 'list' field of the currentTiddler
> -- place the list of tags you wish to cycle through in the 'list' field
>
> <$button>
> <$action-listops $tags="[list[]first[]] -[list[]last[]]" 
> $subfilter="+[putlast[]]"/>
> Tag
>
> list: todo active done
>
> The button code may be written in the form of a global macro (<> 
> macro tiddler attached).
>
> The list field is required for every task tiddler:
> -- the state of the tag for each task is recorded by way of the order of 
> the tags in this field
> -- place the list (starting order) in the template for a new task
>
> regards
>
> On Tuesday, 12 January 2016 13:17:16 UTC+2, Casey Allan wrote:
>>
>> 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.
>>  
>> ! 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"/>
>> 
>> ! In Progress...
>> <$list filter="[!has[draft.of]tag[task]tag[In Progress]sort[created]]">
>> <$checkbox tag="done"> <$link to={{!!title}}><$view 
>> field="title"/>
>> 
>> ! Completed tasks
>> <$list filter="[!has[draft.of]tag[task]tag[done]sort[created]]">
>> <$checkbox tag="done"> ~~<$link to={{!!title}}><$view 
>> field="title"/>~~
>> 
>>
>> Any help is very much appreciated.
>>  
>> Cheers,
>> -C
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/882b75fb-ada4-403f-bc41-90f494197755%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Checkbox for removing tags?

2016-01-15 Thread Matabele
Hi Casey

You might like to have a look at my new cycle[] filter operator from here 
. If you like this solution, copy across 
the modified version of the '$:/core/modules/filters/x-listops.js 
<#%24%3A%2Fcore%2Fmodules%2Ffilters%2Fx-listops.js>' filters to your wiki 
(from the More/Systems tab.)

This mechanism has several advantages over my previous <> macro:
-- only one reference list required
-- no conflicts between multiple buttons cycling the same tag
-- can work forward/reverse
-- can cycle multiple items in multiple lists/tiddler

If you prefer this in the form of a macro, this works much like the old 
macro (taking values from the 'list' field of the current tiddler):

\define cycleTags()
<$button>
<$action-listops $tags="+[cycle{!!list}]"/>
Cycle Tag
\end

-- or, even simpler:

\define cycleStatus()
<$button>
<$action-listops $tags="+[cycle[active waiting done]]"/>
Cycle Status
\end

regards

On Friday, 15 January 2016 11:29:46 UTC+2, Casey Allan wrote:
>
> Oh, this is cool. Thanks, Matabele.
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/c00a13fa-7179-4e65-9d6e-c4e9df77e5be%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Checkbox for removing tags?

2016-01-13 Thread Casey Allan
<$list filter="[!has[draft.of]tag[task]!tag[active]!tag[done]sort[created]]"
>
<$checkbox tag="active">

<$link to={{!!title}}><$view field="title"/>




! In Progress...
<$list filter="[!has[draft.of]tag[task]tag[active]sort[created]]">

<$button class="tc-btn-invisible">

<$action-listops $tags="done -active"/>


<$link to={{!!title}}><$view field="title"/>



! Completed Tasks


<$list filter="[!has[draft.of]tag[task]tag[done]sort[created]]">
<$checkbox tag="done">
~~<$link to={{!!title}}><$view field="title"/>~~



 
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. 
 
 
 

On Tuesday, January 12, 2016 at 7:19:32 PM UTC, Tobias Beer wrote:

> Hi Matabele,
>  
>
>> Shouldn't close the  with />
>>
>
> Not quite. It was the little *+ *before the done tag
> which essentially removed *all *previous tags while adding the tag done. 
> ;-)
>
> Best wishes,
>
> Tobias.
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/406e0c7a-ad42-416f-b8fa-44dea374477e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Checkbox for removing tags?

2016-01-13 Thread Matabele
Hi Casey

An alternative approach which might suit your usage case:
-- each click of the button will choose the next tag in the list from the 
'list' field of the currentTiddler
-- place the list of tags you wish to cycle through in the 'list' field

<$button>
<$action-listops $tags="[list[]first[]] -[list[]last[]]" 
$subfilter="+[putlast[]]"/>
Tag

list: todo active done

The button code may be written in the form of a global macro (<> 
macro tiddler attached).

The list field is required for every task tiddler:
-- the state of the tag for each task is recorded by way of the order of 
the tags in this field
-- place the list (starting order) in the template for a new task

regards

On Tuesday, 12 January 2016 13:17:16 UTC+2, Casey Allan wrote:
>
> 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.
>  
> ! 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"/>
> 
> ! In Progress...
> <$list filter="[!has[draft.of]tag[task]tag[In Progress]sort[created]]">
> <$checkbox tag="done"> <$link to={{!!title}}><$view 
> field="title"/>
> 
> ! Completed tasks
> <$list filter="[!has[draft.of]tag[task]tag[done]sort[created]]">
> <$checkbox tag="done"> ~~<$link to={{!!title}}><$view 
> field="title"/>~~
> 
>
> Any help is very much appreciated.
>  
> Cheers,
> -C
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/d35f01f6-8f58-430d-b026-273db762f717%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Cycle Tag Macro.tid
Description: Binary data


[tw] Re: Checkbox for removing tags?

2016-01-13 Thread Tobias Beer
Hi Casey,
 

> 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. 
>

I feared this might happen. ;-)

It's because I was so so sneaky as to change the tag from *In Progress* to 
*active*. 
So, you can either search and replace it back or...

Best wishes,

Tobias.

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/feceadc5-4bf1-4a14-9df3-cf2fd164b777%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Checkbox for removing tags?

2016-01-12 Thread Tobias Beer
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:

*#2217 have CheckboxWidget trigger actions*
https://github.com/Jermolene/TiddlyWiki5/issues/2217

~

*@matabele*, I tried to use the *$action-listops* widget and a button,
but it appears to fail to do what I want:

! 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"/>


! In Progress...
<$list filter="[!has[draft.of]tag[task]tag[In Progress]sort[created]]">
<$button class="tc-btn-invisible"><$action-listops 
$field="tags" $subfilter="+done -[[In Progress]]"/>
<$link to={{!!title}}><$view field="title"/>


! Completed tasks
<$list filter="[!has[draft.of]tag[task]tag[done]sort[created]]">
<$checkbox tag="done"> ~~<$link to={{!!title}}><$view field="title"/>~~


Also, how to use *$action-listops* with the *$tags* attribute while 
preserving the existing tags?!?

Best wishes,

Tobias. 

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/7a9dc5cf-9950-4cf4-8a4d-f1f6a01fbb6d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Checkbox for removing tags?

2016-01-12 Thread Matabele
Hi Tobias

The $tags= attribute accepts a subfilter, which is applied as a run to the 
the existing contents of the 'tags' field -- so use:

<$action-listops $tags="done -[[In Progress]]"/>

AS far as I remember, I included this option to render the 
setting/unsetting of tags as quick and easy as possible.

It could also be done using the $filter= attribute -- like this:

<$action-listops $field="tags" $filter="[list[!!tags]] done -[[In 
Progress]]"/>

or like this:

<$button><$action-listops $field="tags" $subfilter="done -[[In 
Progress]]"/>Set

The $tags= attribute is simply a shortcut.

regards

On Tuesday, 12 January 2016 15:19:54 UTC+2, Tobias Beer wrote:
>
> *@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"><$action-listops 
> $field="tags" $subfilter="+done -[[In Progress]]"/>
> <$link to={{!!title}}><$view field="title"/>
> 
>
> Also, how to use *$action-listops* with the *$tags* attribute while 
> preserving the existing tags?!?
>
> Best wishes,
>
> Tobias. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/460c4cba-d194-4b6a-b17a-1effdeded714%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Checkbox for removing tags?

2016-01-12 Thread Matabele
Hi Tobias

Shouldn't close the  with />

regards

On Tuesday, 12 January 2016 20:53:16 UTC+2, Tobias Beer wrote:
>
> Hi Matabele,
>
> Ah, I see what I did wrong before now. Find the error:
>
> <$button class="tc-btn-invisible"><$action-listops 
> $field="tags" $subfilter="+done -[[In Progress]]"/>
>
> :-)
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/b13dd250-8689-469c-ab0b-f631bc5d1ab6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Checkbox for removing tags?

2016-01-12 Thread Tobias Beer
Hi Matabele,

Ah, I see what I did wrong before now. Find the error:

<$button class="tc-btn-invisible"><$action-listops 
$field="tags" $subfilter="+done -[[In Progress]]"/>

:-)

Ok, so this should work *for you Casey*:

! Backlog

<$list filter="[!has[draft.of]tag[task]!tag[active]!tag[done]sort[created]]"
>
<$checkbox tag="active">
<$link to={{!!title}}><$view field="title"/>




! In Progress...
<$list filter="[!has[draft.of]tag[task]tag[active]sort[created]]">
<$button class="tc-btn-invisible">

<$action-listops $tags="done -active"/>

<$link to={{!!title}}><$view field="title"/>



! Completed Tasks

<$list filter="[!has[draft.of]tag[task]tag[done]sort[created]]">
<$checkbox tag="done">
~~<$link to={{!!title}}><$view field="title"/>~~




Best wishes,

Tobias.

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/3f654f14-9aa9-4c5b-9205-e8bdbca7842e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Checkbox for removing tags?

2016-01-12 Thread Tobias Beer
Hi Matabele,
 

> Shouldn't close the  with />
>

Not quite. It was the little *+ *before the done tag
which essentially removed *all *previous tags while adding the tag done. ;-)

Best wishes,

Tobias.

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/edc0dfbd-a4b2-4cc3-a8d9-5bf4400bf42c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Checkbox for removing tags?

2016-01-12 Thread Eric Shulman
On Tuesday, January 12, 2016 at 3:17:16 AM UTC-8, Casey Allan wrote:
>
> 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.
>

Your first stop should always be to check the documentation on 
tiddlywiki.com:

http://tiddlywiki.com/#CheckboxWidget

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"

Q.E.D.

enjoy,
-e

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/b9c3a1fb-f276-4ecf-ae5d-d1edfeded4a6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Checkbox for removing tags?

2016-01-12 Thread Eric Shulman
On Tuesday, January 12, 2016 at 5:19:54 AM UTC-8, Tobias Beer wrote:
>
> 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:
>

Casey very clearly stated his goal:
"I want the "In Progress" tag to be removed once I tick the box"

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.  

-e




> *#2217 have CheckboxWidget trigger actions*
> https://github.com/Jermolene/TiddlyWiki5/issues/2217
>
> ~
>
> *@matabele*, I tried to use the *$action-listops* widget and a button,
> but it appears to fail to do what I want:
>
> ! 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"
> />
> 
>
> ! In Progress...
> <$list filter="[!has[draft.of]tag[task]tag[In Progress]sort[created]]">
> <$button class="tc-btn-invisible"><$action-listops 
> $field="tags" $subfilter="+done -[[In Progress]]"/>
> <$link to={{!!title}}><$view field="title"/>
> 
>
> ! Completed tasks
> <$list filter="[!has[draft.of]tag[task]tag[done]sort[created]]">
> <$checkbox tag="done"> ~~<$link to={{!!title}}><$view field="title"/> $link>~~
> 
>
> Also, how to use *$action-listops* with the *$tags* attribute while 
> preserving the existing tags?!?
>
> Best wishes,
>
> Tobias. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/dc13a331-47e4-452c-8643-a1944cacb4d9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Checkbox for removing tags?

2016-01-12 Thread Tobias Beer
Hi Eric,
 

> 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.  
>

The way I interpreted it is that a task is to move from *In Progress* to 
*done*.
This requires for a checkbox to both:

   1. remove the *In Progress* tag
   2. add the *done* tag
   
By the way, when using tags, I'd recommend using the same spelling for 
those in the same bucket. So, I'd be using something like *active*. rather 
than *In Progress*. In fact, I'd be using: #future, #next, #active, 
#waiting, #done.

Best wishes,

Tobias.

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/0f2505b7-fd1c-4307-9409-92f5922d4c78%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.