From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Re: Restrict agenda view to multiple files matching a pattern? Date: Tue, 24 Mar 2009 15:12:10 +0100 Message-ID: <88FDF545-169D-45DD-997E-42A318E7C407@gmail.com> References: <87hc1kxe2y.fsf@transitory.lefae.org> <87k56gys3r.fsf@fastmail.fm> <87prg8uk61.fsf@transitory.lefae.org> <87fxh4yr93.fsf@fastmail.fm> <87d4c8uim9.fsf@transitory.lefae.org> Mime-Version: 1.0 (Apple Message framework v930.3) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lm7MZ-0001Oz-TZ for emacs-orgmode@gnu.org; Tue, 24 Mar 2009 10:12:19 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lm7MV-0001NB-AH for emacs-orgmode@gnu.org; Tue, 24 Mar 2009 10:12:19 -0400 Received: from [199.232.76.173] (port=53849 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lm7MV-0001N5-3f for emacs-orgmode@gnu.org; Tue, 24 Mar 2009 10:12:15 -0400 Received: from mail-ew0-f160.google.com ([209.85.219.160]:58497) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Lm7MU-0005ZC-Ly for emacs-orgmode@gnu.org; Tue, 24 Mar 2009 10:12:14 -0400 Received: by ewy4 with SMTP id 4so2529000ewy.42 for ; Tue, 24 Mar 2009 07:12:12 -0700 (PDT) In-Reply-To: <87d4c8uim9.fsf@transitory.lefae.org> 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: Ross Patterson Cc: emacs-orgmode@gnu.org On Mar 23, 2009, at 8:47 PM, Ross Patterson wrote: > Matthew Lundin writes: > >> Hi Ross, >> >> Ross Patterson writes: >> >>> Matthew Lundin writes: >>> >>>> Ross Patterson writes: >>>> >>>>> So far at least, I have my tasks broken up into multiple *.org >>>>> files >>>>> whose names reflect general categories. Often I want to look at >>>>> the >>>>> agenda view for files starting with "work" to look at all my work >>>>> tasks. >>>>> >>>>> Is there a way I can do this or a better way I should be >>>>> organizing my >>>>> tasks? Putting all my tasks into one work file would just be >>>>> way too >>>>> much as I am a freelancer and have a lot to keep track of. >>>>> Similarly I >>>>> don't really want to tag every work task just to support this. >>>>> Any >>>>> suggestions? >>>> >>>> The following FAQs provide some tips on how to do this: >>>> >>>> - http://orgmode.org/worg/org-faq.php#limit-agenda-with-tag-filtering >>>> >>>> >>>> - http://orgmode.org/worg/org-faq.php#limit-agenda-with-category-match >>>> > >>> Sorry, should have been clearer, I want to look at my work*.org >>> tasks in >>> the the *day/week agenda* view, not just the task listing. >> >> I'm a bit confused. One of the FAQs explains how to do precisely that >> using #+FILETAGS and tag filtering (i.e., the same solution as >> Bernt's >> email). > > The second link results in a headline list, not an "agenda day/week" > view. You can make a full agenda view and then press "/ TAB work RET" to filter this view down to entries to have the tag or file tag :work: defined. THis is what Bernt and Matt have described. So the filtering happens *after* the full was created. You seem to be saying that all the files you want to look at look like workaaa.org workbbb.org? Then you can use another trick of Matt which he describes in his tutorial about agenda custom commands: (setq org-agenda-custom-commands '(("W" "Work agenda" agenda "" ((org-agenda-files (file-expand-wildcards "~/org/ work*.org")))) ;; ...other commands here )) This one works by temporarily only looking at these specific files, selected by file name. There are more than one ways to do things here. HTH - Carsten