[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Filtering agenda by the "top" category
From: |
Bastien |
Subject: |
Re: [O] Filtering agenda by the "top" category |
Date: |
Tue, 10 Apr 2012 22:42:23 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.94 (gnu/linux) |
Hi John,
John Wiegley <address@hidden> writes:
> I discovered the < key in the agenda yesterday (by accident!), which filters
> the Agenda down to entries having the same category.
>
> However, I use both *categories* and *projects*. For example:
>
> * Work
> :CATEGORY: Work
> :OVERLAY: (face (:background "#fdfdeb"))
> ** PROJECT Foo
> :CATEGORY: Foo
>
> I use :CATEGORY: for my project here so it shows up in the leftmost column of
> my agenda. I don't want every project displaying as just "Work". I use the
> :OVERLAY: so that all Work items have the same background color, which is a
> better way of seeing at a glance which *category* every item falls into.
>
> What this means is that although I can use < to filter by *project*, I can't
> filter down to the "Work" *category*. So that's what the code below does. I
> bind it to >, since I wasn't using what that binding does.
I tested the code and it looks useful.
Could you make a patch against current master?
> Also, I found a bug: passing a prefix argument to < doesn't have any effect.
> The code doesn't use that argument in any meaningful way.
This is now fixed. You can use `C-u <' to filter out the category of
the current line. Thanks for spotting this!
--
Bastien