curve: updating taskwarrior
This commit is contained in:
parent
b7e290b5f5
commit
37b68f9653
|
@ -34,10 +34,10 @@ def write_note(task_id: int):
|
||||||
if not os.path.exists(notes_file):
|
if not os.path.exists(notes_file):
|
||||||
logging.info("Adding description to empty notes file")
|
logging.info("Adding description to empty notes file")
|
||||||
task_description = os.popen(f"task _get {task_id}.description").read()
|
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(",")
|
task_tags = os.popen(f"task _get {task_id}.tags").read().split(",")
|
||||||
if len(task_tags):
|
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")
|
time = datetime.datetime.now().strftime("%y-%m-%d %H:%M")
|
||||||
|
|
||||||
with open(notes_file, "w") as f:
|
with open(notes_file, "w") as f:
|
||||||
|
|
|
@ -2,14 +2,18 @@
|
||||||
|
|
||||||
{
|
{
|
||||||
home.file = {
|
home.file = {
|
||||||
|
# Because the below is inconsistent, I turn it off once I have a copy in place.
|
||||||
|
".taskrc".enable = true;
|
||||||
# WARN ugly hack
|
# WARN ugly hack
|
||||||
# taskwarrior needs write access to this file for centexts
|
# 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
|
# this way, we get a copy of the file, and we make sure it's writable
|
||||||
".taskrc".source = ./taskrc;
|
".taskrc".source = ./taskrc;
|
||||||
".taskrc".executable = true;
|
".taskrc".executable = true;
|
||||||
".taskrc".onChange = "cp ~/.taskrc ~/.taskrc2;rm ~/.taskrc;mv ~/.taskrc2 ~/.taskrc;chmod +w ~/.taskrc";
|
".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/ca.cert".source = ./ca.cert;
|
||||||
".task/keys/public.cert".source = ./public.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;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -46,10 +46,7 @@ context.dev.read=+dev or +ops -work
|
||||||
context.home.read=-work
|
context.home.read=-work
|
||||||
context.work.read=+work
|
context.work.read=+work
|
||||||
context.work.write=+work
|
context.work.write=+work
|
||||||
context.bucket.read=+in
|
context.bucket.read=+idea
|
||||||
context.focused=(priority:H or priority:M) -idea -backlog -finances urgency > 5.0
|
|
||||||
# context.work=+Work -idea -personal
|
|
||||||
# context.offwork=-Work
|
|
||||||
|
|
||||||
## Reports
|
## 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.columns=id,project,tags,description
|
||||||
report.in.labels=ID,Proj,Tags,Description
|
report.in.labels=ID,Proj,Tags,Description
|
||||||
report.in.description=Inbox
|
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
|
# Unblocked
|
||||||
report.unblocked.labels=ID,Deps,Proj,Tags,Due,Active,Description
|
report.unblocked.labels=ID,Deps,Proj,Tags,Due,Active,Description
|
||||||
report.unblocked.columns=id,depends,project,tags,due,start.active,description
|
report.unblocked.columns=id,depends,project,tags,due,start.active,description
|
||||||
|
|
||||||
# Next
|
# 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.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
|
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.tag.purchase.coefficient=-1.2
|
||||||
urgency.user.project.curve.glam.coefficient=-1.3
|
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
|
# Colors
|
||||||
color.project.chores=blue
|
color.project.chores=blue
|
||||||
color.tag.dev=cyan
|
color.tag.dev=cyan
|
||||||
|
|
Loading…
Reference in a new issue