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 
> <http://listops.tiddlyspot.com/#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 <http://listops.tiddlyspot.com/>. If you like this solution, copy 
>>> across the modified version of the '$:/core/modules/filters/x-listops.js 
>>> <#[email protected][email protected][email protected]_%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 <<cycleTags>> 
>>> 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</$button>
>>> \end
>>>
>>> -- or, even simpler:
>>>
>>> \define cycleStatus()
>>> <$button>
>>> <$action-listops $tags="+[cycle[active waiting done]]"/>
>>> Cycle Status</$button>
>>> \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 [email protected].
To post to this group, send email to [email protected].
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.

Reply via email to