From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Directly search for Headlines? Date: Mon, 07 Jul 2014 17:24:41 -0400 Message-ID: <87fviczwti.fsf@alphaville.bos.redhat.com> References: <3033611404741970@web12g.yandex.ru> <87pphh19jr.fsf@alphaville.bos.redhat.com> <87r41xyofi.fsf@alphaville.bos.redhat.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35773) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X4GPJ-00076U-Hi for emacs-orgmode@gnu.org; Mon, 07 Jul 2014 17:25:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X4GPC-0000lw-Mc for emacs-orgmode@gnu.org; Mon, 07 Jul 2014 17:25:05 -0400 Received: from plane.gmane.org ([80.91.229.3]:36238) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X4GPC-0000la-Fr for emacs-orgmode@gnu.org; Mon, 07 Jul 2014 17:24:58 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1X4GPB-0006LB-6n for emacs-orgmode@gnu.org; Mon, 07 Jul 2014 23:24:57 +0200 Received: from nat-pool-bos-t.redhat.com ([66.187.233.206]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 07 Jul 2014 23:24:57 +0200 Received: from ndokos by nat-pool-bos-t.redhat.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 07 Jul 2014 23:24:57 +0200 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 Ken Mankoff writes: > On 2014-07-07 at 15:11, Nick Dokos wrote: >> Ken Mankoff writes: >> >>> On 2014-07-07 at 11:19, Nick Dokos wrote: >>>> John Durden writes: >>>> >>>>> Can you search directly for headlines in all agenda-files, with the >>>>> name of the headline, not tags? If so, how? If not, wouldn't this be >>>>> useful? >>>>> >>>> >>>> Try `s' in the agenda perhaps? >> >> Sorry, I meant `s' in the agenda dispatcher: >> >> C-c a s >> C-c a S >> > > I use the key combos you suggest all the time, but the OP wanted to just > search HEADLINES. Maybe the above methods work if you use regex and > exploit the fact that all headlines have "*" characters in them, but > this use of regex seems a bit overly complex. > Yes, I understand that, but limiting the search space with C-c a s seems to me to be a good solution for keyword searching. If there are too many results, you can then do C-s of the same keyword in the resulting results buffer and step exactly through the headlines that match. It's not hard to write a more specialized tool either. I think an application of org-map-entries could easily do what the OP wanted (although the devil *will* be in the details). The question is whether it's worth it, or whether the current tools adequately meet the need. Nick