emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Bernt Hansen <bernt@norang.ca>
To: Laurynas Biveinis <laurynas.biveinis@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Custom agenda view by TODO state and tag
Date: Tue, 26 Apr 2011 07:46:57 -0400	[thread overview]
Message-ID: <8762q1ck0e.fsf@norang.ca> (raw)
In-Reply-To: <BANLkTin4U1=TH+v0rxygFtj319BykrhOjw@mail.gmail.com> (Laurynas Biveinis's message of "Tue, 26 Apr 2011 06:42:47 +0300")

Laurynas Biveinis <laurynas.biveinis@gmail.com> writes:

> Hi everybody -
>
> I want to create a custom agenda view that filters by both TODO state
> and tags, i.e. a combination of todo and tags-todo search types. I
> have tried creating custom search action
> ((org-agenda-todo "TODO") (org-agenda-filter "tag1|tag2")) but failed.
>
> Any pointers?

Hi Laurynas,

Just use a tags-todo filter and list both.

("n" "Next and Started tasks" tags-todo "-WAITING-CANCELLED/!NEXT|STARTED"
               ((org-agenda-overriding-header "Next Tasks")))

This looks for all todo tasks that do not have a WAITING or CANCELLED
tag and have a todo keyword matching NEXT or STARTED.

You probably want something like this

C-c a M tag1|tag2/!TODO

("x" "Todo tasks for tag1 or tag2" tags-todo "tag1|tag2/!TODO")
               ((org-agenda-overriding-header "Todo tasks for tag1 or tag2")))

HTH,
Bernt

  reply	other threads:[~2011-04-26 11:47 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-26  3:42 Custom agenda view by TODO state and tag Laurynas Biveinis
2011-04-26 11:46 ` Bernt Hansen [this message]
2011-04-26 12:14   ` Laurynas Biveinis
2011-04-26 12:14   ` Matt Lundin
2011-04-26 12:04 ` Matt Lundin

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=8762q1ck0e.fsf@norang.ca \
    --to=bernt@norang.ca \
    --cc=emacs-orgmode@gnu.org \
    --cc=laurynas.biveinis@gmail.com \
    /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).