From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: FR: more flexible customization of org-agenda-custom-commands key bindings Date: Sun, 28 Oct 2007 14:42:06 +0000 Message-ID: <87ir4r2tdt.fsf@bzg.ath.cx> References: <20071016162042.GC3018@atlantic.linksys.moosehall> <20071016163623.GG3018@atlantic.linksys.moosehall> <878x60ivz9.fsf@bzg.ath.cx> <20071027134036.GG10118@atlantic.linksys.moosehall> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Im8Pk-0000li-OZ for emacs-orgmode@gnu.org; Sun, 28 Oct 2007 09:42:52 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Im8P9-0000LB-E5 for emacs-orgmode@gnu.org; Sun, 28 Oct 2007 09:42:52 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Im8P9-0000L6-7h for emacs-orgmode@gnu.org; Sun, 28 Oct 2007 09:42:15 -0400 Received: from ug-out-1314.google.com ([66.249.92.174]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Im8P8-0005j6-Mw for emacs-orgmode@gnu.org; Sun, 28 Oct 2007 09:42:15 -0400 Received: by ug-out-1314.google.com with SMTP id a2so977808ugf for ; Sun, 28 Oct 2007 06:42:14 -0700 (PDT) In-Reply-To: <20071027134036.GG10118@atlantic.linksys.moosehall> (Adam Spiers's message of "Sat, 27 Oct 2007 14:40:36 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Adam Spiers 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