Tasks Query Does Not Recognize 1. [ ] #1011
Replies: 11 comments 2 replies
-
It is not supposed to recognise 1. And in any case it is not clear what a numbered task would mean |
Beta Was this translation helpful? Give feedback.
-
Tasks will only support “markdown tasks” ( |
Beta Was this translation helpful? Give feedback.
-
That's a shame. We all know there is no such thing as "standard markdown". Since this is an Obsidian plugin, one could even make the argument that what's important is to support the flavor of Markdown that Obsidian supports. And in that case, note that Obsidian renders ordered checklists quite well:
It seems that quite a few of us have found Obsidian's extension of Markdown to be quite useful to distinguish between tasks that can be done in any order and tasks that can be done out of order. So why not support plugin users who have decided to make Markdown even more useful to them? |
Beta Was this translation helpful? Give feedback.
-
Another example of support: delashum/obsidian-checklist-plugin#96 |
Beta Was this translation helpful? Give feedback.
-
Once #953 (tasks in callouts and block quotes being supported) is merged, I would not be opposed to a pull request on this, if anyone would like to contribute it. |
Beta Was this translation helpful? Give feedback.
-
Does Obsidian's built-in search, which has operators for finding tasks in general, as well as completed or uncompleted tasks specifically, find those tasks that are in ordered lists? That would be an important prerequisite here. |
Beta Was this translation helpful? Give feedback.
-
Yes, I tried |
Beta Was this translation helpful? Give feedback.
-
If they use the same code for recognition it's probably the same issue: Toggle Task Done mangles tasks with numbered items by putting an extra unordered mark in as if it weren't a list item at all, making it a double-marked If the recognition is extended to all legal Obsidian markdown (which I strongly agree it should be, if it's going to be an Obsidian plugin) then this behavior also should be touched up to toggle between If it's not going to be extended, I feel this behavior should still be looked at since it causes the behavior of "Toggle Task Done" to diverge from "Toggle Checklist" when in theory it's a drop-in replacement. Either it should ignore numbered lists or change them to unordered lists (neither of which sounds great, hence thinking it should handle them natively instead). |
Beta Was this translation helpful? Give feedback.
-
I have converted this to a discussion since Clare said that it might be possible to accept a PR for it now! |
Beta Was this translation helpful? Give feedback.
-
Wow. @BrianKmdy had very kindly created a PR for an implementation of this: #1363 If I understand it correctly, tasks in numbered lists would now be find. And they would be rendered as un-numbered lists. I wrote a few initial quick thought about the rendering - and how hard it would be to do differently - in #1363 (comment). |
Beta Was this translation helpful? Give feedback.
-
Hi, just to note that Tasks 1.20.0 includes the above PR, so tasks in numbered lists are found. Note that they are rendered as bullet lists in tasks blocks. See https://obsidian-tasks-group.github.io/obsidian-tasks/getting-started/#limitations-and-warnings and scroll down a little to the section on 'numbered lists'. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Not Recognize
1. [ ]
but- [ ]
is OK.will it be fixed later?? thanks!
Beta Was this translation helpful? Give feedback.
All reactions