Tips & Tricks for Using ttdl More Effectively #134
Enopheron
started this conversation in
Show and tell
Replies: 1 comment 1 reply
-
|
Thanks a lot for sharing! The parent-child output look amazing. There is an attribute |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello
I wanted to share a few interesting ways to use
ttdlthat extend its functionality.Goal: Share usage ideas, suggest possible solutions, and get advice on improvements.
1. Linked Notes
I create a task through a separate shell function that gives each task a unique
idas a timestamp:After entering the task information and pressing Enter, the next step is a prompt to create a markdown note or skip it.
All markdown notes are stored in a single folder and named after the task
id:Example folder structure:
The remaining step is to write a function that accepts the task line number (as shown in
ttdl l), retrieves the taskid, scans themdfiles in the notes folder, and opens the corresponding note in the default editor.This gives a dedicated document for adding extra information, links, and observations for each task.
2. Task Relationships
I often have a main task and multiple subtasks.
Currently,
ttdldoes not support linking tasks or displaying them as part of a parent task.I use a new attribute:
and specify the
idof the related task. Then, I have a Python script that shows relationships between tasks:At first, I thought of proposing adding such links into
ttdl, but I went further:idto a header and link tasks to itSo this goes beyond the default functionality of
ttdl.3. Letting the Imagination Run
ttdlisn’t just a CLI for tasks.I used
linkdingfor storing interesting links, but I realized I mostly read the short description and then open the link.I need tags and search, which
ttdlalready supports.So I moved interesting links to a separate text file and use it in
ttdl --todo-file ~/.../web.txt:Notice that each link also has an
id— this allows creating a note for the tools and adding observations or descriptions.I also have a function that extracts links in
http/httpsformat and opens them usingxdg-open.The
#marker on a task indicates that it has a link (the link is hidden and not displayed; only the#symbol is shown).So, I simply pass the task line number to the function in order to open the link.
Lifehack
Install
Termuxand buildttdlviacargo.I synchronize via FTP, run
sshdin Termux, and sync files.When I need to add tasks on my phone, I write them to a separate file
droid.txt.nushell
After syncing to my PC, I merge tasks from
droid.txtintotodo.txt.Summary
These were a few exciting months using
ttdl.I assume the developer never intended it for such a scale, but I moved my tasks, web link database, and quick notes into
ttdlbecause it is fast, convenient, and provides a single interface for multiple use cases — probably a habit left over from Emacs…😁Beta Was this translation helpful? Give feedback.
All reactions