From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: How to filter on files Date: Fri, 15 Nov 2013 17:01:43 +0100 Message-ID: <878uwp7ixk.fsf@bzg.ath.cx> References: <87bo1mqa1v.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54264) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VhLqI-0004PW-Cc for emacs-orgmode@gnu.org; Fri, 15 Nov 2013 11:02:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VhLq8-0004j1-1I for emacs-orgmode@gnu.org; Fri, 15 Nov 2013 11:01:58 -0500 Received: from mail-we0-x22b.google.com ([2a00:1450:400c:c03::22b]:49100) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VhLq7-0004ib-Qf for emacs-orgmode@gnu.org; Fri, 15 Nov 2013 11:01:47 -0500 Received: by mail-we0-f171.google.com with SMTP id t61so3716410wes.16 for ; Fri, 15 Nov 2013 08:01:46 -0800 (PST) In-Reply-To: (Rene's message of "Fri, 15 Nov 2013 14:47:19 +0000 (UTC)") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Rene Cc: emacs-orgmode@gnu.org Hi Rene, Rene writes: > But once in a while I'd like to dynamically narrow down my list of agenda > entries to either one of these files. I tried to play with > org-agenda-filter-by-tag or org-agenda-filter-by-category but to no > avail. Use a #+CATEGORY: property on top of each file, then use < in the agenda to filter by the category the cursor is on. > Is there some kind of "org-agenda-filter-by-file" piece of code > somewhere? No, but you can have a category per file and filter per category, which does the same. Always, you can narrow down the scope of the agenda *before* creating the agenda, with C-c a < [yourkey] -- the < means to narrow down to the current buffer. Hope this helps, -- Bastien