Skip to content

How to change the line "TODO: 1 of 1 tasks shown" #406

Answered by inkarkat
blogdemoi asked this question in Q&A
Discussion options

You must be logged in to vote

Unfortunately, there isn't yet a localization mechanism built into todo.txt-cli, so all messages are hard-coded inside the script itself.

The output you're interested in is in function _list(), here.

I wouldn't recommend editing that file, you'll have to redo that (or patch / rebase it) each time there's a new todo.txt-cli release.

For Conky, I would simply omit the summary at the end by setting TODOTXT_VERBOSE=0; that'll also save you some valuable space. You may even want to limit the amount of tasks shown to a maximum (e.g. of 10); for that, you'll likely pipe todo.sh's output into sed or awk, and you easily can do the counting there.

Apropos piping; Conky may interpret some characters (#

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@blogdemoi
Comment options

@blogdemoi
Comment options

@inkarkat
Comment options

@blogdemoi
Comment options

Answer selected by blogdemoi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants