obsidian-tasks: Add a 'priority is not' filter option

⚠️ Please check that this feature request hasn’t been suggested before.

  • I searched previous Ideas in Discussions didn’t find any similar feature requests.
  • I searched previous Issues didn’t find any similar feature requests.

🔖 Feature description

NOT Filter

  • Add a new filter to the priority property.

I’d like to have all tasks, except those that don’t have a priority setup.

Currently it isn’t possible in a single filter.

priority above none returns only medium and high priority tasks.

✔️ Solution

Change

priority is (above|below)? (low|none|medium|high)

to

priority is (above|below|not)? (low|none|medium|high)

❓ Alternatives

I’m using three queries one for each priority that I want, but it’s lame.

I suggested a not filter 'cause I think it would be more easy to combine with the current above and below options, but other option would be having a has filter, like:

has priority

📝 Additional Context

Questions

I was wondering why none has more priority than low… Shouldn’t be under low?

If so, the NOT Filter suggested here wouldn’t be necessary, we could easily use priority is above none as well.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 18 (5 by maintainers)

Commits related to this issue

Most upvoted comments

@FabianoLothor and @claremacrae, I have opened a discussion thread here now.

And hey @FabianoLothor, thank you for suggesting it!

Holy, I didn’t know I could do that. NOT (priority is none) This solves my issue 100% guys, I didn’t notice this in the docs. So I have gone ahead and implemented this. It didn’t take long.

As there is a workaround, I won’t do a release for this one feature - it will be included whenever the next release is done.

Awesome @claremacrae, it’s a nice improvement.

Yes, this has turned into a discussion of possible better names for priorities. I can add a new discussion thread for this and copy some of the ideas from here.

Please, ping me there.

Holy, I didn’t know I could do that.

NOT (priority is none) This solves my issue 100% guys, I didn’t notice this in the docs.

I take the point about it not being obvious in the docs. (one has to know about the NOT option, which is documented elsewhere).

So I have gone ahead and implemented this. It didn’t take long.

As there is a workaround, I won’t do a release for this one feature - it will be included whenever the next release is done.

Yes, this has turned into a discussion of possible better names for priorities. I can add a new discussion thread for this and copy some of the ideas from here.

I think that has all got a bit off topic from ‘how to negate a priority value’-sort-of-thing… I should have said this earlier, but I feel like it’s more of a conversation for Discussion than Issue anyway. (Issues are for actionable things…)

Correct (sorry)

On Dec 1, 2022 at 12:48:21 PM, Clare Macrae @.***> wrote:

(priority is above) OR (priority is medium) OR (priority is high)

This is probably what you meant:

(priority is low) OR (priority is medium) OR (priority is high)

— Reply to this email directly, view it on GitHub https://github.com/obsidian-tasks-group/obsidian-tasks/issues/1364#issuecomment-1334198473, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAABW443GATUCPIH5YDZP5TWLDXHLANCNFSM6AAAAAASRCG22M . You are receiving this because you were mentioned.Message ID: @.***>