From 30b300986c3dfd52e6b8ba3bcf78c1bf6acf212e Mon Sep 17 00:00:00 2001 From: Infinidoge Date: Tue, 14 Jan 2025 17:42:59 -0500 Subject: [PATCH] create todo list script --- todo.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 todo.py diff --git a/todo.py b/todo.py new file mode 100644 index 0000000..35005fd --- /dev/null +++ b/todo.py @@ -0,0 +1,11 @@ +from printer import p +from datetime import datetime + +with p: + p.title(" TODO List ", size=4) + p.subtitle(datetime.today().strftime("%Y-%m-%d")) + p.ln() + + with open("/home/infinidoge/TODO.txt", "r") as f: + for line in f.readlines(): + p.textln(line.replace("- ", "[ ] ").rstrip())