[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Orgmode] [PATCH] Proposed command: org-agenda-clock-goto
From: |
Bastien |
Subject: |
Re: [Orgmode] [PATCH] Proposed command: org-agenda-clock-goto |
Date: |
Wed, 04 Aug 2010 11:54:25 +0200 |
User-agent: |
Gnus/5.110011 (No Gnus v0.11) Emacs/23.2 (gnu/linux) |
Bastien <address@hidden> writes:
>>From the agenda, I often want to jump to the currently clocking task
> without leaving the agenda buffer.
>
> The attached patch contains a function that does so.
>
> Would that be useful to anyone else?
>
> If so, any suggestion for a keybinding?
I'm thinking of using "J" as a keybinding for the following command
in the agenda buffer:
--8<---------------cut here---------------start------------->8---
(defun org-agenda-clock-goto ()
"Jump to the currently clocked in task within the agenda."
(interactive)
(let (pos)
(mapc (lambda (o)
(if (eq (overlay-get o 'type) 'org-agenda-clocking)
(setq pos (overlay-start o))))
(overlays-in (point-min) (point-max)))
(if pos (goto-char pos))))
--8<---------------cut here---------------end--------------->8---
For now `J' and `C-c C-x C-j' do the same thing: they jump to the
location of the current/last running clock.
After this change `J' would jump on the entry in the agenda buffer
while `C-c C-x C-j' would jump to the entry itself.
Does that break anyone habit?
--
Bastien
- [Orgmode] [PATCH] Proposed command: org-agenda-clock-goto, Bastien, 2010/08/01
- Re: [Orgmode] [PATCH] Proposed command: org-agenda-clock-goto,
Bastien <=
- Re: [Orgmode] [PATCH] Proposed command: org-agenda-clock-goto, Noorul Islam, 2010/08/06
- Re: [Orgmode] [PATCH] Proposed command: org-agenda-clock-goto, Bastien, 2010/08/06
- [Orgmode] Re: [PATCH] Proposed command: org-agenda-clock-goto, Bernt Hansen, 2010/08/06
- [Orgmode] Re: [PATCH] Proposed command: org-agenda-clock-goto, Bastien, 2010/08/08
- [Orgmode] Re: [PATCH] Proposed command: org-agenda-clock-goto, Bernt Hansen, 2010/08/08
- Re: [Orgmode] Re: [PATCH] Proposed command: org-agenda-clock-goto, Carsten Dominik, 2010/08/09
- Re: [Orgmode] Re: [PATCH] Proposed command: org-agenda-clock-goto, Bastien, 2010/08/11
- Re: [Orgmode] Re: [PATCH] Proposed command: org-agenda-clock-goto, Carsten Dominik, 2010/08/11
- Re: [Orgmode] Re: [PATCH] Proposed command: org-agenda-clock-goto, Bastien, 2010/08/11
- Re: [Orgmode] Re: [PATCH] Proposed command: org-agenda-clock-goto, Noorul Islam K M, 2010/08/11