From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Feature suggestion: context sensitive movement Date: Fri, 19 Jun 2009 08:17:06 +0200 Message-ID: <62CD457A-F0C3-4BDB-B6FA-CD707C2D43AF@gmail.com> References: <20524da70906181254y5fc43f9dh564f8aa0fe3c6a59@mail.gmail.com> Mime-Version: 1.0 (Apple Message framework v935.3) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MHY2y-0008BM-MZ for emacs-orgmode@gnu.org; Fri, 19 Jun 2009 02:58:00 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MHY2u-00089i-04 for emacs-orgmode@gnu.org; Fri, 19 Jun 2009 02:57:59 -0400 Received: from [199.232.76.173] (port=56319 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MHY2t-00089f-NU for emacs-orgmode@gnu.org; Fri, 19 Jun 2009 02:57:55 -0400 Received: from mx20.gnu.org ([199.232.41.8]:12449) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MHY2s-000432-Vx for emacs-orgmode@gnu.org; Fri, 19 Jun 2009 02:57:55 -0400 Received: from mail-ew0-f210.google.com ([209.85.219.210]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MHY2s-0001MD-7h for emacs-orgmode@gnu.org; Fri, 19 Jun 2009 02:57:54 -0400 Received: by mail-ew0-f210.google.com with SMTP id 6so2087580ewy.42 for ; Thu, 18 Jun 2009 23:57:54 -0700 (PDT) In-Reply-To: <20524da70906181254y5fc43f9dh564f8aa0fe3c6a59@mail.gmail.com> 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: Samuel Wales Cc: emacs-orgmode@gnu.org On Jun 18, 2009, at 9:54 PM, Samuel Wales wrote: > Others have pointed out the relevant commands. Here are some possible > bindings for you. > > What I do is bind c-m-arrow, analogous to the way I bind them in Lisp. > Maybe you will find those bindings useful. The relevant insight is > trees -- both Lisp and outlines instantiate them. > > Would be great if they worked on plain list items also, as if those > items were headlines. > > Are there any functions to navigate plain lists? org-beginning-of-item org-end-of-item org-next-item org-previous-item org-beginning-of-item-list You could make you bindings below work for lists as well by checking context with org-at-item-p ;; first line only org-in-item-p ;; does not have to be first line org-at-heading-p HTH - Carsten > > (define-key org-mode-map [(control meta left)] > 'outline-backward-same-level) > (define-key org-mode-map [(control meta right)] > 'outline-forward-same-level) > (define-key org-mode-map [(control meta up)] > 'outline-previous-visible-heading) > (define-key org-mode-map [(control meta down)] > 'outline-next-visible-heading) > ;;in gnu lisp, there is no separate up as i have. ud change > level. lr go > ;;back and forward at the same level. sounds simple in principle. > ;;however, that makes it hard to go to the previous visible heading > (or > ;;last element of prev list in lisp): you have to do up, left, > down, right > ;;repeat. > ;; > ;;upshot: my way is intuitive. ud goes ud, lr goes same level, ret > ;;goes up. > (define-key org-mode-map [(control meta return)] > ;;'invisible-ok > 'outline-up-heading) > > > On 2009-06-18, Rick Moynihan wrote: >> I was just thinking that often I want to jump around items in org- >> mode >> more quickly than I do at present, depending on the context of the >> point. >> >> e.g. >> >> * Foo >> blah blah blah >> * Bar | >> blah blah blah >> * Baz >> >> Assuming the point is located at | I might want to quickly jump to >> previous headings by pushing CTRL-/. >> >> Having this also occur when the point is located within a list would >> be nice too. >> >> Does anyone else think this is a good idea? Or is this another >> feature which is already implemented, that I'm not aware of? :-) >> >> Thanks again, >> >> R. >> >> >> _______________________________________________ >> Emacs-orgmode mailing list >> Remember: use `Reply All' to send replies to the list. >> Emacs-orgmode@gnu.org >> http://lists.gnu.org/mailman/listinfo/emacs-orgmode >> > > > -- > Myalgic encephalomyelitis denialism is causing death and severe > suffering, > worse than MS. Conflicts of interest are destroying research. / > You/ can > get the disease at any time permanently. Do science and justice > matter to > you? http://www.meactionuk.org.uk/What_Is_ME_What_Is_CFS.htm > > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode