github platers/obsidian-linter 1.27.0

latest release: 1.27.1
one month ago

Linter v1.27.0

The latest release is out and ready for users to start working with it. Some changes that have been made that are notable is that now Live Preview updates should work the same as they do for source mode. This should mean fewer bugs for users who use Live Preview. Also, the ability to run YAML Timestamp after a certain amount of time has passed since the last edit to a note is also available. Plus the Linter should be smaller and load faster due to a couple changes in how the Linter works.

Be aware that the Linter will now download the default list of auto-corrections when Auto-Correct Common Misspellings is enabled and it is not present at startup or if you enable the rule and it is not currently present. This allows for a faster load time and a smaller bundle size especially if you do not use this rule.

The Linter's settings page has been revamped a little and should load much faster now. It should feel snappier. You will no longer see settings for rules that are not enabled except for the option to enable a rule. This should cut down on some confusion around why rules have not run in the past and it should clean up the settings page for users making the settings list a bit cleaner. Also, do note that incompatible settings will not be allowed to be turned on together and trying to enable both settings at the same time will result in the other setting being turned off. This should only apply to Paragraph Blank Lines and Line Break Between Lines with Content and Header Increment's Start at Header Increment at Heading Level 2 and File Name Heading. If one of these incompatible rules is found on startup, one of them is turned off and a notice will let you know which has been turned off. You can change which one is turned off by going to the settings and turning on the rule/setting that you want to have enabled.

Thank you to everyone that has reported issues as well as contributed fixes and/or new rules!

Features

  • Made some styling changes to make some of the Linter settings to be cleaner and more akin to what is present elsewhere in Obsidian
  • Added an option to Auto-Correct Common Misspellings to allow for ignoring words with a capital letter present at anywhere except the first letter
  • Added ability to refresh custom auto-correct file contents that the Linter is aware of from the settings page
  • Added the ability to run YAML Timestamp x seconds after a change is made in an editor
  • Added the ability to ignore the date modified in the file system in favor of just updating that value when a change is made by the Linter or the user in an editor
  • Added rule for adding blank lines around horizontal rules
  • Added options to Ordered List Style to allow for the list item style to be kept as is and the ability to start the number ordering with the number that starts the list (this is helpful when you have an ordered list with other content in between it)
  • Moved the default list of common misspellings to a file that gets downloaded once when needed instead of bundling it into the main.js
  • Hide settings that are reliant on other settings being enabled including extra settings for rules that are disabled
  • Added logic to help prevent conflicting rules from being enabled at the same time since they result in unexpected or undesired behavior

Bugs

  • Fixed the Linter running Auto-Correct Common Misspellings on custom auto-correct files which erased these custom file config values
  • Fixed an issue with pasting a URL not working consistently
  • Fixed Live Preview not working in some scenarios when a file was updated (hopefully this will put these issues to rest for good)

What's Changed

New Contributors

Full Changelog: 1.26.0...1.27.0

Don't miss a new obsidian-linter release

NewReleases is sending notifications on new releases.