From mboxrd@z Thu Jan 1 00:00:00 1970 From: Samuel Wales Subject: Re: Feature suggestion: context sensitive movement Date: Thu, 18 Jun 2009 12:54:20 -0700 Message-ID: <20524da70906181254y5fc43f9dh564f8aa0fe3c6a59@mail.gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MHNgs-0006Lf-0s for emacs-orgmode@gnu.org; Thu, 18 Jun 2009 15:54:30 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MHNgm-0006IT-L4 for emacs-orgmode@gnu.org; Thu, 18 Jun 2009 15:54:28 -0400 Received: from [199.232.76.173] (port=49008 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MHNgm-0006II-HN for emacs-orgmode@gnu.org; Thu, 18 Jun 2009 15:54:24 -0400 Received: from mx20.gnu.org ([199.232.41.8]:50473) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MHNgm-0007qr-2S for emacs-orgmode@gnu.org; Thu, 18 Jun 2009 15:54:24 -0400 Received: from mail-px0-f176.google.com ([209.85.216.176]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MHNgk-0005gw-Ka for emacs-orgmode@gnu.org; Thu, 18 Jun 2009 15:54:22 -0400 Received: by pxi6 with SMTP id 6so1381708pxi.14 for ; Thu, 18 Jun 2009 12:54:20 -0700 (PDT) In-Reply-To: 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: Rick Moynihan Cc: emacs-orgmode@gnu.org 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? (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