create todo list script

This commit is contained in:
Infinidoge 2025-01-14 17:42:59 -05:00
parent 60edbd0df1
commit 30b300986c
Signed by: Infinidoge
SSH key fingerprint: SHA256:oAMyvotlNFraMmZmr+p6AxnNfW/GioTs1pOn3V4tQ7A

11
todo.py Normal file
View file

@ -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())