Hi John, John Wiegley <jwieg...@gmail.com> 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