emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] How to filter agenda for Word1 OR Word2?


From: Alexander Baier
Subject: Re: [O] How to filter agenda for Word1 OR Word2?
Date: Sat, 12 Jul 2014 01:29:02 +0200
User-agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3 (gnu/linux)

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



reply via email to

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