A smol todo list TUI and CLI.
sudo luarocks install ttodo
(requiresluarocks
andlua
>=5.1)- requires
tput
andstty
in the PATH
### $TODOFILE
Sets the location of the todofile, defaults to $HOME/.todofile
Displays the todo list with default format
Opens the todo list in the default $EDITOR
or $VISUAL
(or vi
if none is set)
Displays the content of the todofile
Displays the path of the todofile
Adds a new item to the todo list
Displays the todo list with the given format.
${field}
or ${field:minlen}
gets replaced by the given field (listed by ttodo _fields
)
#{color}
, #{r, g, b}
and #{reset}
gets replaced by the corresponding ANSI escapes
Returns the number of items in the todo list
Lists the available fields for the ttodo printf
command
Lists the available subcommands
Opens the full terminal TUI
The up and down arrow keys move the cursor, which wraps around if top or bottom is reached.
Blue pipes are visible at the top or bottom if the viewport is scrolled.
All modifications are only done in memory until you explicitly save.
Using shift with a command avoids the confirm prompt (for delete, save and quit).
MIT