From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo Alekseyev Subject: Improving org-goto isearch Date: Sat, 25 Dec 2010 01:34:20 -0800 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from [140.186.70.92] (port=36330 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PWQW6-0006Gf-VU for emacs-orgmode@gnu.org; Sat, 25 Dec 2010 04:34:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PWQW5-0005Dr-9n for emacs-orgmode@gnu.org; Sat, 25 Dec 2010 04:34:22 -0500 Received: from mail-fx0-f41.google.com ([209.85.161.41]:34802) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PWQW5-0005Db-3L for emacs-orgmode@gnu.org; Sat, 25 Dec 2010 04:34:21 -0500 Received: by fxm12 with SMTP id 12so1666444fxm.0 for ; Sat, 25 Dec 2010 01:34:20 -0800 (PST) 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: emacs-orgmode@gnu.org I use org-goto to quickly jump to a heading that I know contains a certain word. More often than not, it's a 2nd, 3rd, ... level heading. I've been relying on org-goto for many months, but both of the current interfaces leave something to be desired. Let's say I want to be on heading FOO. Right now, I am looking at the outline headings+children tree. I see FOO somewhere in the hierarchy. Now, my options are: C-c C-j, the default interface, which spawns a new temp buffer; it overtakes my split-screen workspace (intrusive and potentially slow). Then I have to isearch for FOO and hit C-s until I land on the correct heading. In the process, the intermediate headings that contain FOO will be unfolded (intrusive). My second option is C-u C-c C-j, the ido/path completion interface (which only functions provided (setq org-outline-path-complete-in-steps nil) is set). Now, the outline looks completely different because it's all thrown in one big pile in the minibuffer. I type FOO, but as luck has it, I have 10 headings that contain FOO, so I either have to C-s a bunch of times to cycle through them, or type out the whole tree hierarchy that led to it; when you make a typo, ido often slows to a crawl... It can get annoying. Here is what I would like to see: the default interface of org-goto, with the following changes: (a) don't bother with the temp buffer at all. If a temp buffer absolutely has to be created, then don't mess with the layout of the windows; just let it replace the working org-buffer window. (b) when isearching through headings, don't unfold things that are folded. In other words, I simply want the capability to isearch through headings in an org buffer without messing with its folding state. Seems like it should be simpler, implementation-wise, than the current org-goto default, and potentially faster and friendlier. Of course, given the vastness of org-mode options, there's a nonzero chance that this functionality already exists -- it's a rather sensible workflow, IMO. If so, do point me to it. If not, please consider implementing it :) --Leo