From mboxrd@z Thu Jan 1 00:00:00 1970 From: Suvayu Ali Subject: Re: A simple way to search only headlines Date: Tue, 11 Jun 2013 14:27:57 +0200 Message-ID: <20130611122757.GB18792@kuru.dyndns-at-home.com> References: <86y5arocrz.fsf@somewhere.org> <86k3mae2mo.fsf@somewhere.org> <87mwr1egjr.fsf@berkeley.edu> <87ip1pkwco.fsf@pierrot.dokosmarshall.org> <86bo7e4dww.fsf@somewhere.org> <87d2ruktd0.fsf@pierrot.dokosmarshall.org> <86txl60zy5.fsf@somewhere.org> <87bo7di7zf.fsf@pierrot.dokosmarshall.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38425) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UmNgG-0002LH-Ms for emacs-orgmode@gnu.org; Tue, 11 Jun 2013 08:28:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UmNgB-0001qR-Nn for emacs-orgmode@gnu.org; Tue, 11 Jun 2013 08:28:08 -0400 Received: from mail-bk0-x22b.google.com ([2a00:1450:4008:c01::22b]:52647) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UmNgB-0001ps-Hd for emacs-orgmode@gnu.org; Tue, 11 Jun 2013 08:28:03 -0400 Received: by mail-bk0-f43.google.com with SMTP id jm2so2658731bkc.30 for ; Tue, 11 Jun 2013 05:28:02 -0700 (PDT) Received: from kuru.dyndns-at-home.com ([2001:610:120:3001:f2de:f1ff:fe37:c76c]) by mx.google.com with ESMTPSA id j8sm5614682bky.17.2013.06.11.05.28.00 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 11 Jun 2013 05:28:01 -0700 (PDT) Content-Disposition: inline In-Reply-To: <87bo7di7zf.fsf@pierrot.dokosmarshall.org> 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: emacs-orgmode@gnu.org On Tue, Jun 11, 2013 at 12:31:16AM -0400, Nick Dokos wrote: > "Sebastien Vauban" > writes: > > > Hi Nick, > > > > Nick Dokos wrote: > >> "Sebastien Vauban" writes: > >>> Nick Dokos wrote: > >>>> The OP probably wants this in the global keymap, rather than in the > >>>> org-mode-map: just like the agenda dispatcher C-c a, this functionality is > >>>> useful outside an org file. > >>>> > >>>> (global-set-key (kbd "C-M-h") (lambda () (interactive) (org-agenda nil "s" "<"))) > >>> > >>> Not sure to understand when this functionality would be useful outside of Org. > >>> Can you explain? > >> > >> I meant "org buffer": you might want to issue the command from an > >> arbitrary buffer, not just an org mode buffer, so the key should be > >> defined globally. > > > > I still don't understand. > > > > You understand all too well :-) I wonder if semantic search can be leveraged to achieve the same. It might open other possibilities: searching only links, list items, source blocks, ... I think you get the point. :-p In the past I have had trouble using semantic search even in traditional source code buffers, e.g. C/C++, Python, lisp, etc, but that was a long time back. Did any one else have better luck? I also have no clue how well the semantic support is for Org buffers. If I start speedbar, the first few levels of headlines are recognised automatically; maybe it is not a pipe dream to extend this to other org syntax elements? Food for thought, ;) -- Suvayu Open source is the future. It sets us free.