···3434 if not os.path.exists(notes_file):
3535 logging.info("Adding description to empty notes file")
3636 task_description = os.popen(f"task _get {task_id}.description").read()
3737- task_project = os.popen(f"task _get {task_id}.project").read().strip("\n")
3737+ task_project = os.popen(f"task _get {task_id}.project").read().strip("\n").replace(".", ":")
3838 task_tags = os.popen(f"task _get {task_id}.tags").read().split(",")
3939 if len(task_tags):
4040- task_tags = ":".join(task_tags).strip("\n")
4040+ task_tags = ":".join(task_tags).strip("\n") + ":"
4141 time = datetime.datetime.now().strftime("%y-%m-%d %H:%M")
42424343 with open(notes_file, "w") as f:
+5-1
home/profiles/task/default.nix
···2233{
44 home.file = {
55+ # Because the below is inconsistent, I turn it off once I have a copy in place.
66+ ".taskrc".enable = true;
57 # WARN ugly hack
68 # taskwarrior needs write access to this file for centexts
79 # this way, we get a copy of the file, and we make sure it's writable
810 ".taskrc".source = ./taskrc;
911 ".taskrc".executable = true;
1012 ".taskrc".onChange = "cp ~/.taskrc ~/.taskrc2;rm ~/.taskrc;mv ~/.taskrc2 ~/.taskrc;chmod +w ~/.taskrc";
1111- ".local/bin/task-note".source = ./bin/task-note.py;
1213 ".task/keys/ca.cert".source = ./ca.cert;
1314 ".task/keys/public.cert".source = ./public.cert;
1515+1616+ ".local/bin/task-note".source = ./bin/task-note.py;
1717+ ".local/bin/set-idea".source = ./bin/set-idea.sh;
1418 };
1519}