Skip to content

Conversation

@pjkaufman
Copy link
Collaborator

Fixes #1267

There was a bug reported that indicated that there was an issue where if a user had the settings for adding the date modified x seconds after a file change was made and right after editing a file they ran the Linter, even if no change was made, the modified date would not get added once the Linter ran. The reason was that the Linter was saving a cached version of the text to know what was changed to make sure it only added the date modified as needed. However it did not skip updating the text if the Linter did not update the file. Thus when it looked for a change between the current text in the Obsidian cache and what the Linter said the original file contents was when the user/Linter last made an update it would say that there was no change.

Changes Made:

  • Added the dummy pdf for testing purposes
  • Only added the updated file contents to the Linter cache for files that should have a date modified potentially added after x seconds when the Linter made a change to the text in question

@pjkaufman pjkaufman self-assigned this May 11, 2025
@pjkaufman pjkaufman added the bug Something isn't working label May 11, 2025
@pjkaufman pjkaufman merged commit 29f109a into platers:master May 11, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: Date Modified not updated if Lint done immediately after changes

1 participant