emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Bastien <bzg@altern.org>
To: emacs-orgmode@gnu.org
Subject: Re: FR: more flexible customization of org-agenda-custom-commands key bindings
Date: Sun, 28 Oct 2007 14:42:06 +0000	[thread overview]
Message-ID: <87ir4r2tdt.fsf@bzg.ath.cx> (raw)
In-Reply-To: <20071027134036.GG10118@atlantic.linksys.moosehall> (Adam Spiers's message of "Sat, 27 Oct 2007 14:40:36 +0100")

Adam Spiers <orgmode@adamspiers.org> writes:

>> If the idea is just to re-display the *Org agenda* buffer
>
> Correct.  It's effectively a more generic version of "Press `C-u r' to
> search again with new search string".

So why not just make `C-u r' call the *agenda commands* buffer back when
the current agenda view is produced by (org-agenda-list)?

Then `C-u r' will have the same meaning across all possible types of
agenda views, i.e. call `org-agenda-redo' and wait for more information
on how to refine the current view.  Which means: call back `org-agenda'
if the last command was `org-agenda-list'.

>> C-x b RET is enough most of the times.
>
> That defaults to the wrong buffer for me, maybe because I'm using
> ido.el.  For me, it's important that it be bound to a single keystroke
> rather than a chord, since I want to be able to iterate over steps
> 2--5 many times and rapidly.

I think it will be hard to have a simpler keystroke than `C-x b' :)
But anyway, I guess your point is to have some Org internal command for
this function -- which would also avoid the problem with ido.el.

> I can't think of a good mnemonic for binding any of these to this
> operation.  My preferred solution would be the following, though I
> would understand if it was rejected on the grounds of being too
> disruptive to what users are used to:
>
>   - rebind 'r' to this operation, since 'redo' or 'repeat' is the most
>     obvious mnemonic,
>
>   - rebind 'g' to `org-agenda-redo', since 'g' is a universal emacs
>     keybinding meaning 'refresh the current buffer display', and
>
>   - bind 'G' to `org-agenda-toggle-time-grid', since this is a less
>     frequent operation and hence can be moved to the chord "shift-G"
>     without causing hassle.

To combine your suggestion with mine, it would be: 

- rebind 'r' to the actual behavior of `C-u r', and make this available
  for all types of agenda views.

- rebind 'g' to refresh and 'G' to `org-agenda-toggle-time-grid'.

>> But I think the idea was to process commands of the same kind
>> (i.e. belonging to the same sub-keymap) quickly.
>
> Nothing so advanced :-) But if the above solution were to be
> implemented, repeatedly rerunning a mix of sub-keymap and normal
> custom commands would be trivial, e.g. to use your example:

... Except that in my proposal, `r' would not simply call `org-agenda'
again (I think C-c a is simple enough) but rather let you recall the
last agenda command (either `org-agenda-list' or `org-todo-list' etc.)
and ask for more information (just like `C-u r' does for some agenda
types. 

-- 
Bastien

  reply	other threads:[~2007-10-28 13:42 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-16 16:20 FR: more flexible customization of org-agenda-custom-commands key bindings Adam Spiers
2007-10-16 16:36 ` Adam Spiers
2007-10-18  5:35   ` Carsten Dominik
2007-10-18  9:59     ` Bastien
2007-10-27 13:40       ` Adam Spiers
2007-10-28 14:42         ` Bastien [this message]
2007-10-30  6:06           ` Carsten Dominik
2007-10-30  8:53             ` Adam Spiers
2007-10-30 18:18             ` Bastien
2007-10-16 17:38 ` Bastien
2007-10-17 13:03 ` Bastien
2007-10-17 14:04   ` Adam Spiers
2007-10-17 22:06 ` 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=87ir4r2tdt.fsf@bzg.ath.cx \
    --to=bzg@altern.org \
    --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).