emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-timer-start at specified time stamp
@ 2021-07-28 14:47 Florian Lindner
  0 siblings, 0 replies; only message in thread
From: Florian Lindner @ 2021-07-28 14:47 UTC (permalink / raw)
  To: emacs-orgmode


frequently, when taking notes at a meeting with org-timer active, I happened to forget to start the timer at the beginning of the meeting:

* Meeting
Start: <2021-07-30 Fri 15:37>

- 0:00:05 :: started the timer to late
- 0:00:18 :: want to set zero to the time above 15:37
- 0:00:34 :: how do so?

The documentation of org-timer-start says:

> Set the starting time for the relative timer to now.
> When called with prefix argument OFFSET, prompt the user for an offset time,
> with the default taken from a timer stamp at point, if any.
> If OFFSET is a string or an integer, it is directly taken to be the offset
> without user interaction.

This is about a timer stamp, not a timestamp.  Of course, it's possible, but to get the offset, I need to compute the amount of time from timer start to meeting start.

> When called with a double prefix arg, all timer strings in the active
> region will be shifted by a specific amount.  You will be prompted for
> the amount, with the default to make the first timer string in
> the region 0:00:00.

My proposal is to enhance C-u org-timer-start to also determine if it is located at a timestamp and use that as zero time.

Furthermore C-u C-u org-timer-start also can accept a timestamp and shift the region as if the timer was started at that time.

All that requires to distinguish between a timestamp and a timestamp. For the first part, it is possible, as the timestamp includes a date, for the second part it's more hairy, as 15:37 could be a shift by 15m and 37s or the timestamp of 15:37 (3:37 pm).

Alternatively, a new function can be introduced that manipulated the the running timer accordingly.

What do you think about that proposal? I am happy to work on that myself, but probably need some assistance from you!

Best, Florian

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-07-28 14:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-07-28 14:47 org-timer-start at specified time stamp Florian Lindner

Code repositories for project(s) associated with this public inbox


This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).