-
-
Notifications
You must be signed in to change notification settings - Fork 239
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'show tree' does not render non-task checkboxes #3170
Comments
Hi, thanks for the feedback. Really it never occurred to me that someone would have nested lines some of which matched the global filter and some did not. The Tasks plugin basically just ignores task lines with no global filter. Can you please give a real-world example of why you would mix by types of task line? |
Before tree view, I found that writing everything as a task was a bit tedious and would flood my view/queries, and I focused on having fewer, bigger tasks, where I would write subgoals using non-task checkboxes. Concretely:
For example, I have:
And since I consider I was supposed to do all the subtasks on the same date as the parent task, I don't really bother with defining them as tasks, as otherwise, they would appear under my "task without a scheduled date" filter. To me, this seemed like my ideal workflow, and I naturally organized tasks like this before Tree view. Hence, Tree view seems to be perfect for this approach. The only issue I faced is those checkboxes not appearing in the queries. I'll also try in the upcoming week to define everything as a task, see how it feels and to have a more objective idea of how this would work, since I never really tried it properly. At the very least, tree view gives me more option, and they deserve a more thorough investigation on this front. |
Thank you very much. I look forward to hearing back about your experiments... |
Note to self: A summary is that the mixture of nested tasks with and without the global filter was a nice workaround for the absence of a tree view in Tasks - and so in and of itself, is not likely to be a pressing case for this issue to be addressed. |
Just to note that the parent/child code is not designed to handle non-task checkboxes... We have these classes:
This means it's going to be non-trivial to support this. I'll leave it for another day or two, whilst I think about it some more. But my current inclination is to close this as 'not planned' for now, as a low priority... |
Thanks a lot for looking into it on your end!
Those two observations do not always combine well for me. For instance, this automatic date makes those somewhat random checkboxes appear in some of my queries (like my "done today" query). I can think of some workarounds, but that would, I believe, also require significant changes to the current plugin (like having multiple types of tasks: one with tag When I wrote this issue (and given the additional context you provided about the code), I assumed non-tasks checkboxes should simply behave like From your explanation, my naive approach would have been to create a Do you think, from your experience, that this is a feasible solution? If yes, I'll be making a note to try this solution on my end once I have time (should be in December), and if it works I'll try to open a PR. But as I have close to no experience in JS, this is possibly too naïve of a solution. |
|
There is already a Tasks mechanism for toggling tasks and not adding done-dates... Use a custom status with type NON_TASK:
It doesn't arise from Obsidian, it arises from the current Tasks code.
That is a reasonable suggestion - this all comes down to tradeoffs - where do the two of us who work on Tasks chose to spend our time. And for me, it's not just development time, it's user-support time and managing PRs, which themselves can take hours.
I am not accepting many PRs these days - only from people who are already very familiar with Tasks code and my ways of working - just because otherwise they usually take too much time to shepherd through and maintain. |
@dimiarbre For now I will leave this open, so that others may comment. Because Tasks and Obsidian are so flexible, people use them in ways I had not considered - and sometimes in conflicting ways... So based on this just one datapoint I would not yet change anything... and would encourage you to work within the confines of the existing Tasks capabilities. But over time, I will collect more data about how people are using the Tasks plugin with nested tasks and list items, and we can decide what to do from there... |
I'll look into NON_TASKS, thanks for the pointer. |
Another discovery of the same issue: |
Please check that this issue hasn't been reported before.
Steps to reproduce
global filter
to#task
, and disable/re-enable the plugin as I couldn't reload the sandbox directly.Expected Behavior
First of all, thanks a ton for the amazing plugin!
I think tree view is not yet 100% stable, but I really enjoy the idea as I already use tree structures when defining my tasks.
In this case, I expected to see non-task checkboxes rendered like bullet points currently are (see example in current behavior). Maybe the bullet points behavior is also bound to change, so this is not a priority, but I did not find any documentation/other reference to this behavior.
Current behaviour
Non-task Checkboxes simply do not appear in the query result. On the left is the source view. Right is the reading view, but the live preview mode also has the same behavior as the reading view.
Which Operating Systems are you using?
Obsidian Version
1.7.5
Tasks Plugin Version
7.13.0
Checks
Possible solution
No response
The text was updated successfully, but these errors were encountered: