From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rene Subject: Re: How to filter on files Date: Fri, 15 Nov 2013 20:33:00 +0000 (UTC) Message-ID: References: <87bo1mqa1v.fsf@bzg.ath.cx> <878uwp7ixk.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51485) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VhQ52-00037o-Dn for emacs-orgmode@gnu.org; Fri, 15 Nov 2013 15:33:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VhQ4w-0004mL-HS for emacs-orgmode@gnu.org; Fri, 15 Nov 2013 15:33:28 -0500 Received: from plane.gmane.org ([80.91.229.3]:45427) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VhQ4w-0004lj-CB for emacs-orgmode@gnu.org; Fri, 15 Nov 2013 15:33:22 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VhQ4t-0006ev-PV for emacs-orgmode@gnu.org; Fri, 15 Nov 2013 21:33:19 +0100 Received: from vaf26-3-88-162-208-155.fbx.proxad.net ([88.162.208.155]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 15 Nov 2013 21:33:19 +0100 Received: from jlr_0 by vaf26-3-88-162-208-155.fbx.proxad.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 15 Nov 2013 21:33:19 +0100 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: emacs-orgmode@gnu.org Bastien gnu.org> writes: > Rene yahoo.com> 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. I do already have first level headlines each with its own CATEGORY in which I refile my tasks. Therefore the #+CATEGORY: property on top of the file does not appear in the agenda view unfortunately. > > 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. It does work. Thanks. I'd have loved though to be able to switch from one view (home+office view) to another (office view) without having to reconstruct the whole agenda. -- rene