Dataview task - filter special checkmarks

What I’m trying to do

Some themes use special checkmarks, like: [>], [!], [i], etc. By default, Obsidian knows only [x] and [X] checkmarks.

I want to list in my dataview query all checkmarks (no matter if checked, completed) but exclude special checkmarks.

Things I have tried

To start, here a simple code:

```dataview
TASK
WHERE file.name = this.file.name 
```

I’ve no idea how I should filter special checkmarks, probably a job for js. The issue, I don’t know js.

Hello.

Can you negate the special checkmarks that you want to exclude? For example:

WHERE status != "i"

Or it might be simpler to only filter on the status checkmarks that you do want to see.

WHERE status = ">"

1 Like

No need for dataviewjs, and one of the easier ways to check for a custom status is doing something like: WHERE contains([">", "<", "!", "¡"], status) in your TASK query. By doing !contains() you could negate the query and get all the tasks having statuses not in the given list.

2 Likes

Thanks to both, @Guapa , @holroy :+1::+1:

Fantastic, problem solved !
Pity I can’t give “Solution” to both.

1 Like