[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] navigate between source code blocks

From: Oleh Krehel
Subject: Re: [O] navigate between source code blocks
Date: Fri, 01 May 2015 17:13:28 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

Leo Ufimtsev <address@hidden> 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:

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:)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]