obsidian-dataview icon indicating copy to clipboard operation
obsidian-dataview copied to clipboard

Different character checkbox completion

Open nemoos0 opened this issue 4 years ago • 8 comments
trafficstars

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.

nemoos0 avatar Sep 19 '21 12:09 nemoos0

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'.

blacksmithgu avatar Sep 21 '21 01:09 blacksmithgu

Previous discussion in #458

sheeley avatar Sep 21 '21 04:09 sheeley

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?

nemoos0 avatar Sep 21 '21 08:09 nemoos0

These are the characters rendered by ITS Theme's Checkboxes snippet: xX>D?!+/R.

jsmm avatar Sep 22 '21 07:09 jsmm

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.

ebullient avatar Jan 09 '22 23:01 ebullient

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?

ebullient avatar Jan 13 '22 19:01 ebullient

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.

kevinawoo avatar Jun 03 '22 09:06 kevinawoo

This has already been implemented in the beta.

AB1908 avatar Jun 03 '22 12:06 AB1908

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!

MiroslavMikus avatar Mar 10 '23 10:03 MiroslavMikus

Hi @MiroslavMikus, just remove the task. It should be where status = "?".

zcysxy avatar Jun 01 '23 23:06 zcysxy