-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: option to refile the timer history as org-clock entry #13
Comments
Yeah, I wasn't aware of |
@aster-hu As a brief example/my own working example I have shared mine below. I primarily use (defun my/pomm-clock-in-hook ()
(setf (alist-get 'context pomm-third-time--state)
org-clock-heading)
(cond ((string= (alist-get 'status pomm-third-time--state)
"stopped")
(pomm-third-time-start))
((string= (alist-get 'kind (alist-get 'current pomm-third-time--state))
"break")
(pomm-third-time-switch))
((string= (alist-get 'kind (alist-get 'current pomm-third-time--state))
"work")
t)
(t (pomm-third-time))))
(add-hook 'org-clock-in-hook 'my/pomm-clock-in-hook)
(defun my/pomm-clock-out-hook ()
(let ((input (string (read-char "Would you like to change the timer?\n[n]o [b]reak [s]top [m]enu"))))
(cond ((string= input "b")
(pomm-third-time-switch))
((or (string= input "s") (string= input "S"))
(pomm-third-time-stop))
((string= input "m")
(pomm-third-time))
(t t))))
(add-hook 'org-clock-out-hook 'my/pomm-clock-out-hook 90 nil) |
@Sabicool Interesting. I think I'll add a link to this to the README. I've been experimenting with integrating I've described this in more detail in the README: https://github.com/SqrtMinusOne/pomm.el?tab=readme-ov-file#usage-with-org-clock |
I wonder if with that approach. I'm working on "task A", clock in and then if I finish it at the end of that pomodoro, that it will run |
I've actually taken that into account: if a pomodoro ends, The integration may be suboptimal because it requires starting both pomodoro and |
It would be nice if the work history can be refiled as org-clock entry under todo items.
So entries like this
can be converted to an org-clock entry under a TODO item:
This will be very useful to incorporate
pomm.el
into org's clock table.The text was updated successfully, but these errors were encountered: