diff --git a/home/profiles/task/bin/task-note.py b/home/profiles/task/bin/task-note.py index ce81f749..9f36e730 100755 --- a/home/profiles/task/bin/task-note.py +++ b/home/profiles/task/bin/task-note.py @@ -34,10 +34,10 @@ def write_note(task_id: int): if not os.path.exists(notes_file): logging.info("Adding description to empty notes file") task_description = os.popen(f"task _get {task_id}.description").read() - task_project = os.popen(f"task _get {task_id}.project").read().strip("\n") + task_project = os.popen(f"task _get {task_id}.project").read().strip("\n").replace(".", ":") task_tags = os.popen(f"task _get {task_id}.tags").read().split(",") if len(task_tags): - task_tags = ":".join(task_tags).strip("\n") + task_tags = ":".join(task_tags).strip("\n") + ":" time = datetime.datetime.now().strftime("%y-%m-%d %H:%M") with open(notes_file, "w") as f: diff --git a/home/profiles/task/default.nix b/home/profiles/task/default.nix index b2d68e88..0862f9ec 100644 --- a/home/profiles/task/default.nix +++ b/home/profiles/task/default.nix @@ -2,14 +2,18 @@ { home.file = { + # Because the below is inconsistent, I turn it off once I have a copy in place. + ".taskrc".enable = true; # WARN ugly hack # taskwarrior needs write access to this file for centexts # this way, we get a copy of the file, and we make sure it's writable ".taskrc".source = ./taskrc; ".taskrc".executable = true; ".taskrc".onChange = "cp ~/.taskrc ~/.taskrc2;rm ~/.taskrc;mv ~/.taskrc2 ~/.taskrc;chmod +w ~/.taskrc"; - ".local/bin/task-note".source = ./bin/task-note.py; ".task/keys/ca.cert".source = ./ca.cert; ".task/keys/public.cert".source = ./public.cert; + + ".local/bin/task-note".source = ./bin/task-note.py; + ".local/bin/set-idea".source = ./bin/set-idea.sh; }; } diff --git a/home/profiles/task/taskrc b/home/profiles/task/taskrc index f3b3f43c..40609f3d 100644 --- a/home/profiles/task/taskrc +++ b/home/profiles/task/taskrc @@ -46,10 +46,7 @@ context.dev.read=+dev or +ops -work context.home.read=-work context.work.read=+work context.work.write=+work -context.bucket.read=+in -context.focused=(priority:H or priority:M) -idea -backlog -finances urgency > 5.0 -# context.work=+Work -idea -personal -# context.offwork=-Work +context.bucket.read=+idea ## Reports @@ -61,14 +58,21 @@ report.list.labels=ID,P,Project,Tags,R,Sch,Due,Until,Description report.in.columns=id,project,tags,description report.in.labels=ID,Proj,Tags,Description report.in.description=Inbox -report.in.filter=status:pending limit:page (+in) +report.in.filter=status:pending limit:page (+idea) + +# Backlog +report.backlog.columns=id,priority,project,tags,recur.indicator,scheduled.countdown,due,until.remaining,description.count +report.backlog.labels=ID,P,Project,Tags,R,Sch,Due,Until,Description +report.backlog.description=backlog +report.backlog.filter=status:pending limit:page (+backlog) +report.backlog.sort=start-,due+,project+/,urgency- # Unblocked report.unblocked.labels=ID,Deps,Proj,Tags,Due,Active,Description report.unblocked.columns=id,depends,project,tags,due,start.active,description # Next -report.next.filter=(status:pending -in -backlog pro.not:ideas limit:0) +report.next.filter=(status:pending -idea -backlog limit:0) # pro.not:ideas report.next.labels=ID,Active,Deps,P,Project,Tag,Recur,S,Due,Until,Description report.next.columns=id,start.age,depends,priority,project,tags,recur,scheduled.countdown,due.relative,until.remaining,description @@ -85,6 +89,11 @@ urgency.user.tag.think.coefficient=-7.0 urgency.user.tag.purchase.coefficient=-1.2 urgency.user.project.curve.glam.coefficient=-1.3 +# UDAs +uda.taskwarrior-tui.shortcuts.1=~/.local/bin/task/set-focus.sh +uda.taskwarrior-tui.shortcuts.2=~/.local/bin/task/set-backlog.sh +uda.taskwarrior-tui.shortcuts.3=~/.local/bin/task/set-idea.sh + # Colors color.project.chores=blue color.tag.dev=cyan