[tw5] Re: How to display yesterday's date? (And n days ago etc.)

2023-03-30 Thread Gabriel Montagné Láscaris-Comneno
I've been using and loving your habit tracker for a while.  Thanks so much 
for sharing!

On Saturday, February 22, 2020 at 7:01:15 PM UTC+1 si wrote:

> Thanks a lot for your help everyone.
>
> So I've managed to get something that kind of works using the the Formulas 
> and MathyThing plugins (thank you to whoever made them!). I've attached it 
> here.
>
> Currently you just tag a tiddler "habit" and it appears on the list. 
> Clicking a button adds an entry in a data tiddler as "yes" or "no".
>
> The code is a total horror show (tons of copy + paste...), but I'm 
> interested interested in constructive criticism on the basic idea. 
> Specifically how the data is stored. I feel that as long as I get that 
> right I can fiddle with everything else in the future when I'm better at 
> using TW.
>
> I would also like to calculate the "percentage success rate" for a given 
> week, so if anyone has any advice on how I could do that it would be super 
> appreciated? In other words I want to look at only the data entries for the 
> last seven days and calculate what percentage of them were set to "yes".
>
> On Saturday, February 22, 2020 at 12:50:27 AM UTC, Diego Mesa wrote:
>>
>> Joshua Fontany has also updated that plugin on his own:
>>
>> https://joshuafontany.github.io/TiddlyWikiFormula/
>>
>>
>>
>> On Friday, February 21, 2020 at 6:46:47 PM UTC-6, Mark S. wrote:
>>>
>>> Looks like you might be able to get it from the github site:
>>>
>>> https://github.com/EvanBalster/TiddlyWikiFormula
>>>
>>> On Friday, February 21, 2020 at 4:07:48 PM UTC-8, si wrote:

 Thanks Tony. It seems that Evan's website is dead (
 http://evanbalster.com/tiddlywiki/formulas.html). Do you have a copy 
 of his Formula Plugin demo that you could share?

 On Thursday, February 20, 2020 at 11:46:23 PM UTC, TonyM wrote:
>
> SI,
>
> I am having a look a loop, and it may be of some value. I have a 
> sophisticated bespoke todo organizer in tiddlywiki and have dates 
> covered, 
> so if you have any more specific questions I can answer. 
>
> To meet your original request you need to use the days operator with 
> [-7] against the modified or created dates. 
>
> I made a great discovery that almost no one seems to understand but on 
> a given task/habit tiddler I only ever apply a date stamp ie; now, when I 
> do something and it is the list widget that determines if they should 
> appear in a list either for the past or the future. So if the monday 
> tiddler was last date stamped more than -7 days it appears for this 
> monday.
>
> The picaday plugin is important, and sophisticated date calculations 
> are available in Evans Formulae plugin however I can do all I want 
> without 
> it.
>
> Regards
> Tony
>
> On Friday, February 21, 2020 at 7:18:27 AM UTC+11, si wrote:
>>
>> Hi all,
>>
>> I'm aspiring to build a habit tracker with TiddlyWiki with similar 
>> functionality to the Android app Loop 
>> 
>> .
>>
>> The first thing I wanted to do was list every date for the last week, 
>> which I thought would be easy, but immediately hit a wall.
>>
>> Can anyone point me in the right direction?
>>
>> Thanks for your help.
>>
>

-- 
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/19f7dc61-ecbc-4945-bd6c-291ff42a28fcn%40googlegroups.com.


[tw5] Re: How to display yesterday's date? (And n days ago etc.)

2020-02-22 Thread TonyM
Si

I have a code trick for past dates. Use the days operator twice in the one 
filter to get a tiddler with yesterdays or another past date and then extract 
the date from that tiddlers date field. It only works if a tiddler with that 
date field exists but that is often what we want any way.

Regards
Tony 

-- 
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/c944d371-aeba-416a-b5eb-4b2fd43dd189%40googlegroups.com.


[tw5] Re: How to display yesterday's date? (And n days ago etc.)

2020-02-21 Thread Diego Mesa
Joshua Fontany has also updated that plugin on his own:

https://joshuafontany.github.io/TiddlyWikiFormula/



On Friday, February 21, 2020 at 6:46:47 PM UTC-6, Mark S. wrote:
>
> Looks like you might be able to get it from the github site:
>
> https://github.com/EvanBalster/TiddlyWikiFormula
>
> On Friday, February 21, 2020 at 4:07:48 PM UTC-8, si wrote:
>>
>> Thanks Tony. It seems that Evan's website is dead (
>> http://evanbalster.com/tiddlywiki/formulas.html). Do you have a copy of 
>> his Formula Plugin demo that you could share?
>>
>> On Thursday, February 20, 2020 at 11:46:23 PM UTC, TonyM wrote:
>>>
>>> SI,
>>>
>>> I am having a look a loop, and it may be of some value. I have a 
>>> sophisticated bespoke todo organizer in tiddlywiki and have dates covered, 
>>> so if you have any more specific questions I can answer. 
>>>
>>> To meet your original request you need to use the days operator with 
>>> [-7] against the modified or created dates. 
>>>
>>> I made a great discovery that almost no one seems to understand but on a 
>>> given task/habit tiddler I only ever apply a date stamp ie; now, when I do 
>>> something and it is the list widget that determines if they should appear 
>>> in a list either for the past or the future. So if the monday tiddler was 
>>> last date stamped more than -7 days it appears for this monday.
>>>
>>> The picaday plugin is important, and sophisticated date calculations are 
>>> available in Evans Formulae plugin however I can do all I want without it.
>>>
>>> Regards
>>> Tony
>>>
>>> On Friday, February 21, 2020 at 7:18:27 AM UTC+11, si wrote:

 Hi all,

 I'm aspiring to build a habit tracker with TiddlyWiki with similar 
 functionality to the Android app Loop 
 
 .

 The first thing I wanted to do was list every date for the last week, 
 which I thought would be easy, but immediately hit a wall.

 Can anyone point me in the right direction?

 Thanks for your help.

>>>

-- 
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/e1b63d9b-92b9-4775-be6a-a66f30b87917%40googlegroups.com.


[tw5] Re: How to display yesterday's date? (And n days ago etc.)

2020-02-21 Thread 'Mark S.' via TiddlyWiki
Looks like you might be able to get it from the github site:

https://github.com/EvanBalster/TiddlyWikiFormula

On Friday, February 21, 2020 at 4:07:48 PM UTC-8, si wrote:
>
> Thanks Tony. It seems that Evan's website is dead (
> http://evanbalster.com/tiddlywiki/formulas.html). Do you have a copy of 
> his Formula Plugin demo that you could share?
>
> On Thursday, February 20, 2020 at 11:46:23 PM UTC, TonyM wrote:
>>
>> SI,
>>
>> I am having a look a loop, and it may be of some value. I have a 
>> sophisticated bespoke todo organizer in tiddlywiki and have dates covered, 
>> so if you have any more specific questions I can answer. 
>>
>> To meet your original request you need to use the days operator with [-7] 
>> against the modified or created dates. 
>>
>> I made a great discovery that almost no one seems to understand but on a 
>> given task/habit tiddler I only ever apply a date stamp ie; now, when I do 
>> something and it is the list widget that determines if they should appear 
>> in a list either for the past or the future. So if the monday tiddler was 
>> last date stamped more than -7 days it appears for this monday.
>>
>> The picaday plugin is important, and sophisticated date calculations are 
>> available in Evans Formulae plugin however I can do all I want without it.
>>
>> Regards
>> Tony
>>
>> On Friday, February 21, 2020 at 7:18:27 AM UTC+11, si wrote:
>>>
>>> Hi all,
>>>
>>> I'm aspiring to build a habit tracker with TiddlyWiki with similar 
>>> functionality to the Android app Loop 
>>> 
>>> .
>>>
>>> The first thing I wanted to do was list every date for the last week, 
>>> which I thought would be easy, but immediately hit a wall.
>>>
>>> Can anyone point me in the right direction?
>>>
>>> Thanks for your help.
>>>
>>

-- 
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/6c6e04ba-ad31-492a-91fa-5bf62d2bb5a3%40googlegroups.com.


[tw5] Re: How to display yesterday's date? (And n days ago etc.)

2020-02-21 Thread si
Thanks Tony. It seems that Evan's website is dead 
(http://evanbalster.com/tiddlywiki/formulas.html). Do you have a copy of 
his Formula Plugin demo that you could share?

On Thursday, February 20, 2020 at 11:46:23 PM UTC, TonyM wrote:
>
> SI,
>
> I am having a look a loop, and it may be of some value. I have a 
> sophisticated bespoke todo organizer in tiddlywiki and have dates covered, 
> so if you have any more specific questions I can answer. 
>
> To meet your original request you need to use the days operator with [-7] 
> against the modified or created dates. 
>
> I made a great discovery that almost no one seems to understand but on a 
> given task/habit tiddler I only ever apply a date stamp ie; now, when I do 
> something and it is the list widget that determines if they should appear 
> in a list either for the past or the future. So if the monday tiddler was 
> last date stamped more than -7 days it appears for this monday.
>
> The picaday plugin is important, and sophisticated date calculations are 
> available in Evans Formulae plugin however I can do all I want without it.
>
> Regards
> Tony
>
> On Friday, February 21, 2020 at 7:18:27 AM UTC+11, si wrote:
>>
>> Hi all,
>>
>> I'm aspiring to build a habit tracker with TiddlyWiki with similar 
>> functionality to the Android app Loop 
>> 
>> .
>>
>> The first thing I wanted to do was list every date for the last week, 
>> which I thought would be easy, but immediately hit a wall.
>>
>> Can anyone point me in the right direction?
>>
>> Thanks for your help.
>>
>

-- 
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/9adaeadf-ccb5-415c-9741-13638bd5da72%40googlegroups.com.


[tw5] Re: How to display yesterday's date? (And n days ago etc.)

2020-02-20 Thread TonyM
SI,

I am having a look a loop, and it may be of some value. I have a 
sophisticated bespoke todo organizer in tiddlywiki and have dates covered, 
so if you have any more specific questions I can answer. 

To meet your original request you need to use the days operator with [-7] 
against the modified or created dates. 

I made a great discovery that almost no one seems to understand but on a 
given task/habit tiddler I only ever apply a date stamp ie; now, when I do 
something and it is the list widget that determines if they should appear 
in a list either for the past or the future. So if the monday tiddler was 
last date stamped more than -7 days it appears for this monday.

The picaday plugin is important, and sophisticated date calculations are 
available in Evans Formulae plugin however I can do all I want without it.

Regards
Tony

On Friday, February 21, 2020 at 7:18:27 AM UTC+11, si wrote:
>
> Hi all,
>
> I'm aspiring to build a habit tracker with TiddlyWiki with similar 
> functionality to the Android app Loop 
> 
> .
>
> The first thing I wanted to do was list every date for the last week, 
> which I thought would be easy, but immediately hit a wall.
>
> Can anyone point me in the right direction?
>
> Thanks for your help.
>

-- 
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/5bf0f857-f6b3-41c4-90e5-8af17e851e0c%40googlegroups.com.


[tw5] Re: How to display yesterday's date? (And n days ago etc.)

2020-02-20 Thread Mat
Mark S. wrote:
>
> "from Mat or someone very much like him"
>

Ain't *nobody* like Mat!

<:-)

-- 
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/b7ed27e7-be5d-418d-be96-19646db8c1ba%40googlegroups.com.


[tw5] Re: How to display yesterday's date? (And n days ago etc.)

2020-02-20 Thread 'Mark S.' via TiddlyWiki
The native TiddlyWiki toolkit is rather sparse when it comes to dates. But 
you could use Jed Carty's date macros:

https://ooktech.com/jed/ExampleWikis/DateMacros/

which I found using the TiddlyWiki Toolmap 


Those are javascript-based macros. I have some pure tiddly text macros I 
wrote with help from Mat or someone very much like him that I could repost 
if you're a "purist".


On Thursday, February 20, 2020 at 12:18:27 PM UTC-8, si wrote:
>
> Hi all,
>
> I'm aspiring to build a habit tracker with TiddlyWiki with similar 
> functionality to the Android app Loop 
> 
> .
>
> The first thing I wanted to do was list every date for the last week, 
> which I thought would be easy, but immediately hit a wall.
>
> Can anyone point me in the right direction?
>
> Thanks for your help.
>

-- 
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/bc6151ac-0b94-4472-8dda-8e8b99e10f1c%40googlegroups.com.