Hi Jed,
Thanks for the ideas!  I'm not strong in Javascript, but I will have a 
look.  I'll keep tinkering and post my results.
TJ

On Thursday, May 7, 2015 at 3:16:07 PM UTC-7, Jed Carty wrote:
>
> TJ,
>
> The relative age part of that would be the difficult thing, I have some 
> javascript macros that find time differences but I haven't had the time to 
> really put them to use yet. They are here 
> <http://inmysocks.tiddlyspot.com/#Date%20Macro%20Demos> if you want to 
> try them out or improve them. There are bugs so be aware of that.
>
> You can do a sort of brute force formatting by using list or reveal 
> widgets. To use a list you would use filters like 
> '[is[current]modified[somedate]limit[1]]', there are some cases where even 
> with the new tag parameter for the reveal widgets the list widget works 
> better.
>
>
> <table>
> <tr><td>Title</td><td>Follow Up Date</td><td>Modified</td></tr>
>
>
> <$list filter="[tag[future-plan]sort[modified]]">
> <$reveal type=match state='!!modified' text=somedate>
> @@.firstclass <tr><td><$link to={{!!title}}><$view field="title"/></$link>
> </td><td><$view field="follow-up-date"/></td><td><$view field="modified" 
> format="date" template="DD mmm YYYY at 0hh:0mm"/></td></tr>@@
> </$reveal>
> <$reveal type=match state='!!modified' text=someotherdate>
> @@.secondclass <tr><td><$link to={{!!title}}><$view 
> field="title"/></$link></td><td><$view 
> field="follow-up-date"/></td><td><$view 
> field="modified" format="date" template="DD mmm YYYY at 0hh:0mm"/>
> </td></tr>@@
> </$reveal>
> </$list>
> </table>
>
> and add more reveal widgets inside the first one to add more dates. This 
> probably isn't useful as it is, but if you modify the day-diff macro or 
> make a week-diff macro than you could do use the number of days or weeks 
> that have gone by with the reveal widget to define different colors. The 
> way they are written now you would probably have to rewrite the entire 
> macro, but hopefully the ones I have are enough of a start. Automating what 
> you want to do is possible with a bit of effort.
>

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/a7b9be1e-eb0a-4aed-9788-71934e5a78d0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to