From 16061d0f85ffa98c18adf941ff6e79a5b40d45ef Mon Sep 17 00:00:00 2001 From: contrapunctus Date: Sun, 13 Feb 2022 16:03:02 +0530 Subject: [PATCH] Add Third Time notes --- TODO.org | 14 +++++++++----- elisp/chronometrist-third.org | 2 ++ 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/TODO.org b/TODO.org index d2cb667..0e986dd 100644 --- a/TODO.org +++ b/TODO.org @@ -930,6 +930,11 @@ Additional rules: + /Avoid taking other unearned breaks/ if possible — so try to do personal tasks during normal or big breaks, or before/after your work day. #+END_QUOTE +Example flow +1. work for 30m +2. clock out - add 10m to =break-time= +3. clock in after a 5m break - subtract 5m from =break-time= + 1. [X] =chronometrist-third-fraction= 2. [X] =chronometrist-third-break-time= 3. [X] on clock out, increment =break-time= and start timed notification @@ -947,8 +952,7 @@ Extras 3. handle user edits to the database * last record modified - ? * remove last record - ? - -Example flow -1. work for 30m -2. clock out - add 10m to =break-time= -3. clock in after a 5m break - subtract 5m from =break-time= + * example - interval extended + 1. work 10 minutes and clock out - +3m break time + 2. edit stop time to add +20 minutes of work (30m total) + * compare with old data in hash table - decrement break time added by old plist, increment break time added by new plist diff --git a/elisp/chronometrist-third.org b/elisp/chronometrist-third.org index 940b8e1..1a40937 100644 --- a/elisp/chronometrist-third.org +++ b/elisp/chronometrist-third.org @@ -48,6 +48,8 @@ #+END_SRC ** TODO working-hours :custom:variable: +Supporting multiple ranges per day may be a little overkill - from my reading of the Third Time post, my understanding is that each day has one large working hours range which includes all breaks. That would mean you really /don't/ want more than one range... + #+BEGIN_SRC emacs-lisp (defcustom chronometrist-third-working-hours nil "User's working hours for today.