From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Custom filtering the agenda by (file) tag Date: Wed, 5 Nov 2008 10:58:22 +0100 Message-ID: References: <2F829704-5F3A-4A73-BA9F-2D4CBA96AB5C@uva.nl> Mime-Version: 1.0 (Apple Message framework v929.2) Content-Type: multipart/mixed; boundary="===============1636930241==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kxf9k-0007SW-8w for emacs-orgmode@gnu.org; Wed, 05 Nov 2008 04:58:32 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kxf9i-0007Rn-Hp for emacs-orgmode@gnu.org; Wed, 05 Nov 2008 04:58:31 -0500 Received: from [199.232.76.173] (port=42709 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kxf9i-0007Rh-7i for emacs-orgmode@gnu.org; Wed, 05 Nov 2008 04:58:30 -0500 Received: from ug-out-1314.google.com ([66.249.92.168]:46879) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Kxf9h-0000LO-4u for emacs-orgmode@gnu.org; Wed, 05 Nov 2008 04:58:30 -0500 Received: by ug-out-1314.google.com with SMTP id 36so489367uga.17 for ; Wed, 05 Nov 2008 01:58:26 -0800 (PST) In-Reply-To: <2F829704-5F3A-4A73-BA9F-2D4CBA96AB5C@uva.nl> 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: Carsten Dominik Cc: emacs-orgmode@gnu.org --===============1636930241== Content-Type: multipart/alternative; boundary=Apple-Mail-15-611283136 --Apple-Mail-15-611283136 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Sorry for following up on my own message. On Nov 5, 2008, at 7:45 AM, Carsten Dominik wrote: > Hi Rick, > > you would need to write your own skip function, using a call to > > (member "PERSONAL" (org-get-tags-at)) > > HTH > > - Carsten I am just realizing that you are using file tags. Which means that you have your personal tags in a separate file. In this case, you can get your agenda view considerably faster by writing a custom agenda view that restricts the list of agenda files to the personal one. (org-add-agenda-custom-command '("b" agenda "Personal Agenda" ((org-agenda-files '("~org/personal.org")))) Another possibility is to use the normal agenda view and to use filtering in the agenda with "/ p" (assuming that "p" is your fast key to the PERSONAL tag). I myself have pretty much switched to filtering and simplified my custom agenda commands accordingly. HTH - Carsten > > > On Nov 5, 2008, at 12:18 AM, Rick Moynihan wrote: > >> Hi all, >> >> I've been setting up a whole bunch of org-agenda-custom-commands and >> am having trouble setting up a filter to display ONLY items in the >> agenda view which are tagged PERSONAL across all my org-agenda-files. >> >> I tried several ways to do this and ended up trying the following: >> >> (org-add-agenda-custom-command >> '("b" agenda "Personal Agenda" >> ((org-agenda-skip-function '(org-agenda-skip-subtree-if >> 'notregexp ":PERSONAL:"))))) >> >> Unfortunately this doesn't appear to work with FILETAGS as it relies >> on matching against a regex. How can I implement this view with full >> tag support and inheritance? >> >> Thanks again, >> >> R. >> >> >> _______________________________________________ >> Emacs-orgmode mailing list >> Remember: use `Reply All' to send replies to the list. >> Emacs-orgmode@gnu.org >> http://lists.gnu.org/mailman/listinfo/emacs-orgmode > > > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode --Apple-Mail-15-611283136 Content-Type: text/html; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Sorry for following up on my = own message.

On Nov 5, 2008, at 7:45 AM, Carsten = Dominik wrote:

Hi Rick,

you would need to write your own skip = function, using a call to

(member "PERSONAL" = (org-get-tags-at))

HTH

- = Carsten

I am just realizing that = you are using file tags.  Which means
that you have your = personal tags in a separate file.  In this
case, you can = get your agenda view considerably faster by writing
a custom = agenda view that restricts the list of agenda files to
the = personal = one.

(org-add-agenda-custom-command
'("b" = agenda "Personal Agenda"
    ((org-agenda-files = '("~org/personal.org"))))

Another possibility = is to use the normal agenda view and to use
filtering in the = agenda with "/ p" (assuming that "p" is your
fast key to the = PERSONAL tag).  I myself have pretty much switched
to = filtering and simplified my custom agenda commands = accordingly.

HTH

- = Carsten





On Nov 5, 2008, at 12:18 AM, Rick Moynihan = wrote:

Hi = all,

I've been = setting up a whole bunch of org-agenda-custom-commands = and
am having trouble setting = up a filter to display ONLY items in the
agenda view which are tagged PERSONAL across all my = org-agenda-files.

I tried several = ways to do this and ended up trying the = following:

(org-add-agenda-custom-command
'("b" agenda "Personal Agenda"
 ((org-agenda-skip-function = '(org-agenda-skip-subtree-if
=             &n= bsp;           &nbs= p;     'notregexp = ":PERSONAL:")))))

Unfortunately = this doesn't appear to work with FILETAGS as it = relies
on matching against a = regex.  How can I implement this view with = full
tag support and = inheritance?

Thanks = again,

R.


_______________________________________________
Emacs-orgmode mailing = list
Remember: use `Reply All' = to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.= gnu.org/mailman/listinfo/emacs-orgmode



___= ____________________________________________
Emacs-orgmode mailing = list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.= gnu.org/mailman/listinfo/emacs-orgmode
= --Apple-Mail-15-611283136-- --===============1636930241== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============1636930241==--