Can you explain how the logbook drawer works (for you)?
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
Alexander Fu
As the title said. Would you consider adding the ability to interact with the logbook drawer and clock-in and out tasks?
5 people like this idea