This solved my problem! Brilliant! I am very grateful.
Could I use similar code to make a button that will create a new tiddler
with the title format '<thisdate> todolist'? I've tried with no success...
On Friday, 26 April 2019 01:18:19 UTC+1, Mark S. wrote:
>
> The tools to do what you want don't exist in the current vsn of TW, but do
> in the next prerelease (5.1.20pre). So if you're willing to be an early
> adopter then you can have something like this:
>
> <$vars mystring={{!!title}} splitter="-">
> <$list filter="[<mystring>split[-]join[]addsuffix[120000000]]"
> variable=thisdate>
> <<thisdate>>
> <$list filter="[sameday:created<thisdate>]">
>
> </$list>
> </$list>
> </$vars>
>
> This depends on the title being exactly as you described (yyyy-mm-dd).
>
> You may have to play with the 120000000 to match your timezone. The plain
> "yyyymmdd" has never worked as advertised in the docs for "sameday" for me.
> It's always needed something after the "dd" to work right.
>
> Good luck!
> -- Mark
>
>
>
> On Thursday, April 25, 2019 at 4:05:46 PM UTC-7, jay wrote:
>>
>> Hey, thanks for replying! I must say this app has kind of changed my
>> life, and I'm really enjoying learning from this community.
>>
>> The title of my lifelog tiddlers begins with the date and time they're
>> created, and the 'created' field mirrors that. They're also all tagged
>> 'lifelog'.
>>
>> For each 'day' in the wiki I have a tiddler generated by the
>> simplecalendar plugin. The title of that tiddler matches the date on the
>> lifelogs, but it's created field wont. This is the code I currently have in
>> that 'day' tiddler template
>>
>> <$list filter="[sameday:created[*20190424*]]+[tag[lifelog]]
>> +[sort[created]] ">
>> <$link>
>> <$view field="created" format="date" template="DD mmm YY at
>> hh:mm"/></$link>
>> <$transclude field="text" mode="block"/>
>>
>> </$list>
>>
>> This shows me exactly what I need, and I can easily replicate this with
>> other tags to create a nice synopsis of what I did on that day. But how
>> can I get the date in bold to match up with the date in the title of the
>> tiddler (the title is formatted 2019-04-24)? I'd rather not have to type
>> this in for every day individually.
>>
>> Thanks again Mark!
>>
>> On Thursday, 25 April 2019 19:23:21 UTC+1, Mark S. wrote:
>>>
>>> Do your lifelog posts include links to the day they were made, possibly
>>> as a timestamp? That would be the easiest way to set it up. Then you could
>>> just use the backlinks operator to find all the log entries that referred
>>> to a certain day.
>>>
>>> Method 2
>>>
>>> There is no easy way to convert a title back into a date. But if the
>>> tiddler really was made on the same day as it's title, then it's "created"
>>> field will contain the timestamp of when it was created. And if the blogs
>>> were made on the same day, then perhaps your filter could contain a
>>> sameday:created{!!created}} operator .
>>>
>>> Actually, yeah, method 2 should work as long as you don't create
>>> post-date tiddlers or life-log tiddlers.
>>>
>>> Good luck
>>> -- Mark
>>>
>>> On Thursday, April 25, 2019 at 9:42:28 AM UTC-7, jay wrote:
>>>>
>>>> So I've been keeping a tiddlywiki journal for a while, and I divide my
>>>> posts into various categories: short lifelogs, notes, diary entries, etc.
>>>>
>>>> I'd like to have a calendar with dates that I can click on to see all
>>>> tiddlers created on that day.
>>>>
>>>> I'm figuring my best bet is to use this
>>>> http://simplecalendar.tiddlyspot.com/ plugin. It creates a new tiddler
>>>> for each day, perfect. Now, I want to set up a template that I can use for
>>>> each 'day' tiddler. This template will include a list of, say, all my
>>>> lifelog posts from that day. How can I tell the list filter that I want to
>>>> show posts from the correct day, IE the one in the title of the tiddler
>>>> generated by this plugin?
>>>>
>>>> Does this make sense? My only experience of coding is using tiddlywiki
>>>> so go easy on me.
>>>>
>>>
--
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/71951acd-b0b4-4850-8dcf-0b468f44114e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.