I came across the Dataview plugin for Obsidian as it was mentioned in the Discord chat group, and then looked at the forum discussion about the same.
This is a plugin that provides a query language which allows me to do a few things I had on my wishlist. For instance using the Day log note to also show notes created on that day. Dataviews works by using the ability of Obsidian to insert code into a note.
I added the following at the end of my Day log note for today:
``` dataview
TABLE file.ctime as Created, file.size, file.path as Path
FROM ""
WHERE date(2021-03-15T23:59:59) - file.ctime <= dur(1 days)
SORT file.ctime desc
```
Which results in a list of files created on March 15th.
I added this to the Alfred snippet I use as a template for my Day logs, so that it will have the right date. I use fixed dates because then it will always be a record of notes created that day, also when I look back to a day log in a month or week etc.
[UPDATE 2021/03/20] In a conversation on the Dutch Obsidian Discord channel, Frank notes that my query above als retrieves any notes created after the date in question, because then the evaluated value becomes negative, which is also smaller than 1 days. I hadn't noticed as I hadn't looked back yet to an earlier day note. So it needs, as Maarten suggested, an additional statement to exclude those negative values, along the lines of and date(2021-03-15T23:59:59) - file.ctime >= dur(0 days)
Interessante, deze ga ik ook uitproberen. Hoe meer flexibiliteit / hoe beter. Waarom ctime, en niet mtime?
Voor recent gewijzigde notes (mtime) heb ik al een permanente plek in de rechter kolom. Die gebruik ik gedurende de dag voor navigatie (en ik refereer er ook wel aan in mijn daglogpagina, bijv ’10-11 gewerkt aan [[ontwerp zusenzo]] voor [[klant]]). Het lijstje nieuw gemaakte notes (ctime) is vooral een soort indicator voor de groei van mijn notes, was het een doe-dag (veel in het daglog), denk-dag (meerdere nieuwe notes), of geen van beiden (kort daglog en weinig/geen nieuwe notes). En stelt me in staat om de context van wanneer ik een note ben begonnen terug te vinden.
Voor nu ga ik deze gebruiken voor dagelijkse notes:
TABLE file.ctime as Created
FROM “”
where 1=1
and file.ctime.day = date({{tp_title}}).day
SORT file.ctime desc
Deze voelt voor mij iets eenvoudiger. Soms maak ik notes (ruim) vooraf aan. Later nooit eigenlijk, maar dat kan natuurlijk wel. De titel is dan altijd goed. Ik lees dat de maker iets als thisfile.filename ook toegankelijk wil maken, dat zou dan ook een optie zijn. Erg nieuwsgierig hoe dit verder uitgewerkt gaat worden, met zo’n toegankelijk querytaal is veel mogelijk.
Zucht, dat moet natuurlijk dit zijn;
TABLE file.ctime as Created
FROM “”
where 1=1
and file.ctime.day = date({{tp_title}}).day
and file.ctime.month = date({{tp_title}}).month
and file.ctime.year = date({{tp_title}}).year
SORT file.ctime desc