all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* org-mode: how to change the way headings are searched
@ 2016-08-17 10:52 Paul K
  2016-09-14  7:09 ` Eric S Fraga
  0 siblings, 1 reply; 2+ messages in thread
From: Paul K @ 2016-08-17 10:52 UTC (permalink / raw)
  To: help-gnu-emacs

Hallo people.

I'm using following org-mode version:
8.3.5

example:
I want to search through "dog" string within 1st level headings of my .org file.

I've written simple function to do this and bound it to C-xS:

(define-key org-mode-map "\C-xS" (lambda () (interactive)
                                                         (let
((helm-org-headings-max-depth 1))
                                                           ;; we want
to search through top level headings only.

(helm-org-in-buffer-headings))))


now, after issuing C-xS and writing "dog" string, I get list of all
headings that contain "dog" string (1), which is ok, but I also get
list of strings with any "d" "o" "g" existence, where these three
digits are not necessarilly adjacent (2).

The invonvinient thing is that search result window presents the
headings of group (1) intermixed with headings from group (2).

How can I make it present group (1) BEFORE group (2) or,
alternativelly disable the group (2) presentation?

regards



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-09-14  7:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-17 10:52 org-mode: how to change the way headings are searched Paul K
2016-09-14  7:09 ` Eric S Fraga

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.