Repository navigation
Priority markers: '!!!!' is not a NotePlan priority; TaskAutomations p4 writes '>>' - #801
Merged
Merged
Conversation
…p4 writes '>>' Follow-up to d0ceef3 / 397c06a, carrying over the parts of #797 they left out: - sorting.js: RE_LEADING_EXCLAMATIONS matches 1-3 '!' only, so '!!!! x' is no priority (was 4) and '!!!!! x' is no priority (was 5). - paragraph.js: changePriority() treats a marker NotePlan doesn't recognise as "no priority" and logs a warning, instead of writing it. - HTMLView.js: priorityClassFromTaskText() uses getTaskPriority(), so it follows the same rule (it treated a bare '!!' with nothing after it as a priority). - TaskAutomations: removed the "!!!! Set priority to p4" option; __p4__ maps to '>>'. Version 3.2.2. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Collaborator
|
Aha, thanks. |
jgclark
added a commit
that referenced
this pull request
Dec 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
@jgclark: your
d0ceef321and397c06a47covered almost everything in #797, so I've closed #797. I ran its test cases againstmainand these are the bits that weren't carried over.What this changes
!!!!is no longer a priority. NotePlan only recognises!,!!,!!!and>>. Onmain,!!!! taskwas read as level 4 (the same as>>) for sorting, the Priority section and Wins, and!!!!! taskwas read as level 5.RE_LEADING_EXCLAMATIONSnow matches 1–3!only.changePriority()won't write a marker NotePlan doesn't recognise. Given anything other than!,!!,!!!,>>or'', it removes the priority and logs a warning.!!!!. Its overdue review had a "!!!! Set priority to p4" option. That produced a line NotePlan showed with no priority but the Dashboard ranked at 4. The option is gone, and__p4__now maps to>>. Bumped to 3.2.2.helpers/HTMLView.jspriorityClassFromTaskText()now usesgetTaskPriority()instead of its own regex, so it follows the same rule. It used to treat a bare!!with nothing after it as a priority.Your tests that expected
!!!! Fourto be priority 4 now expect 0, plus a!!!!! Fivecase and a test for thechangePriority('!!!!')guard.Plugins to rebuild and re-release
The helper changes are bundled into each plugin, so these need a rebuild:
helpers/sorting.js(sortListBy/getNumericPriority) orhelpers/HTMLView.jspicks up the new!!!!rule on its next build. It only affects lines starting!!!!.Checks
helpersparagraph/sorting/HTMLView,jgclark.Dashboardanddwertheimer.TaskAutomationsall pass (800 tests).🤖 Generated with Claude Code