What's Changed
🌟 Most Notable
Dependencies have been updated. Please restart Obsidian after updating the plugin. Thank you.
🌟 Major safety and usability improvements for regular expressions (regex) searches
/
characters no longer need to be escaped (as\/
) in regular expressions.- This fixes #2136 - that file paths in regular expressions were wrongly truncated.
explain
now explains regular expressions.- It's easier to correct syntax errors in regexes, as error info is now displayed, such as:
SyntaxError: Invalid regular expression: /hello(/: Unterminated group
- The
u
unicode flag is now supported. - Any invalid flags are reported now instead of ignored.
- These are often a sign of a missing
/
at the end of the regex.
- These are often a sign of a missing
- Any problems with regex result in the following 'help' being displayed inside Tasks code blocks:
Main changes
Here are the most notable user-visible changes.
🌟 Features
- feat: query error messages now show problem line by @claremacrae in #2128
- feat: explain now shows regex interpretation by @claremacrae in #2132
- feat: Show help message for invalid regular expressions by @claremacrae in #2139
💪 Fixes
- fix: Display reason for any failure to read regex by @claremacrae in #2134
- fix: Support 'u' flag (Unicode) & detect duplicate flags by @claremacrae in #2135
- fix: prevent truncation of regex /a/b/c/d/ searching only /a/ by @claremacrae in #2136
- fix: Report invalid regex flags - likely a missing slash by @claremacrae in #2137
- fix: Improve readability of exception reports. by @claremacrae in #2140
📖 Documentation
- docs: Simulate a horizontal rule before each level-2 heading by @claremacrae in 6903294
- docs: Remove HRs before level-2 headings by @claremacrae in 60d5c2d
- docs: Fix incorrect 'not scheduled' instruction - fixes #2116 by @claremacrae in 40e8a02
- docs: Standardise punctuation in custom filter and group examples by @claremacrae in 81cc8ef
- docs: Remove links to two GitHub issues that have been fixed by @claremacrae in 962c18a
- docs: Standardise text for links to GitHub issues. by @claremacrae in 97c5dc2
- docs: Remove now-fixed limitations from Regular Expressions docs by @claremacrae in f210d0d
- docs: Add example of global query in Explaining Queries.md by @claremacrae in 28a3c68
- docs: Record that 'explain' now shows regexes. by @claremacrae in 6b9f02a
🛠️ Dependencies
- chore(deps-dev): bump prettier from 2.7.1 to 2.8.8 by @dependabot in #2090
- chore(deps): bump semver from 6.3.0 to 6.3.1 by @dependabot in #2117
- chore(deps): bump tough-cookie from 4.1.2 to 4.1.3 by @dependabot in #2115
- chore: Fix error message from newer svelte dependencies. by @claremacrae in #2119
- chore(deps-dev): bump svelte-check from 2.10.3 to 3.4.6 by @dependabot in #2118
🛠️ Behind the scenes
- test: Simplify code-review of filter, sort and group additions by @claremacrae in #2126
Full Changelog (including changes too small to note above, and that do not affect the behaviour of the plugin itself):