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.
I'm not sure if it's bound by emacs orgmode behavior, but current priority increase and decrease is a bit counterintuitive.
increase
cyclenone
(default priority) ->[#C]
(low priority) ->[#B]
(default priority) ->[#A]
(high priority) ->none
.decrease
cyclenone
(default priority) ->[#A]
(high priority) ->[#B]
(default priority) ->[#C]
(low priority) ->none
.Thus, the first press actually decreases priority, and then sets it to the initial state, and only then actually increases priority. The reverse is true for
decrease
- one needs to press 3 times to actually reduce priority.In other words to give
[#A]
priority to a task with no priority, the fastest way to do it is by pressingdecrease
priority.This PR modifies the cycle as follows:
increase
cyclenone
(default priority) ->[#A]
(high priority) ->none
[#C]
(low priority) ->[#B]
(default priority) ->[#A]
(high priority) ->none
decrease
cyclenone
(default priority) ->[#C]
(low priority) ->none
[#A]
(high priority) ->[#B]
(default priority) ->[#C]
(low priority) ->none
While it breaks the cycle starting with
none
, theincrease
anddecrease
reflect the change in priority.