emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Florian Lindner" <mailinglists@xgm.de>
To: emacs-orgmode@gnu.org
Subject: org-timer-start at specified time stamp
Date: Wed, 28 Jul 2021 16:47:14 +0200	[thread overview]
Message-ID: <38-61016e00-b-203b4540@108991261> (raw)

Hello,

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



                 reply	other threads:[~2021-07-28 14:48 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=38-61016e00-b-203b4540@108991261 \
    --to=mailinglists@xgm.de \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

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).