FR: Add Lint Reminder to File in Obsidian
See original GitHub issueAdd indicator to show if note has been edited after last lint
With autosave, there’s no natural point when to run the linter, making it easy to forget. This leads to eg. inaccurate “last modified” time stamps on files.
Description: Once an edit has been made since the previous time running the linter, display an indicator to act as a visual reminder to run it.
This could be similar to the “unsaved edits” -indicators seen in many programs, like the *
-symbol prepended to the window title in Paint.NET, Notepad++, MS Notepad, etc; or the dot/circle in VSCode that’s shown next to file and folder names.
I suggest adding indicators to:
- The title bar of opened notes
- Next to file/folder names in the file explorer
- (Perhaps also on the status bar, similar to the sync status -icon)
Especially in the file explorer, the indicator could be a unique symbol or letter, perhaps L
for Lint (this would be somewhat descriptive and potentially leave room for other plugins to add their own letters/symbols for similar purposes). Perhaps also change the color of the filenames. This would be similar to the git status indicators and colors (decorations) in VSCode.
- Unless there’s already a fitting CSS variable, define a new one for the changed file/folder color, like
--text-warning
? - If possible, only show the lint reminder when there’s actually something to lint. So if there’s nothing that needs linting (not even a timestamp to update), it won’t show up even if there are changes.
Issue Analytics
- State:
- Created 2 years ago
- Comments:6
Top GitHub Comments
I think you can do this by adding the lint file command to the mobile toolbar. Is that not the case for you?
I think the indicator may be feasible, but I will have to see what all that would entail. But that would have to come after what is currently in the queue. For the Linter Roadmap.