That is some beautiful code !

On Friday, February 19, 2021 at 4:50:41 AM UTC-4 rutau...@gmail.com wrote:

> Hi,
>
> I achieve excatly this with the use of Eucaly's matchfilter 
> http://eucaly-tw5.tiddlyspot.com/#%24%3A%2Fplugins%2Feucaly%2Fmatchfilter
>
> Create a macro tiddler with the following code:
>
> \define regex-todo() \s*TODO\:'*\s*((?:.*)*)(?gmi)
>
> \define todo(tag) 
> <$list filter="[$tag$!prefix[$:/core]regexp:text[TODO\:]!has[draft.of]]">
> <div class="note info">
> <$link to={{!!title}}><$list 
> filter="[{!!title}]">{{!!title}}</$list></$link>
> <ul><$list 
> filter='[{!!title}match:text<regex-todo>]'><li>{{!!title}}</li></$list></ul>
> </div>
> </$list>
> \end
>
> Use it with <<todo>> to display all lines starting  with TODO: as a 
> todolist. You can use it with <<todo(mytag)>> to display only Todo that 
> appears in tiddler tagged with mytag
>
>
>
>
>
> Le vendredi 19 février 2021 à 05:04:15 UTC+1, cj.v...@gmail.com a écrit :
>
>> G'day Ray,
>>
>> Just for the fun of it:  TODO Idea for Ray 
>> <https://tiddlywiki-programming.neocities.org/CJ_TiddlyWikiProgramming.html#TODO%20Idea%20for%20Ray>
>>
>> Instead of entering, as per your example:  *TODO* remember to buy dogfood
>>
>> I've set things up as follows:
>>
>> Type: {{remember to buy dogfood||t2DO}}
>>
>> Upon save of your tiddler, you'll have a button there, when pressed it 
>> will create the tiddler "remember to buy dogfood" and tag it "TODO"
>>
>> The "t2DO" transclusion tiddler does some neat stuff.  Not a 
>> fully-automatic way to add an item to the TODO list, but it saves a few 
>> mouse clicks.
>>
>> Cheers !
>>
>> On Thursday, February 18, 2021 at 8:31:34 AM UTC-4 rayv...@gmail.com 
>> wrote:
>>
>>> Hi
>>>
>>> since a week i am rediscovering TW5, really fun but quite for me a steep 
>>> learning curve.
>>> But I am trying.
>>> I have a daily journal entry where i log everything i do in for work.
>>> What i would love is the following:
>>> When i put something like say *TODO* on a line, that that line will 
>>> automagically
>>> be added to my todo list.
>>>
>>> So i have this in my journal (or normal tiddler):
>>>
>>> ----------------------------------
>>> Walked on the beach
>>> Let the dog out
>>> *TODO* remember to buy dogfood
>>> Wrote documentation for project XYZ
>>> Called DaveSmith
>>> *TODO* buy birthday present for Dave
>>> ---------------------------------
>>>
>>> That (only) the 2 *TODO* lines would be added to my TODO Tiddler.
>>> That would be really nice.
>>> Is this somehow possible?
>>>
>>> Thanks in advance for your help.
>>>
>>> Pointers to tutorials on programming TW5 are welcome as well.
>>> I progress very slowly each day but hey, i am progressing ;-)
>>>
>>> Ray
>>>
>>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/518dc8d6-1005-415a-be37-72c5c5993a95n%40googlegroups.com.

Reply via email to