make task warrior useful again
This commit is contained in:
		
							parent
							
								
									975f5a0aba
								
							
						
					
					
						commit
						246bc2738c
					
				|  | @ -174,9 +174,15 @@ | |||
|     unzip = "aunpack"; | ||||
|     copy = "xclip -selection clipboard"; | ||||
|     paste = "xclip -selection clipboard -o"; | ||||
|     rm = "echo USE TRASH, FOOL"; | ||||
|     trash = "trash-put"; | ||||
| 
 | ||||
|     # task warrior | ||||
|     t = "task"; | ||||
|     # TODO: make blocked a context? | ||||
|     t = "task -BLOCKED"; | ||||
|     tun = "task -BLOCKED -wait"; | ||||
|     tr = "task newest"; | ||||
|     tu = "task unblocked -wait"; | ||||
|     tl = "task list"; | ||||
|     ta = "task add"; | ||||
|     tn = "task-note"; | ||||
|  | @ -204,13 +210,14 @@ | |||
|     nr = "np remove"; | ||||
|     ns = "n search --no-update-lock-file"; | ||||
|     nf = "n flake"; | ||||
|     nfl = "nf lock"; | ||||
|     nepl = "n repl '<nixpkgs>'"; | ||||
|     srch = "ns nixos"; | ||||
|     orch = "ns override"; | ||||
|     nrb = "cd /tmp; sudo nixos-rebuild switch --flake '/etc/nixos/#curve'; cd $OLDPWD"; | ||||
|     nrt = "cd /tmp; sudo nixos-rebuild test --flake '/etc/nixos/#curve'; cd $OLDPWD"; | ||||
|     ned = "cd /etc/nixos; vim"; | ||||
|     ncd = "cd  /etc/nixos"; | ||||
|     ned = "cd /etc/nixos; vim; cd $OLDPWD"; | ||||
|     ncd = "cd /etc/nixos"; | ||||
|     mn = '' | ||||
|       manix "" | grep '^# ' | sed 's/^# \(.*\) (.*/\1/;s/ (.*//;s/^# //' | sk --preview="manix '{}'" | xargs manix | ||||
|     ''; | ||||
|  | @ -239,6 +246,7 @@ | |||
|     # quick ssh | ||||
|     kssh = "kitten +kitty ssh"; | ||||
|     sm = "ssh 10.0.69.4"; # box over wireguard | ||||
|     smm = "ssh mossnet.lan"; # box regular | ||||
|     ss = "ssh sealight.xyz"; # helix | ||||
|     sc = "ssh lakhwara.com"; # cube | ||||
|   }; | ||||
|  |  | |||
|  | @ -27,7 +27,7 @@ def write_note(task_id: int): | |||
| 
 | ||||
|     notes_dir = os.path.expanduser(NOTES_DIR) | ||||
|     os.makedirs(notes_dir, exist_ok=True) | ||||
|     notes_basename = f"{task_uuid}.md" | ||||
|     notes_basename = f"{task_uuid}.wiki" | ||||
|     notes_file = os.path.join(notes_dir, notes_basename) | ||||
|     logging.debug(f"Notes file is {notes_file}") | ||||
| 
 | ||||
|  | @ -49,6 +49,10 @@ def write_note(task_id: int): | |||
|     os.execlp(EDITOR, EDITOR, notes_file) | ||||
| 
 | ||||
| 
 | ||||
| def update_task(task_id: int): | ||||
|     os.popen(f"task {task_id} modify +note") | ||||
| 
 | ||||
| 
 | ||||
| if __name__ == "__main__": | ||||
|     parser = argparse.ArgumentParser(description="Write Taskwarrior notes") | ||||
|     parser.add_argument('task_id', metavar='ID', type=int, help="ID of the task to note") | ||||
|  |  | |||
|  | @ -28,7 +28,7 @@ taskd.credentials=mossnet\/anish\/1647259c-e340-405c-a38b-11ac18e34688 | |||
| #include /nix/store/nv662d85k32kkpqidrj64qy1lnihac4c-taskwarrior-2.5.3/share/doc/task/rc/dark-red-256.theme | ||||
| #include /nix/store/nv662d85k32kkpqidrj64qy1lnihac4c-taskwarrior-2.5.3/share/doc/task/rc/dark-green-256.theme | ||||
| #include /nix/store/nv662d85k32kkpqidrj64qy1lnihac4c-taskwarrior-2.5.3/share/doc/task/rc/dark-blue-256.theme | ||||
| #include /nix/store/nv662d85k32kkpqidrj64qy1lnihac4c-taskwarrior-2.5.3/share/doc/task/rc/dark-violets-256.theme | ||||
| include /nix/store/nv662d85k32kkpqidrj64qy1lnihac4c-taskwarrior-2.5.3/share/doc/task/rc/dark-violets-256.theme | ||||
| #include /nix/store/nv662d85k32kkpqidrj64qy1lnihac4c-taskwarrior-2.5.3/share/doc/task/rc/dark-yellow-green.theme | ||||
| #include /nix/store/nv662d85k32kkpqidrj64qy1lnihac4c-taskwarrior-2.5.3/share/doc/task/rc/dark-gray-256.theme | ||||
| #include /nix/store/nv662d85k32kkpqidrj64qy1lnihac4c-taskwarrior-2.5.3/share/doc/task/rc/dark-gray-blue-256.theme | ||||
|  | @ -44,3 +44,24 @@ report._reviewed.description=Tasksh review report.  Adjust the filter to your ne | |||
| report._reviewed.columns=uuid | ||||
| report._reviewed.sort=reviewed+,modified+ | ||||
| report._reviewed.filter=( reviewed.none: or reviewed.before:now-6days ) and ( +PENDING or +WAITING ) | ||||
| report.list.columns=id,priority,project,tags,recur.indicator,scheduled.countdown,due,until.remaining,description.count | ||||
| report.list.labels=ID,P,Project,Tags,R,Sch,Due,Until,Description | ||||
| urgency.user.project.wait.coefficient=-10.0 | ||||
| urgency.user.project.craft.coefficient=1.9 | ||||
| urgency.user.tag.think.coefficinent=-7.0 | ||||
| urgency.user.tag.glam.coefficinent=-1.3 | ||||
| report.unblocked.labels=ID,Deps,Proj,Tags,Due,Active,Description | ||||
| report.unblocked.columns=id,depends,project,tags,due,start.active,description | ||||
| report.next.labels=ID,Active,Deps,P,Project,Tag,Recur,S,Due,Until,Description,Urg | ||||
| report.next.columns=id,start.age,depends,priority,project,tags,recur,scheduled.countdown,due.relative,until.remaining,description,urgency | ||||
| color.project.chores=blue | ||||
| color.tag.dev=cyan | ||||
| color.project.craft=green | ||||
| color.tag.purchase=rgb411 | ||||
| color.tag.next=black on yellow | ||||
| color.sync.rejected=red | ||||
| color.blocked=color10 on rgb101 | ||||
| color.blocking=red | ||||
| # color.tag.ops=rgb032 | ||||
| color.project.none=rgb553 | ||||
| color.footnote=yellow | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue