emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] FR: more flexible customization of org-agenda-custom-comma


From: Adam Spiers
Subject: Re: [Orgmode] FR: more flexible customization of org-agenda-custom-commands key bindings
Date: Sat, 27 Oct 2007 14:40:36 +0100
User-agent: Mutt/1.5.14 (2007-02-12)

Sorry for the slow replies.  I have not had time to catch up with the
backlog in my orgmode inbox recently, so I previously missed this
thread :-(

Bastien (address@hidden) wrote:
> Carsten Dominik <address@hidden> writes:
> >> 2. Once a custom command has been invoked, provide a binding for going
> >>    straight back to the *Org Agenda* buffer to invoke another one.
                             ^^^^^^^^^^^^
> > This second part I do not understand.  Please explain.

Doh, I made a braino :-(  It's probably much simpler request than I
made it sound; should read:

  | Once a custom command has been invoked, provide a binding to a
  | single keystroke for going straight back from the *Org Agenda*
  | buffer to the *Agenda Commands* buffer, in order to be able to run
  | another custom command.

An example workflow:

  1. call `org-agenda' to obtain the *Agenda Commands* buffer
  2. invoke any custom command (not necessarily a sub-keymap)
  3. do some stuff in the resulting *Org Agenda* buffer
  4. press a single-letter keystroke to switch the buffer displayed in
     the current window (i.e. the one containing *Org Agenda*) back
     to *Agenda Commands*
  5. go to step 2.

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

> 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.  According to `describe-bindings', the
following letters are still unbound in *Org Agenda*: 'e', 'k', 'u',
'v', and 'z'.  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.

> 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:

   C-c a s 1
   <do some stuff with resulting *Org Agenda* custom buffer>
   r s 2
   <do some stuff with resulting *Org Agenda* custom buffer>
   r M "match string"
   <do some stuff with resulting *Org Agenda* TODO matches buffer>
   r L
   <do some stuff with resulting timeline buffer>

and so on.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]