Jopp
April 5, 2025, 3:23pm
1
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.
Guapa
April 5, 2025, 3:36pm
2
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
holroy
April 5, 2025, 5:04pm
3
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
Jopp
April 5, 2025, 6:37pm
4
Thanks to both, @Guapa , @holroy
Fantastic, problem solved !
Pity I can’t give “Solution” to both.
1 Like