"New" label for recently modified tiddlers

72 views
Skip to first unread message

Rustem

unread,
Jun 30, 2015, 2:08:17 PM6/30/15
to tiddl...@googlegroups.com
I'd like to list some tiddlers alphabetically, and have tiddlers created, say, in the last 2 weeks, labeled as "New". Has someone solved this already?

Thanks
--R

c pa

unread,
Jun 30, 2015, 5:30:40 PM6/30/15
to tiddl...@googlegroups.com
Rustem,

The Recent tab on your sidebar solves this with something like the following code but this shows just the 50 (or other number) most recently modified:

!!New:
<ul>
    <$list filter="[!is[system]has[modified]!sort[modified]limit[50]]">
        <li>{{!!title}}</li>
    </$list>
</ul>

I haven't yet had to build a macro to do date related math but I will need to fairly soon. If noone else has one I'll post it here when its built

Rustem

unread,
Jun 30, 2015, 5:49:49 PM6/30/15
to tiddl...@googlegroups.com

The Recent tab on your sidebar ... shows just the 50 (or other number) most recently modified:

Thanks, I'm aware of that, not what I want.

I haven't yet had to build a macro to do date related math but I will need to fairly soon. If noone else has one I'll post it here when its built

I would be very interested to see how it can be implemented using only TW5 syntax. I had to write a new filter to solve this, have a look at GitHub if interested. Will submit once I document it.

Jed Carty

unread,
Jun 30, 2015, 6:50:10 PM6/30/15
to tiddl...@googlegroups.com
I have a few javascript date macros here, but I have been ignoring them so there isn't much you can do yet.

c pa

unread,
Jun 30, 2015, 7:05:29 PM6/30/15
to tiddl...@googlegroups.com
>> I had to write a new filter to solve this, have a look at GitHub if interested. Will submit once I document it.
Hey that's cool. A good solution.

>> I would be very interested to see how it can be implemented using only TW5 syntax
Unfortunately core functionality doesn't do math so you'ld have to implement it with some complex table comparisons and lookups. So the cleanest solution is one of the filter you made, a math macro, or date math macro

Leo Staley

unread,
Jun 30, 2015, 10:30:25 PM6/30/15
to tiddl...@googlegroups.com


On Tuesday, June 30, 2015 at 3:50:10 PM UTC-7, Jed Carty wrote:
I have a few javascript date macros here, but I have been ignoring them so there isn't much you can do yet.

If you were to finish your date and calendar plugins/macros, Man, I would be SOOOO happy.  
Reply all
Reply to author
Forward
0 new messages