Skip to content

Filter out empty tasks #1339

Answered by claremacrae
ArneNostitz asked this question in Q&A
Nov 22, 2022 · 1 comments · 5 replies
Discussion options

You must be logged in to vote

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

description regex does not match /^$/ 

To find empty tasks:

description regex matches /^$/

/^$/ 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/

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@claremacrae
Comment options

@claremacrae
Comment options

@claremacrae
Comment options

@ArneNostitz
Comment options

@claremacrae
Comment options

Answer selected by claremacrae
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants