Subtasks / Subitems / Nesting #2
Replies: 5 comments 15 replies
-
I use a very similar syntax in Sublime for my TODOs and I'd love to switch to [x]it once the Sublime package is out. But I do also use subtasks as described here all the time, so I wanted to add my two cents regarding your first bullet point: I'd just leave it up to the "user" to maintain consistency in the file. There is no need for a complex specification in this regard, as there is no way to enforce it, really. Users can do with their text files whatever works best for them. |
Beta Was this translation helpful? Give feedback.
-
Additional edge-cases / questions that came to my mind: 1.)
I would tend to say no, because it might become unclear then where the last line belongs to. I also think it might complicate the implementation of parsers, because the data structure of child items would be less stringent, if child-items and description can be interspersed. 2.)
I’d also tend to say no, because it’s hard to say how this is supposed to be interpreted. 3.)Semi-related, the subsequent lines of a description might currently (!) also have additional preceding whitespace:
But that of course could also be debated, whether subsequent description lines must start with non-whitespace characters after the indentation sequence. I’m not sure such a restriction for descriptions would really be necessary or beneficial, though – I tend to doubt it. |
Beta Was this translation helpful? Give feedback.
-
Editor plugins could use this to enforce some dependencies. For example
Example of first rule:
|
Beta Was this translation helpful? Give feedback.
-
You can try plainTasks, which is a very similar project, to see how they have solved it. |
Beta Was this translation helpful? Give feedback.
-
syntax highlighting aside, i have a modified version of the |
Beta Was this translation helpful? Give feedback.
-
Items could contain subtasks, e.g.
The nesting could in theory be arbitrary.
There are legitimate use cases for this, and it’s also a natural thing to do. On the other hand, it might also create some complications:
In the end, it’s really a cost-benefit question, whether or not this is a worthwhile addition.
I’m going to experiment with this in the Sublime Text Package, to get a better feeling for these questions. If anyone else has thoughts or experiences, please do share them here.
Beta Was this translation helpful? Give feedback.
All reactions