[{"data":1,"prerenderedAt":175},["ShallowReactive",2],{"\u002Ftlt-2025.03.04-nerd-snipe-task-time-tracking":3},{"id":4,"title":5,"body":6,"createdAt":161,"description":162,"draft":163,"extension":164,"image":33,"mastodonThread":165,"meta":166,"navigation":167,"path":168,"seo":169,"stem":170,"tags":171,"updatedAt":161,"__hash__":174},"content\u002FTLT - 2025.03.04 - Nerd Snipe - Task time tracking.md","Nerd Snipe - Task time tracking",{"type":7,"value":8,"toc":155},"minimark",[9,27,34,43,48,51,74,78,97,107,111,130,135,141],[10,11,12,13,20,21,26],"p",{},"Since I'm going some consulting work I have to do a bit of time tracking. And you know what that means! Playing with my ",[14,15,19],"a",{"href":16,"rel":17},"https:\u002F\u002Ftaskwarrior.org\u002F",[18],"nofollow","taskwarrior"," and ",[14,22,25],{"href":23,"rel":24},"https:\u002F\u002Ftimewarrior.net\u002F",[18],"timewarrior"," config!!!",[10,28,29],{},[30,31],"img",{"alt":32,"src":33},"stopwatch oil painting","img\u002Fstopwatch_oil_painting.png",[10,35,36],{},[37,38,39],"small",{},[40,41,42],"i",{},"openai: Generate an image of a stopwatch in the style of an impressionist oil painting with thick bold brush strokes",[44,45,47],"h2",{"id":46},"what-would-you-say-you-do-here","What would you say you do here?",[10,49,50],{},"It's pretty easy for me to focus on something but it takes effort to make sure that I'm focused on the right thing, don't forget stuff, and keep track of what it is that I did. I have been using taskwarrior for quite a while, I even have it integrated in with my gmail-starred emails which is handy.",[10,52,53,54,57,58,61,62,65,66,69,70,73],{},"But I also need to keep track of billable hours. There is a separate but corresponding ",[55,56,25],"code",{}," project for this, and a hook that ties them together. So once configured, if you do ",[55,59,60],{},"task 123 start"," it will start the clock for task 123, and if you do either ",[55,63,64],{},"task 123 stop"," or ",[55,67,68],{},"task 123 done"," then it will stop the clock. You can use ",[55,71,72],{},"timew"," reports to see the total time.",[44,75,77],{"id":76},"start-the-clock-immediately","Start the clock immediately",[10,79,80,81,86,87,92,93,96],{},"Sometimes, often, I want to note a task and immediately begin working on it. I modified the ",[14,82,85],{"href":83,"rel":84},"https:\u002F\u002Fgithub.com\u002FGothenburgBitFactory\u002Ftimewarrior\u002Fblob\u002Fdevelop\u002Fext\u002Fon-modify.timewarrior",[18],"on-modify.timewarrior"," to be a ",[14,88,91],{"href":89,"rel":90},"https:\u002F\u002Fgist.github.com\u002Fawwaiid\u002F6963af7895005f7fa839b1663ec48a7e",[18],"on-add.timewarrior"," and then add this alias into ",[55,94,95],{},".taskrc",":",[98,99,104],"pre",{"className":100,"code":102,"language":103},[101],"language-text","alias.doing = add start:now\n","text",[55,105,102],{"__ignoreMap":106},"",[44,108,110],{"id":109},"only-one-clock-stop-it","Only One Clock. Stop \"it\".",[10,112,113,114,116,117,119,120,123,124,126,127,129],{},"While there might be fancier ways to use ",[55,115,25],{},", how I'm using it basically assumes there is only one task happening at a time. If you ",[55,118,64],{}," then it stops the clock. If you ",[55,121,122],{},"task 456 start"," then it stops the old one (in ",[55,125,25],{},", not in ",[55,128,19],{},") and starts the new one. Fine. But let's make a handy shorthand for stopping\u002Ffinishing the \"current\" task.",[10,131,132,133,96],{},"Altogether, I now have this in my ",[55,134,95],{},[98,136,139],{"className":137,"code":138,"language":103},[101],"# These use on-add.timewarrior and on-modify.timewarrior hooks\n\n# Shortcuts to both add and start\nalias.doing = add start:now\n\n# Shortcuts to stop or complete the currently started\nalias.stopit = start.not: stop\nalias.doneit = start.not: done\n",[55,140,138],{"__ignoreMap":106},[10,142,143,144,147,148,65,151,154],{},"Now I can ",[55,145,146],{},"task doing \"working on something\""," and then either ",[55,149,150],{},"task stopit",[55,152,153],{},"task doneit","!",{"title":106,"searchDepth":156,"depth":156,"links":157},2,[158,159,160],{"id":46,"depth":156,"text":47},{"id":76,"depth":156,"text":77},{"id":109,"depth":156,"text":110},"2025-03-04","Since I'm going some consulting work I have to do a bit of time tracking. And you know what that means! Playing with my taskwarrior and timewarrior config!!!",false,"md",null,{},true,"\u002Ftlt-2025.03.04-nerd-snipe-task-time-tracking",{"title":5,"description":162},"TLT - 2025.03.04 - Nerd Snipe - Task time tracking",[172,173],"blog","nerdsnipe","hmFK8s6YHsLTQDuPoN0JtCMYKKb7rtjlodWByDnNgBg",1778988315041]