emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Orgmode] Re: Best way to implement Keywords feature


From: Matthew Lundin
Subject: [Orgmode] Re: Best way to implement Keywords feature
Date: Mon, 09 Nov 2009 07:27:19 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (darwin)

Paul Mead <address@hidden> writes:

> Matthew Lundin <address@hidden> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]