nix config

curve: updating taskwarrior

+22 -9
+2 -2
home/profiles/task/bin/task-note.py
··· 34 34 if not os.path.exists(notes_file): 35 35 logging.info("Adding description to empty notes file") 36 36 task_description = os.popen(f"task _get {task_id}.description").read() 37 - task_project = os.popen(f"task _get {task_id}.project").read().strip("\n") 37 + task_project = os.popen(f"task _get {task_id}.project").read().strip("\n").replace(".", ":") 38 38 task_tags = os.popen(f"task _get {task_id}.tags").read().split(",") 39 39 if len(task_tags): 40 - task_tags = ":".join(task_tags).strip("\n") 40 + task_tags = ":".join(task_tags).strip("\n") + ":" 41 41 time = datetime.datetime.now().strftime("%y-%m-%d %H:%M") 42 42 43 43 with open(notes_file, "w") as f:
+5 -1
home/profiles/task/default.nix
··· 2 2 3 3 { 4 4 home.file = { 5 + # Because the below is inconsistent, I turn it off once I have a copy in place. 6 + ".taskrc".enable = true; 5 7 # WARN ugly hack 6 8 # taskwarrior needs write access to this file for centexts 7 9 # this way, we get a copy of the file, and we make sure it's writable 8 10 ".taskrc".source = ./taskrc; 9 11 ".taskrc".executable = true; 10 12 ".taskrc".onChange = "cp ~/.taskrc ~/.taskrc2;rm ~/.taskrc;mv ~/.taskrc2 ~/.taskrc;chmod +w ~/.taskrc"; 11 - ".local/bin/task-note".source = ./bin/task-note.py; 12 13 ".task/keys/ca.cert".source = ./ca.cert; 13 14 ".task/keys/public.cert".source = ./public.cert; 15 + 16 + ".local/bin/task-note".source = ./bin/task-note.py; 17 + ".local/bin/set-idea".source = ./bin/set-idea.sh; 14 18 }; 15 19 }
+15 -6
home/profiles/task/taskrc
··· 46 46 context.home.read=-work 47 47 context.work.read=+work 48 48 context.work.write=+work 49 - context.bucket.read=+in 50 - context.focused=(priority:H or priority:M) -idea -backlog -finances urgency > 5.0 51 - # context.work=+Work -idea -personal 52 - # context.offwork=-Work 49 + context.bucket.read=+idea 53 50 54 51 ## Reports 55 52 ··· 61 58 report.in.columns=id,project,tags,description 62 59 report.in.labels=ID,Proj,Tags,Description 63 60 report.in.description=Inbox 64 - report.in.filter=status:pending limit:page (+in) 61 + report.in.filter=status:pending limit:page (+idea) 62 + 63 + # Backlog 64 + report.backlog.columns=id,priority,project,tags,recur.indicator,scheduled.countdown,due,until.remaining,description.count 65 + report.backlog.labels=ID,P,Project,Tags,R,Sch,Due,Until,Description 66 + report.backlog.description=backlog 67 + report.backlog.filter=status:pending limit:page (+backlog) 68 + report.backlog.sort=start-,due+,project+/,urgency- 65 69 66 70 # Unblocked 67 71 report.unblocked.labels=ID,Deps,Proj,Tags,Due,Active,Description 68 72 report.unblocked.columns=id,depends,project,tags,due,start.active,description 69 73 70 74 # Next 71 - report.next.filter=(status:pending -in -backlog pro.not:ideas limit:0) 75 + report.next.filter=(status:pending -idea -backlog limit:0) # pro.not:ideas 72 76 report.next.labels=ID,Active,Deps,P,Project,Tag,Recur,S,Due,Until,Description 73 77 report.next.columns=id,start.age,depends,priority,project,tags,recur,scheduled.countdown,due.relative,until.remaining,description 74 78 ··· 84 88 urgency.user.tag.think.coefficient=-7.0 85 89 urgency.user.tag.purchase.coefficient=-1.2 86 90 urgency.user.project.curve.glam.coefficient=-1.3 91 + 92 + # UDAs 93 + uda.taskwarrior-tui.shortcuts.1=~/.local/bin/task/set-focus.sh 94 + uda.taskwarrior-tui.shortcuts.2=~/.local/bin/task/set-backlog.sh 95 + uda.taskwarrior-tui.shortcuts.3=~/.local/bin/task/set-idea.sh 87 96 88 97 # Colors 89 98 color.project.chores=blue