From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthew Lundin Subject: Re: Best way to implement Keywords feature Date: Mon, 09 Nov 2009 07:27:19 -0500 Message-ID: References: <7bef1f890911051442h28d45647h4f128a241d4e0116@mail.gmail.com> <427836.88344.qm@web28316.mail.ukl.yahoo.com> <87tyx5tg2x.fsf@gmail.com> <87vdhkvq0x.fsf@gmail.com> <87hbt4k1o3.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N7TLE-0003ym-KP for emacs-orgmode@gnu.org; Mon, 09 Nov 2009 07:27:28 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N7TL9-0003wB-3S for emacs-orgmode@gnu.org; Mon, 09 Nov 2009 07:27:27 -0500 Received: from [199.232.76.173] (port=35110 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N7TL8-0003w2-Uv for emacs-orgmode@gnu.org; Mon, 09 Nov 2009 07:27:22 -0500 Received: from out4.smtp.messagingengine.com ([66.111.4.28]:50302) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N7TL8-0008Em-MS for emacs-orgmode@gnu.org; Mon, 09 Nov 2009 07:27:22 -0500 In-Reply-To: <87hbt4k1o3.fsf@gmail.com> (Paul Mead's message of "Mon, 09 Nov 2009 00:00:12 +0000") 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: Paul Mead Cc: Matthew Lundin , org-mode Paul Mead writes: > Matthew Lundin writes: > >> >> It will if you use brackets to perform a regexp match. E.g., >> >> Keyword={example1} >> >> (...assuming the property is "Keyword: example1 example2".) >> >> From the manual page above: >> >> ,---- >> | * If the comparison value is enclosed in curly braces, a regexp match >> | is performed, with '=' meaning that the regexp matches the property >> | value, and '<>' meaning that it does not match. >> `---- >> >> Best, >> Matt > > That's great, but what if I need to match *both* example1 and example2 > in a search? I tried a few things but didn't find anything that > works. > > Ideally, I'd be able to specify several keywords in a search on the > fly. > > (I'm sorry if there's a regexp that matches multiple keywords that I > don't know - it's a skill which I find keeps presenting surprises!) Perhaps some regexp expert will come along and show us the way, but, for now, you could search for entries that contain both keywords by entering the following tags/properties search: Keyword={example1}+Keyword={example2} Best, Matt