Filter out empty tasks #1339
-
Hi, I am too stupid to find this: is there a way to filter out empty tasks? I have a template that has an empty task to quickly add new items. But I sometimes don’t have something to add so these files have an empty task. Going through hundreds of files would be an hassle. With dataview it’s “text != “” “ … but I can’t figure out the syntax here and can’t find anything in the forums or the docs… please help :) thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Hi @ArneNostitz, you're not stupid! It definitely is harder to do this in Tasks than dataview. Here is how to do it: To find non-empty tasks, excluding empty ones
To find empty tasks:
It uses regular expression searches which are explained in: https://obsidian-tasks-group.github.io/obsidian-tasks/queries/regular-expressions/ |
Beta Was this translation helpful? Give feedback.
Hi @ArneNostitz, you're not stupid! It definitely is harder to do this in Tasks than dataview.
Here is how to do it:
To find non-empty tasks, excluding empty ones
To find empty tasks:
/^$/
matches text where there is nothing between the start and the end.It uses regular expression searches which are explained in:
https://obsidian-tasks-group.github.io/obsidian-tasks/queries/regular-expressions/