obsidian-dataview
obsidian-dataview copied to clipboard
Different character checkbox completion
I would like to be able to use a different character to complete my tasks.
I am using the checkboxes snippet to visually differentiate my tasks. But when using the dataview task list only the checkboxes checked using "x" or "X" are detected. I would like to use any character to check my tasks.
I also found issue #229 that seemed to ask for something similar.
Thanks for this great plugin I hope it can become better and better.
There are two components to this
- First, having Dataview properly detect tasks completed with multiple characters: doable, though there are a few questions like how to treat
.(is this complete or incomplete)? - Second, when you check a task via Dataview, how does it check it? Right now it defaults to 'X'.
Previous discussion in #458
There are two components to this
- First, having Dataview properly detect tasks completed with multiple characters: doable, though there are a few questions like how to treat
.(is this complete or incomplete)?
An option could be added in which you can write all the characters that you want to complete the task.
Something like:
Task completion characters: "Xx<>-"
This way only these characters will be considered
- Second, when you check a task via Dataview, how does it check it? Right now it defaults to 'X'.
To do this you should go to the note itself and edit it manually, which is similar to checking the task in the note itself: you have to go in edit mode.
By the way, it could be possible to create a plugin that opens a little menu when right-clicking on a task in order to select the completion character?
These are the characters rendered by ITS Theme's Checkboxes snippet: xX>D?!+/R.
https://github.com/ebullient/obsidian-task-collector does the following:
"completed items" are x, X and optionally - for canceled tasks.
I require an additional string to specify "other" task values (which I count as incomplete for task collector purposes). That string contains other characters (minimally including space) that can be used to "check" tasks, but I don't count those tasks as complete.
I'm not sure if it would be possible to just get the task collector completion prompt to work with dataview.
I have a PR in flight that allows a modal to select the task completion character.. how hard would it be to work w/ dataview api to use that modal to submit the value?
Another option is to allow it to be part of the query.
For example:
where task.status != "X"
This would allow anyone to apply their own custom logic.
This has already been implemented in the beta.
Hey @AB1908, I'm testing this feature right now:
- [ ] check teams
- [x] check email
- [?] check calendar
`` dataview
Task
where task.status = "?"
``
`` dataview
table file.tasks.status as "Status"
``
Somehow I can't get it working. That task view doesn't show any results.
The state looks right in the table dataview.
- obsidian 1.1.16
- dataview 0.5.55
Any suggestions? Thanks!
Hi @MiroslavMikus, just remove the task. It should be where status = "?".