franciskafieh / obsidian-list-modified

🪨 The advanced and adaptive changelog for Obsidian. Links all modified files meeting certain criteria to a timed (daily, weekly, monthly) note.
MIT License
85 stars 7 forks source link

Add "Time format" setting and "[[mtime]]" placeholder #86

Closed DraggonFantasy closed 9 months ago

DraggonFantasy commented 9 months ago

Hi :slightly_smiling_face: Thank you for the great plugin!
I found confusing that regardless of granularity selected (e.g. even for daily notes), the [[ctime]] format is always YYYY-MM-DD + it only shows note's created time (which may be created many months ago, but modified today), so I've added a setting for specifying the time format and also added [[mtime]] placeholder similar to [[ctime]], but for note's modified time. Both placeholders use the same format defined in the settings. Default value for the format is YYYY-MM-DD

franciskafieh commented 9 months ago

Looks good to me. Time format setting is a good idea. I think [[mtime]] may be inaccurate sometimes due to sync, file moves, etc. But it's better than nothing for now. To implement a complete solution, we would have to store a timestamp for every modified file, which is added time and effort for the program. Will merge now and create a new release in a few hours.

Thank you!

franciskafieh commented 9 months ago

Completely forgot to release this, my bad! Tested locally and seems to work. Thank you.

https://github.com/franciskafieh/obsidian-list-modified/releases/tag/2.2