TODO-TXT(1)
πΈ NAME πΈ
okay so bestie, meet todo-txt β the simple and extensible shell script for managing your todo.txt file. that's the whole vibe. it's TODO-TXT(1) from the General Commands Manual, and it is literally about to become your main character. π
β¨ SYNOPSIS β¨
todo-txt [-fhpantvV] [-d todo_config] action [task_number]
[task_description]
so yeah, you smash a bunch of flags, then an action, then a task number and/or a task description. that's the entire recipe, periodt. π
π OPTIONS π
-@β Hide context names in list output. Use it twice to show context names again (that's the default, bestie). π¦-+β Hide project names in list output. Use it twice to show project names (which is, again, the default).-cβ Color mode. π-dCONFIG_FILEβ Use a configuration file that isn't the default~/.todo-txt/config. pick your own adventure, fr fr.-fβ Forces actions without confirmation or interactive input. no questions, just doing it. π-hβ Display a short help message; same as the action"shorthelp". π«Ά-pβ Plain mode, which turns off colors. (sad beige energy, but sometimes you need it)-Pβ Hide priority labels in list output. Use it twice to show priority labels (default).-aβ Don't auto-archive tasks automatically on completion.-Aβ Auto-archive tasks automatically on completion.-nβ Don't preserve line numbers; automatically remove blank lines on task deletion.-Nβ Preserve line numbers.-tβ Prepend the current date to a task automatically when it's added.-Tβ Do not prepend the current date to a task automatically when it's added.-vβ Verbose mode turns on confirmation messages. π-vvβ Extra verbose mode prints some debugging information and additional help text. double the yapping, double the lore.-Vβ Displays version, license and credits. π-xβ DisablesTODOTXT_FINAL_FILTER. π
π ACTIONS π
add,a"THING I NEED TO DO +project @context"β Adds THING I NEED TO DO to yourtodo.txtfile on its own line. Project and context notation optional. Quotes optional. β¨addm"FIRST THING I NEED TO DO +project1 @context<break>SECOND THING I NEED TO DO +project2 @context"β Adds FIRST THING I NEED TO DO to yourtodo.txton its own line, and adds SECOND THING I NEED TO DO to yourtodo.txton its own line. Project and context notation optional. two tasks, one command, iconic.addtoDEST "TEXT TO ADD"β Adds a line of text to any file located in thetodo.txtdirectory. For example,addto inbox.txt "decide about vacation". πappend,appITEM# "TEXT TO APPEND"β Adds TEXT TO APPEND to the end of the task on line ITEM#. Quotes optional.archiveβ Moves all done tasks fromtodo.txttodone.txtand removes blank lines. spring cleaning, but make it text file. π§Ήcommand[ACTIONS]β Runs the remaining arguments using onlytodo.shbuiltins. Will not call any.todo.actions.dscripts. so no add-on shenanigans, just the OGs.deduplicateβ Removes duplicate lines fromtodo.txt. bestie said "no twins allowed." πdel,rmITEM# [TERM]β Deletes the task on line ITEM# intodo.txt. If TERM is specified, deletes only TERM from the task.depri,dpITEM# [ITEM# ...]β Deprioritizes (removes the priority) from the task(s) on line ITEM# intodo.txt. we're un-stressing the list, love that for us.doITEM# [ITEM# ...]β Marks task(s) on line ITEM# as done intodo.txt. the slay action. βhelp[ACTION ...]β Display help about usage, options, built-in and add-on actions, or just the usage help for the passed ACTION(s).list,ls[TERM ...]β Displays all tasks that contain TERM(s) sorted by priority with line numbers. Each task must match all TERM(s) (logical AND); to display tasks that contain any TERM (logical OR), use"TERM1TERM2..."(with quotes), orTERM1\|TERM2(unquoted). Hides all tasks that contain TERM(s) preceded by a minus sign (i.e.-TERM). If no TERM specified, lists the entiretodo.txt. π₯listall,lsa[TERM ...]β Displays all the lines intodo.txtANDdone.txtthat contain TERM(s) sorted by priority with line numbers. Hides all tasks that contain TERM(s) preceded by a minus sign (i.e.-TERM). If no TERM specified, lists the entiretodo.txtANDdone.txtconcatenated and sorted. the "show me everything" button.listaddonsβ Lists all added and overridden actions in the actions directory. πlistcon,lsc[TERM ...]β Lists all the task contexts that start with the@sign intodo.txt. If TERM specified, considers only tasks that contain TERM(s).listfile,lf[SRC [TERM ...]]β Displays all the lines in the SRC file located in thetodo.txtdirectory, sorted by priority with line numbers. If TERM specified, lists all lines that contain TERM(s) in the SRC file. Hides all tasks that contain TERM(s) preceded by a minus sign (i.e.-TERM). Without any arguments, the names of all text files in thetodo.txtdirectory are listed. πlistpri,lsp[PRIORITIES] [TERM ...]β Displays all tasks prioritized PRIORITIES. PRIORITIES can be a single one (A) or a range (A-C). If no PRIORITIES specified, lists all prioritized tasks. If TERM specified, lists only prioritized tasks that contain TERM(s). Hides all tasks that contain TERM(s) preceded by a minus sign (i.e.-TERM).listproj,lsprj[TERM ...]β Lists all the projects (terms that start with a+sign) intodo.txt. If TERM specified, considers only tasks that contain TERM(s). πmove,mvITEM# DEST [SRC]β Moves a line from the source text file (SRC) to the destination text file (DEST). Both the source and destination file must be located in the directory defined in the configuration directory. When SRC is not defined it's by defaulttodo.txt.prepend,prepITEM# "TEXT TO PREPEND"β Adds TEXT TO PREPEND to the beginning of the task on line ITEM#. Quotes optional.pri,pITEM# PRIORITYβ Adds PRIORITY to the task on line ITEM#. If the task is already prioritized, replaces the current priority with the new PRIORITY. PRIORITY must be a letter betweenAandZ.replaceITEM# "UPDATED TODO"β Replaces the task on line ITEM# with UPDATED TODO. glow-up in progress. β¨reportβ Adds the number of open tasks and done tasks toreport.txt. πshorthelpβ List the one-line usage of all built-in and add-on actions. the tl;dr of the tl;dr.
ngl bestie, that's the whole page. every flag, every action, every little detail β preserved like a limited-edition collectible. π«Ά
this little love letter comes from the TODO-TXT(1) manual, dated August 2016 β so yeah, it's vintage and it still eats. bye babes, go finish your tasks! πβ¨ππ¦
π¦ where this page comes from
- debian bookworm: todotxt-cli 2.11.0-2 Β· GPL-3.0-or-later
- debian trixie: todotxt-cli 2.11.0-2 Β· GPL-3.0-or-later
- ubuntu jammy: todotxt-cli 2.11.0-2 Β· GPL-3.0-or-later
- ubuntu noble: todotxt-cli 2.11.0-2 Β· GPL-3.0-or-later
- ubuntu resolute: todotxt-cli 2.11.0-2 Β· GPL-3.0-or-later
- ubuntu stonking: todotxt-cli 2.11.0-2ubuntu1 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms