emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* C-c C-y in currently clocked header
@ 2014-10-15  9:29 Daniel Clemente
  2014-10-15 19:49 ` Marcin Borkowski
  0 siblings, 1 reply; 4+ messages in thread
From: Daniel Clemente @ 2014-10-15  9:29 UTC (permalink / raw)
  To: org-mode Mailinglist


Feature request.

**** currently clocking
	 :CLOCK:
	 CLOCK: [2014-10-15 Wed 16:06]
	 CLOCK: [2014-10-13 Mon 11:23]--[2014-10-13 Mon 11:54] =>  0:31
	 :END:

Now it's 16:26. If I put the cursor in 16:06 and press C-c C-y (org-evaluate-time-range), it would be useful to see in the minibuffer that the difference until now is 20 minutes.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: C-c C-y in currently clocked header
  2014-10-15  9:29 C-c C-y in currently clocked header Daniel Clemente
@ 2014-10-15 19:49 ` Marcin Borkowski
  2014-10-16  3:52   ` Daniel Clemente
  0 siblings, 1 reply; 4+ messages in thread
From: Marcin Borkowski @ 2014-10-15 19:49 UTC (permalink / raw)
  To: org-mode Mailinglist


On 2014-10-15, at 11:29, Daniel Clemente wrote:

> Feature request.
>
> **** currently clocking
> 	 :CLOCK:
> 	 CLOCK: [2014-10-15 Wed 16:06]
> 	 CLOCK: [2014-10-13 Mon 11:23]--[2014-10-13 Mon 11:54] =>  0:31
> 	 :END:
>
> Now it's 16:26. If I put the cursor in 16:06 and press C-c C-y (org-evaluate-time-range), it would be useful to see in the minibuffer that the difference until now is 20 minutes.

Saluton!

Are you aware that you can set org-clock-mode-line-total to 'current?
(Personally, I only discovered it before a few hours, and set it to
'today.)

Hth,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Adam Mickiewicz University

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: C-c C-y in currently clocked header
  2014-10-15 19:49 ` Marcin Borkowski
@ 2014-10-16  3:52   ` Daniel Clemente
  2014-10-16  6:58     ` Marcin Borkowski
  0 siblings, 1 reply; 4+ messages in thread
From: Daniel Clemente @ 2014-10-16  3:52 UTC (permalink / raw)
  To: org-mode Mailinglist

> >
> > **** currently clocking
> > 	 :CLOCK:
> > 	 CLOCK: [2014-10-15 Wed 16:06]
> > 	 CLOCK: [2014-10-13 Mon 11:23]--[2014-10-13 Mon 11:54] =>  0:31
> > 	 :END:
> >
> > Now it's 16:26. If I put the cursor in 16:06 and press C-c C-y (org-evaluate-time-range), it would be useful to see in the minibuffer that the difference until now is 20 minutes.
> 
> Saluton!
> 
> Are you aware that you can set org-clock-mode-line-total to 'current?
> (Personally, I only discovered it before a few hours, and set it to
> 'today.)

Yes, but you may want to see the current clocking duration independently of the settings of the current header. E.g. even if org-clock-mode-line-total==all, I want to see that my unclosed clocking amounts for 20 minutes.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: C-c C-y in currently clocked header
  2014-10-16  3:52   ` Daniel Clemente
@ 2014-10-16  6:58     ` Marcin Borkowski
  0 siblings, 0 replies; 4+ messages in thread
From: Marcin Borkowski @ 2014-10-16  6:58 UTC (permalink / raw)
  To: org-mode Mailinglist


On 2014-10-16, at 05:52, Daniel Clemente wrote:

>> >
>> > **** currently clocking
>> > 	 :CLOCK:
>> > 	 CLOCK: [2014-10-15 Wed 16:06]
>> > 	 CLOCK: [2014-10-13 Mon 11:23]--[2014-10-13 Mon 11:54] =>  0:31
>> > 	 :END:
>> >
>> > Now it's 16:26. If I put the cursor in 16:06 and press C-c C-y (org-evaluate-time-range), it would be useful to see in the minibuffer that the difference until now is 20 minutes.
>> 
>> Saluton!
>> 
>> Are you aware that you can set org-clock-mode-line-total to 'current?
>> (Personally, I only discovered it before a few hours, and set it to
>> 'today.)
>
> Yes, but you may want to see the current clocking duration independently of the settings of the current header. E.g. even if org-clock-mode-line-total==all, I want to see that my unclosed clocking amounts for 20 minutes.

Fair enough, I just wanted to make sure you knew about that variable.
(As I told, I wasn't aware of it until recently.  And the only reason I
learned about it, btw, was the thought "something like this /should/ be
possible", and it's Org-mode, after all, so obviously it was.

Notice that your proposed solution (while reasonable from the point of
view of how C-c C-y works) might be cumbersome – you'd need to go to the
place where you have the :LOGBOOK: drawer, open it, move to the first
line and hit C-c C-y.  A faster way to get the same information might be

C-c C-x C-o
[the info you wanted gets displayed in the echo area]
C-u C-c C-x C-i
1

if you don't mind splitting the clocking line in :LOGBOOK: into two.
(AFAIU, you also run into the risk of dropping one minute of clocking
time if you happen to do this at hh:mm:59 or something.)

Best,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Adam Mickiewicz University

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-10-16  6:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-15  9:29 C-c C-y in currently clocked header Daniel Clemente
2014-10-15 19:49 ` Marcin Borkowski
2014-10-16  3:52   ` Daniel Clemente
2014-10-16  6:58     ` Marcin Borkowski

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