From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: Switching between many contexts Date: Mon, 02 Mar 2009 13:31:28 -0500 Message-ID: <87zlg3rd33.fsf@gollum.intra.norang.ca> References: <87ocwjzts2.fsf@CPU107.opentrends.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LeCvO-0007sM-Cb for emacs-orgmode@gnu.org; Mon, 02 Mar 2009 13:31:34 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LeCvM-0007sA-T2 for emacs-orgmode@gnu.org; Mon, 02 Mar 2009 13:31:33 -0500 Received: from [199.232.76.173] (port=38277 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LeCvM-0007s7-NO for emacs-orgmode@gnu.org; Mon, 02 Mar 2009 13:31:32 -0500 Received: from mho-02-bos.mailhop.org ([63.208.196.179]:61238) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LeCvM-0007GC-D9 for emacs-orgmode@gnu.org; Mon, 02 Mar 2009 13:31:32 -0500 In-Reply-To: <87ocwjzts2.fsf@CPU107.opentrends.net> (Daniel Clemente's message of "Mon\, 02 Mar 2009 19\:03\:41 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Daniel Clemente Cc: org-mode mailing list Hi Daniel, Daniel Clemente writes: > Hi. I have this scenario: I track several projects in a single file, > each in its own level-1 section, but each week I'm working only on > one project. In my agenda (C-a a) I'm currently seeing scheduled > tasks from all projects, and I would like to exclude all projects > but one. I recently added a CATEGORY property to each section. > > > My questions are: > > 1. How can I exclude a category from the agenda view? Probably with > key \ TAB CATEGORY=3D"something", but I can't make it work and I'm > confused by the many types of searches that are referred to in the > manual. I use tags instead of categories for filtering. Categories for me are only displayed in the agenda as extra information for what the task belongs to. Since tags are inherited you can just add a tag to the level 1 task and then filter using that tag. > > > 2. How can I create an agenda view that looks like the normal agenda, > but ignores some categories? (at least on that file). Using tags instead of categories: Do a normal agenda view and then limit with / TAB tag-names-goes-here or use one of your fast key selections for tags. (/ key) You can use a filter to remove tasks with a specific tag C-c a t / - TAB PROJ1 RET will display all TODO tasks and then remove any tasks with the PROJ1 tag. You can repeat the /- TAB tagname sequence to remove multiple projects. For my standard tags I have quick keys defined in my org-tag-alist so I can just use those to filter tasks. That works great! > > > 3. Do you implement this scenario in other ways? For instance, one can > add the COMMENT keyword the unwanted projects, use different files, > close all old tasks after each context switch, use other tags, =E2=80=A6 I split projects into separate files and add a #+FILETAGS: at the top. For instance my org.org file has #+FILETAGS: ORG and all tasks in that file get the ORG tag. For clients I create one or more files and use a FILETAGS setting to create a tag for that client - then I can limit the agenda to just that client quickly. Some clients have multiple project files (one of my clients has client systems which I work on so each system has its own org file but I can view everything for that client by limiting to the client tag) I find limiting the agenda with tag filters very quick and effective. HTH, Bernt