From: Bastien <bastien.guerry@wikimedia.fr>
To: emacs-orgmode@gnu.org
Subject: Re: [PATCH] Proposed command: org-agenda-clock-goto
Date: Wed, 04 Aug 2010 11:54:25 +0200 [thread overview]
Message-ID: <87y6cm7lf2.fsf@gnu.org> (raw)
In-Reply-To: <87pqy29344.fsf@gnu.org> (Bastien's message of "Sun, 01 Aug 2010 09:57:47 +0200")
Bastien <bastien.guerry@wikimedia.fr> 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
next prev parent reply other threads:[~2010-08-04 9:54 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-01 7:57 [PATCH] Proposed command: org-agenda-clock-goto Bastien
2010-08-04 9:54 ` Bastien [this message]
2010-08-06 14:52 ` Noorul Islam
2010-08-06 17:38 ` Bastien
2010-08-06 17:54 ` Bernt Hansen
2010-08-07 8:14 ` Bastien
2010-08-07 13:22 ` Bernt Hansen
2010-08-09 6:50 ` Carsten Dominik
2010-08-11 14:24 ` Bastien
2010-08-11 22:04 ` Carsten Dominik
2010-08-11 22:13 ` Bastien
2010-08-12 3:15 ` Noorul Islam K M
2010-08-12 8:30 ` Bastien
2010-08-12 10:26 ` Noorul Islam K M
2010-08-12 9:57 ` Re: [PATCH] " Carsten Dominik
2010-08-12 11:23 ` Bernt Hansen
2010-08-12 11:34 ` Carsten Dominik
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=87y6cm7lf2.fsf@gnu.org \
--to=bastien.guerry@wikimedia.fr \
--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).