obsidian-list-modified
obsidian-list-modified copied to clipboard
[BUG] First record of the day is handled incorrectly (Create, Delete)
First Steps
- [x] I've ensured that the issue does not already exist by using the search issues feature
- [x] I've read the documentation (see the README)
- [x] I'm on the latest release of obsidian-list-modified
- [x] I've tried disabling any other plugins that may cause conflicts (recommended)
Describe the bug
If creating a new note triggers "new day" flow in OLM, that note gets marked as Modified instead of Created.
UPD: Deleting is affected too. Looks like it writes deleted record into "yesterdays" data, writes that data to todays note and then clears "yesterdays" data, so any consequent change wipes it from daily note.
Rename fails with error in console if renamed note was not previously recorded today. Thinking about it, it doesn't really affect anything, though a check to avoid the error wouldn't hurt. But that's unrelated to this issue.
Expected behaviour
New note should be marked as Created.
Reproducing
My setup
- What device are you on? - Windows 11, Obsidian v1.5.12
- **What sync service are you using? (if relevant to bug) - None
Steps to reproduce bug
- Enable "Separate Created Files" (and Verbose Mode, it was super useful for debugging this)
- Wait for a new day to start (or disable OLM, change lastTrackedDate in data.json to previous day, enable OLM)
- Create new note
- Watch it get put under Modified heading instead of Created