As the title said. Would you consider adding the ability to interact with the logbook drawer and clock-in and out tasks?
Can you explain how the logbook drawer works (for you)?
Support for drawers is on the roadmap which will then open up lots of possibilities - including explicit support for clocking. If people do have explicit use cases for clocking that would be interesting to hear so I can take those into account when designing this feature.[]
Ah sorry that I forget to click into the forum to follow-up.
I just wrote a temporary workaround using scheme. However, full-blown support like time-range editing and GUI interaction with logbook drawer is still much appreciated.
#+BEGIN_SRC scheme
(set! editor-toolbar-show-in-mini #t)
(define (clock-in)
(insert “:LOGBOOK:\nCLOCK: \n:END:\n”)
(goto-char (- (point) (string-length “\n:END:\n”)))
(insert (date->string (current-date) “[~Y-~m-~d ~a ~H:~M]”))
(goto-char (+ (point) (string-length “\n:END:\n”)))
)
(define (clock-out)
(insert (date->string (current-date) “–[~Y-~m-~d ~a ~H:~M]”))
(goto-char (point-max)))
(set! editor-toolbar-items ‘((“icon-time” (clock-in))
(“icon-clock” (clock-out))
(“icon-left” (backward-char))
(“icon-right” (forward-char))
(“icon-list” (insert “+ “))
(“icon-change” (show-transform-commands))
(“icon-settings” (insert-code-snippet))))
#+END_SRC
https://www.reddit.com/r/emacs/comments/a67a9l/beorg_for_ios_clocking_events_by_scripting/
Sorry for forgetting to click into the forum to follow up. I just wrote a temporary workaround. Full-blown support is still much appreciated (for example, GUI interaction with drawers and time ranges).
#+BEGIN_SRC scheme
(set! editor-toolbar-show-in-mini #t)
(define (clock-in)
(insert ":LOGBOOK:\nCLOCK: \n:END:\n")
(goto-char (- (point) (string-length "\n:END:\n")))
(insert (date->string (current-date) "[~Y-~m-~d ~a ~H:~M]"))
(goto-char (+ (point) (string-length "\n:END:\n")))
)
(define (clock-out)
(insert (date->string (current-date) "--[~Y-~m-~d ~a ~H:~M]"))
(goto-char (point-max)))
(set! editor-toolbar-items '(("icon-time" (clock-in))
("icon-clock" (clock-out))
("icon-left" (backward-char))
("icon-right" (forward-char))
("icon-list" (insert "+ "))
("icon-change" (show-transform-commands))
("icon-settings" (insert-code-snippet))))
#+END_SRC
I would really like this feature — especially if I can make shortcuts to clock in / out of a task.
I find clocking in and out in org mode somewhat cumbersome, especially if I put a laptop away. Would love to be able to easily do this from a phone