From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Martin Beck" Subject: How to filter agenda for Word1 OR Word2? Date: Fri, 11 Jul 2014 13:26:31 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33344) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X5YyS-0005Qf-67 for emacs-orgmode@gnu.org; Fri, 11 Jul 2014 07:26:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X5YyK-0003TC-Mt for emacs-orgmode@gnu.org; Fri, 11 Jul 2014 07:26:44 -0400 Received: from mout.web.de ([212.227.15.14]:61453) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X5YyK-0003Rm-ES for emacs-orgmode@gnu.org; Fri, 11 Jul 2014 07:26:36 -0400 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-mailinglist
I have a search result (created by a search agenda C-C a s) and I want to narrow it down further with additional criteria.
I tried to use the "=" key for "Narrow to entries matching regexp", but I did not find out how to combine several terms in here.
 
As long as I only enter one word, it works. But if I want to filter for criteria like
 
Word1 OR Word2
or (Word1 OR Word2) AND Word3
or (Word1 OR Word2) AND NOT (Word3 OR Word4)
 
I get no results just by entering
e.g. Word1|Word2
or Word1&Word2
 
I'm sure this is trivial, but I'm not an expert in regular expressions and currently don't see how to solve that.
:-(
 
Thanks a lot and kind regards
 
Martin
From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexander Baier Subject: Re: How to filter agenda for Word1 OR Word2? Date: Sat, 12 Jul 2014 01:29:02 +0200 Message-ID: <87egxrpj9d.fsf@mailbox.org> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51698) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X5kFh-0000m3-R6 for emacs-orgmode@gnu.org; Fri, 11 Jul 2014 19:29:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X5kFb-0005y7-Ij for emacs-orgmode@gnu.org; Fri, 11 Jul 2014 19:29:17 -0400 Received: from mx2.mailbox.org ([80.241.60.215]:38661) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X5kFb-0005we-AU for emacs-orgmode@gnu.org; Fri, 11 Jul 2014 19:29:11 -0400 In-Reply-To: (Martin Beck's message of "Fri, 11 Jul 2014 13:26:31 +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: Martin Beck Cc: emacs orgmode-mailinglist On 2014-07-11 13:26 Martin Beck wrote: > I have a search result (created by a search agenda C-C a s) and I > want to narrow it down further with additional criteria. > I tried to use the "=" key for "Narrow to entries matching regexp", > but I did not find out how to combine several terms in here. > > As long as I only enter one word, it works. But if I want to filter > for criteria like > > Word1 OR Word2 > or (Word1 OR Word2) AND Word3 > or (Word1 OR Word2) AND NOT (Word3 OR Word4) > > I get no results just by entering > e.g. Word1|Word2 > or Word1&Word2 > > I'm sure this is trivial, but I'm not an expert in regular > expressions and currently don't see how to solve that. > :-( Using \(Word1\)\|\(Word2\) works for me. If you find it troublesome to type a lot of these escaped parens, you might want to try smartparens-mode for auto insertion of the closing _escaped_ paren. As an example, if you type "\(", smartparens will automatically insert "\)" after point. You can even navigate over these groups via sexps commands. HTH, -- Alexander Baier From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thorsten Jolitz Subject: Re: How to filter agenda for Word1 OR Word2? Date: Sat, 12 Jul 2014 10:18:19 +0200 Message-ID: <8761j3m1mc.fsf@gmail.com> References: <87egxrpj9d.fsf@mailbox.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41093) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X5sW1-0005BH-OH for emacs-orgmode@gnu.org; Sat, 12 Jul 2014 04:18:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X5sVv-00011w-GD for emacs-orgmode@gnu.org; Sat, 12 Jul 2014 04:18:41 -0400 Received: from plane.gmane.org ([80.91.229.3]:52624) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X5sVv-000116-96 for emacs-orgmode@gnu.org; Sat, 12 Jul 2014 04:18:35 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1X5sVs-00014B-9h for emacs-orgmode@gnu.org; Sat, 12 Jul 2014 10:18:32 +0200 Received: from g231226016.adsl.alicedsl.de ([92.231.226.16]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 12 Jul 2014 10:18:32 +0200 Received: from tjolitz by g231226016.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 12 Jul 2014 10:18:32 +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 Alexander Baier writes: > On 2014-07-11 13:26 Martin Beck wrote: >> I have a search result (created by a search agenda C-C a s) and I >> want to narrow it down further with additional criteria. >> I tried to use the "=" key for "Narrow to entries matching regexp", >> but I did not find out how to combine several terms in here. >> >> As long as I only enter one word, it works. But if I want to filter >> for criteria like >> >> Word1 OR Word2 >> or (Word1 OR Word2) AND Word3 >> or (Word1 OR Word2) AND NOT (Word3 OR Word4) >> >> I get no results just by entering >> e.g. Word1|Word2 >> or Word1&Word2 >> >> I'm sure this is trivial, but I'm not an expert in regular >> expressions and currently don't see how to solve that. >> :-( > > Using \(Word1\)\|\(Word2\) works for me. If you find it troublesome to > type a lot of these escaped parens, you might want to try > smartparens-mode for auto insertion of the closing _escaped_ paren. > > As an example, if you type "\(", smartparens will automatically insert > "\)" after point. You can even navigate over these groups via sexps > commands. I always wondered how this C-c a s search should work. I can only enter one word, just like the OP. None of these (valid) regexps works here: ,---- | (foo|bar) | \(foo\|bar\) | \\(foo|bar\\) `---- This does not work either ,---- | \(foo\)\|\(bar\) `---- nor does ,---- | \(\(foo\)\|\(bar\)\) `---- or simply ,---- | foo|bar `---- -- cheers, Thorsten From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexander Baier Subject: Re: How to filter agenda for Word1 OR Word2? Date: Sat, 12 Jul 2014 14:25:24 +0200 Message-ID: <877g3ipxvv.fsf@mailbox.org> References: <87egxrpj9d.fsf@mailbox.org> <8761j3m1mc.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57457) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X5wN1-0000Ut-LW for emacs-orgmode@gnu.org; Sat, 12 Jul 2014 08:25:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X5wMv-00054Z-C8 for emacs-orgmode@gnu.org; Sat, 12 Jul 2014 08:25:39 -0400 Received: from mx2.mailbox.org ([80.241.60.215]:44593) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X5wMu-00054E-Ub for emacs-orgmode@gnu.org; Sat, 12 Jul 2014 08:25:33 -0400 In-Reply-To: <8761j3m1mc.fsf@gmail.com> (Thorsten Jolitz's message of "Sat, 12 Jul 2014 10:18:19 +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: Thorsten Jolitz Cc: emacs-orgmode@gnu.org On 2014-07-12 10:18 Thorsten Jolitz wrote: > Alexander Baier writes: >> Using \(Word1\)\|\(Word2\) works for me. If you find it troublesome to >> type a lot of these escaped parens, you might want to try >> smartparens-mode for auto insertion of the closing _escaped_ paren. >> > I always wondered how this C-c a s search should work. I can only enter > one word, just like the OP. I forgot to mention that I did not use C-c a s, but created an agenda and pressed = to start a regexp-match. Regards, -- Alexander Baier From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thorsten Jolitz Subject: Re: How to filter agenda for Word1 OR Word2? Date: Sat, 12 Jul 2014 14:40:22 +0200 Message-ID: <87oawulphl.fsf@gmail.com> References: <87egxrpj9d.fsf@mailbox.org> <8761j3m1mc.fsf@gmail.com> <877g3ipxvv.fsf@mailbox.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43120) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X5wbY-0002VT-QS for emacs-orgmode@gnu.org; Sat, 12 Jul 2014 08:40:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X5wbS-0006jl-UV for emacs-orgmode@gnu.org; Sat, 12 Jul 2014 08:40:40 -0400 Received: from plane.gmane.org ([80.91.229.3]:37308) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X5wbS-0006jX-Ip for emacs-orgmode@gnu.org; Sat, 12 Jul 2014 08:40:34 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1X5wbR-0005IU-3o for emacs-orgmode@gnu.org; Sat, 12 Jul 2014 14:40:33 +0200 Received: from g231226016.adsl.alicedsl.de ([92.231.226.16]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 12 Jul 2014 14:40:33 +0200 Received: from tjolitz by g231226016.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 12 Jul 2014 14:40:33 +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 Alexander Baier writes: > On 2014-07-12 10:18 Thorsten Jolitz wrote: >> Alexander Baier writes: >>> Using \(Word1\)\|\(Word2\) works for me. If you find it troublesome to >>> type a lot of these escaped parens, you might want to try >>> smartparens-mode for auto insertion of the closing _escaped_ paren. >>> >> I always wondered how this C-c a s search should work. I can only enter >> one word, just like the OP. > > I forgot to mention that I did not use C-c a s, but created an agenda > and pressed = to start a regexp-match. Yes, then the usual regexp syntax works: ,---- | \(foo\|bar\) `---- but what about filtering in the agenda (in search view), using {} []? Either this is broken and does nothing or I do not really understand what ,---- | http://orgmode.org/manual/Filtering_002flimiting-agenda-items.html `---- tries to tell me ... -- cheers, Thorsten From mboxrd@z Thu Jan 1 00:00:00 1970 From: Samuel Wales Subject: Re: How to filter agenda for Word1 OR Word2? Date: Sat, 12 Jul 2014 12:14:05 -0700 Message-ID: References: <87egxrpj9d.fsf@mailbox.org> <8761j3m1mc.fsf@gmail.com> <877g3ipxvv.fsf@mailbox.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48309) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X62kL-0002Ym-9O for emacs-orgmode@gnu.org; Sat, 12 Jul 2014 15:14:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X62kJ-00082J-MR for emacs-orgmode@gnu.org; Sat, 12 Jul 2014 15:14:09 -0400 Received: from mail-wi0-x230.google.com ([2a00:1450:400c:c05::230]:57970) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X62kJ-00081J-FX for emacs-orgmode@gnu.org; Sat, 12 Jul 2014 15:14:07 -0400 Received: by mail-wi0-f176.google.com with SMTP id bs8so773526wib.9 for ; Sat, 12 Jul 2014 12:14:06 -0700 (PDT) In-Reply-To: <877g3ipxvv.fsf@mailbox.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 = \(word\) should work. c-c a s {\(word\)} should work [possibly depending on text search settings] the full power of org-agenda-filter-by-tag is not yet implemented with text search. if it were, that would be EXCELLENT. even better would be searching the body text and not just the headline! samuel -- The Kafka Pandemic: http://thekafkapandemic.blogspot.com The disease DOES progress. MANY people have died from it. And ANYBODY can get it. Denmark: free Karina Hansen NOW.