From mboxrd@z Thu Jan 1 00:00:00 1970 From: Oleh Krehel Subject: Re: navigate between source code blocks Date: Fri, 01 May 2015 17:13:28 +0200 Message-ID: <87pp6kjppj.fsf@gmail.com> References: <9efc6ad6-1124-45f3-aa09-b017f61553c2@HUB03.ad.oak.ox.ac.uk> <2ce0b90c-8055-4780-9649-4f17be9700cd@HUB02.ad.oak.ox.ac.uk> <815421560.7826741.1430412501517.JavaMail.zimbra@redhat.com> <87a8xpo7dy.fsf@gmail.com> <1786587997.8149765.1430488523520.JavaMail.zimbra@redhat.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59688) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YoCiy-0007ii-Hz for emacs-orgmode@gnu.org; Fri, 01 May 2015 11:19:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YoCiu-00046s-BF for emacs-orgmode@gnu.org; Fri, 01 May 2015 11:19:32 -0400 Received: from mail-wi0-x22e.google.com ([2a00:1450:400c:c05::22e]:36689) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YoCiu-00046m-4N for emacs-orgmode@gnu.org; Fri, 01 May 2015 11:19:28 -0400 Received: by wizk4 with SMTP id k4so55565750wiz.1 for ; Fri, 01 May 2015 08:19:27 -0700 (PDT) In-Reply-To: <1786587997.8149765.1430488523520.JavaMail.zimbra@redhat.com> (Leo Ufimtsev's message of "Fri, 1 May 2015 09:55:23 -0400 (EDT)") 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: Leo Ufimtsev Cc: emacs-orgmode@gnu.org, Zhihao Ding Leo Ufimtsev writes: >>And it's got the best Helm implementation for navigating to > headings. > > Well, when I hear someone use the word 'best', I see it as a challenge X-D. > > I used worf-goto for a while. It's certainly amazing and on the odd occasion I still use it, but lately I've switched over to: helm-org-in-buffer-headings > > The difference is that worf-goto only looks at the specific headings (e.g the line it self), where as helm-org-in-buffer-headings searches the whole hierarchy. > > E.g if I have a structure like this: > > * Gdb > ** Break > *** on line (1) > *** on function > * Eclipse > ** Break > *** on line > *** on function > > And I search for "gdb break line", then I will not get a match with worf-goto, but helm-org-in-buffer-headings does do a match on (1). > > For example in the attached screenshot I search for "gdb cmd break". It's also smart enough to trim long headings. > > This is particularly useful for finding the deeply nested sub-items. > > from what I gather, worf doesn't have an equivalent: > https://github.com/abo-abo/worf/blob/master/worf.el > Imho it would benefit from having something of that sort in the > package. Thanks for the feedback, Leo. It's doable, but then it would be pretty much identical to helm-org-in-buffer-headings. If you or anyone else is interested, post at https://github.com/abo-abo/worf/issues. >> It just takes vi-style "hjkl" arrows, because > Emacs-style "bnpf" arrows aren't convenient. > > Well, I use the Colemak layout, so hjkl is actually not very > convenient for me :-/. Meh. Well, it's always something, isn't it :) By the way, I'm trying to go with general-purpose tools these days. Here's a link to the search that you mentioned using swiper: http://oremacs.com/download/org-mode-swiper.png. Swiper is an isearch replacement, so I could just: 1. "C-s" break -> see 38 matches. 2. "C-a" \* "SPC" -> see 9 matches. 3. "C-n" repeatedly to navigate to the one that I want. As you see, I kind of stole your notes and the org-bullets customization, so thanks for that:) Oleh