From mboxrd@z Thu Jan 1 00:00:00 1970 From: Oleh Subject: Re: Get to next NEXT headline with one key Date: Fri, 7 Mar 2014 15:44:02 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41119) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WLw0K-0005fO-7S for emacs-orgmode@gnu.org; Fri, 07 Mar 2014 09:44:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WLw0J-0001Xo-8V for emacs-orgmode@gnu.org; Fri, 07 Mar 2014 09:44:04 -0500 Received: from mail-wg0-x22f.google.com ([2a00:1450:400c:c00::22f]:51500) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WLw0J-0001Xi-1Y for emacs-orgmode@gnu.org; Fri, 07 Mar 2014 09:44:03 -0500 Received: by mail-wg0-f47.google.com with SMTP id x12so5032849wgg.18 for ; Fri, 07 Mar 2014 06:44:02 -0800 (PST) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Giacomo M Cc: emacs-orgmode@gnu.org Hi Giacomo, > Sorry for having been ambiguous, I meant the next headline with a "NEXT" > todo keyword. If you're feeling adventurous, you can try my new minor mode: https://github.com/abo-abo/worf. It's basically the same thing as speed commands, except it's got different keys and different commands. And commands work from start of #+... as well. Here's how I've implemented the functionality that you want: "j"/"k" are bound move down/up just like in vim, but they move by headings or #+ markers. But "K" can change their behavior temporarily: it will prompt you for a char that corresponds to a keyword: t - TODO d - DONE n - NEXT c - CANCELLED After a keyword is set, "j"/"k" will move by this keyword instead, until any command other than "j"/"k" is issued (for instance "m", which reveals heading). After that "j"/"k" will return to their regular behavior. As an example: So to move to the next NEXT, you can issue "Knj". One NEXT down after this: "j". Five NEXTs down: "5j". Back to the first NEXT: "6k". Same thing, but with DONE: So to move to the next DONE, you can issue "Kdj". One DONE down after this: "j". Five NEXTs down: "5j". Back to the first DONE: "6k". And if you're trying out the mode, make sure to try "g" and "h" - those are my two favorites. `helm` and `ace-jump-mode` respectively are required in order for these commands to work. I'm planning to add the package to MELPA, so the dependencies would be downloaded automatically, but I don't want to add it until I've assigned all the alphanumeric keys:) regards, Oleh