emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Alexander Baier <lexi.baier@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Filter weekly/daily agenda by tag
Date: Sun, 28 Oct 2012 12:58:04 +0100	[thread overview]
Message-ID: <CAP34+6QmB_OnANkmj5gqpbhzrG-VmJSjnQGDLy4LQ24OAxvo4Q@mail.gmail.com> (raw)

Hello,

this is my first post on the mailing list and i am not quite sure if i
do everything right. If i screw something up, please let me know, so i
can fix it and do it right next time.

To the problem I'm facing:

My setup: I have a single org file with appointments as sub trees.
Each appointment has an active timestamp assigned to it, so it appears
in the weekly agenda view. It also has one or more tags assigned to
it.
The agenda view i want to create: I would like to have a weekly agenda
view filtered by the tags assigned to the events.

Now, i searched the org-mode list archives and found this post:
http://lists.gnu.org/archive/html/emacs-orgmode/2011-08/msg00812.html
where Bernt Hansen writes "You should be able to achieve this by
setting the variable
org-agenda-filter.". Where does this variable org-agenda-filter come
from? If i want to describe it in emacs, i cannot find it. So i think
this is a setting which can be passed to commands in
org-agenda-custom-commands. (btw: is there a place where all the
settings i can pass to these commands is documented?) I created my own
agenda-command in my .emacs, but it did not filter the weekly agenda
view as described above. This is my code:
(setq org-agenda-custom-commands
  '(("d" "Test Tag Filter"
     ((agenda ""
              ((org-agenda-files '("~/org/WeeklyFilterTest.org"))
               (org-agenda-filter "-EXCL")))))))

And this is my ~/org/WeeklyFilterTest.org:
* Events
  :PROPERTIES:
  :CATEGORY: Event
  :END:
** Event1                                                              :INCL:
  <2012-10-29 Mon>
** Event2                                                              :INCL:
  <2012-10-30 Tue>
** Event3                                                              :EXCL:
  <2012-10-30 Tue 18:00>
** Event4                                                              :INCL:
  <2012-10-30 Tue 19:00>

To explain what i want to achieve regarding this example: I want a
weekly agenda view only displaying Event1, Event2 and Event4 but not
Event3 as it should be excluded by its tag.

Any help is appreciated.

Regards
Alexander

             reply	other threads:[~2012-10-28 11:58 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-28 11:58 Alexander Baier [this message]
2012-10-28 12:53 ` Filter weekly/daily agenda by tag Bastien
2012-10-28 15:28   ` Alexander Baier
2012-10-29  5:40     ` Bastien
2012-10-28 12:57 ` Simon Thum
2012-10-28 15:40   ` Alexander Baier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAP34+6QmB_OnANkmj5gqpbhzrG-VmJSjnQGDLy4LQ24OAxvo4Q@mail.gmail.com \
    --to=lexi.baier@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).