Replies: 2 comments 5 replies
-
You can do most of this through DVJS. Writing custom sorts through DQL would be rather painful IMO. |
Beta Was this translation helpful? Give feedback.
4 replies
-
I think it should not be too hard to add |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I explored a little bit the idea of using Dataview to build timelines and it already works pretty well. For instance, assuming these files with that metadata :
It is possible to use a query like this :
...to get all event in chronological order. The best thing about proceeding this way is that even if you only have a partial date (ex. only the year, as it can be possible I guess) it will still sort chronological (kind of).
Would it be possible to keep that great ability to sort complete and partial date (ex. YYYY-MM or YYYY) while having them not necessarily at the beginning ? For instance some event string could be like so :
- event:: Information (2021-04) with extra details
or like so- event:: Blah blah in 2022.
and be combined with others with the format displayed earlier and the goal would be to parse the date from each of them to then flatten and sort chronologically.I tried to workaround this using the current regexreplace but it is not so easy as I need to make it replace everything but the date and by doing so I am unable to make it differentiate between complete or partial date...
My questions would then be:
date()
function but it would not work unless the string only contained a date.Any thoughts ?
Beta Was this translation helpful? Give feedback.
All reactions