todotxt / todo.txt-cli

☑️ A simple and extensible shell script for managing your todo.txt file.
http://todotxt.org
GNU General Public License v3.0
5.55k stars 712 forks source link

Add subtask functionality #390

Closed team-community closed 2 years ago

team-community commented 2 years ago

Hi all. Many tasks are very complex or time-consuming. It makes sense to add subtask functionality. The user can break the task into small tasks and solve them over time. In the end, he will solve the main problem. It would be very helpful. For example, for tasks like learning languages.

inkarkat commented 2 years ago

Hi Aysun, thanks for the suggestion.

The todo.sh functionality only covers the core of task tracking, as everyone's processes and requirements are different. The program can be extended easily via add-ons; many users have already experimented with subtasks / dependencies among tasks. With that in mind, I'm afraid that subtasks will likely never be added to the core program itself.


My personal take on that topic is a set of add-on commands around inter-task dependencies; you'll see these illustrated in this test for depview, but there are several more custom commands involved (e.g. wait, unwait, lswait).

A more lightweight alternative is the ability to do parts of a task via my dopart add-on; again, this test illustrates its use. That one just needs the lib/common.sh helper script, so you might be able to lift this from my personal customization and use it for yourself. (Though I generally have published my extensions only as an inspiration - they're too intertwined and complex for direct use by others, unfortunately.)