Filter combination (OR) #121
Replies: 11 comments 20 replies
-
It would be nice, indeed. Would also require parentheses to group statements. |
Beta Was this translation helpful? Give feedback.
-
+1 to this! Here's an example from my Eisenhower Matrix built on Tasks, which grabs all tasks that are:
Because the filters are implicitly Here are some ideas: Mirror the obsidian query syntax for inclusive OR queries:
Use common programming syntax:
Logical operators at the start of the filter:
Logical operators on their own lines:
|
Beta Was this translation helpful? Give feedback.
-
I'd very much like the possibility of grouping my queries with both AND and OR... For example, I'd like to be able to pull tasks from multiple documents -- something like:
This would allow me to offload my repeating tasks from a single monolithic tasks note to individual templates. I've got to admit, while the repeating tasks are slick and I'm glad to have them, the completed tasks are piling up and filling up my list 😛 I'm not quite sure how to handle it -- it's kind of cool to have a record of what I completed when, but my task list is becoming less and less usable 🤷🏽♀️ |
Beta Was this translation helpful? Give feedback.
-
This is something I would love to see as well! |
Beta Was this translation helpful? Give feedback.
-
+1 Alternatively, or in addition: it would be lovely to have a Javascript-based query API perhaps borrowing from DataViewJS with |
Beta Was this translation helpful? Give feedback.
-
There has been another request for this at #551. |
Beta Was this translation helpful? Give feedback.
-
See also another request in #625. |
Beta Was this translation helpful? Give feedback.
-
@claremacrae One way to get this feature, that would be less accessible to a wide audience, but may simplify the implementation would be to allow the description filter to take a regexp. Arguably, that would be useful regardless of the presence of "OR" query logic—because why not both? |
Beta Was this translation helpful? Give feedback.
-
Hey everybody, I spent some time reading the queries code and I believe I've come up with a syntax that is -
It looks like this:
(you would be able to use any combination of AND, OR, NOT, XOR and parenthesis) The idea is to use the existing predicates, but parse logical keywords around them, and additionally, treat a newline as If this meets everybody's expectations from this feature, I'd love to start working on it next week. I started using |
Beta Was this translation helpful? Give feedback.
-
As promised, here it is: #852 |
Beta Was this translation helpful? Give feedback.
-
Very nice!
On August 31, 2022, Vipercat ***@***.***> wrote:
@esm7 <https://github.com/esm7> I have just started using the changes
and they are amazing. Thank you so much for sharing this with all of
us.
—
Reply to this email directly, view it on GitHub
<https://github.com/obsidian-tasks-group/obsidian-
tasks/discussions/121#discussioncomment-3521411>, or unsubscribe
<https://github.com/notifications/unsubscribe-
auth/AAACPAG4P6F5URTFYGB4TADV366D7ANCNFSM444CK6GA>.
You are receiving this because you were mentioned.Message ID: <obsidian-
tasks-group/obsidian-tasks/repo-
***@***.***>
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
It would quite useful to have the possibility to combine filters with OR, in order to have query such as
give me all the task that
Right now it is possible only having two "task query":
But it is a bit annoying to have the task counter below each "task query" instead of a sum of both.
A solution would be to use AND as default, and only OR when necessary
Beta Was this translation helpful? Give feedback.
All reactions