From: Matt Lundin <mdl@imapmail.org>
To: Barton <abubious@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Custom agenda view - filter by priority AND scheduled date
Date: Wed, 28 Apr 2010 13:19:42 -0400 [thread overview]
Message-ID: <878w871olt.fsf@fastmail.fm> (raw)
In-Reply-To: <1AF02DE7-68B8-4CD2-A17A-66F8D762910E@gmail.com> (Barton's message of "Wed, 28 Apr 2010 16:36:16 +0300")
Barton <abubious@gmail.com> writes:
> In my workflow, I move by priorities and scheduled dates for the tasks.
> My goal with this issue is to have a view that would show me only the
> tasks with certain priority(-ies) that are scheduled for today (or are
> overdue, as in (org-agenda-repeating-timestamp-show-all t) ).
>
> My feeble attempt here:
>
> (setq org-agenda-custom-commands
> '(("c" "Custom"
> ((agenda "" ((org-agenda-ndays 1)))
> (tags-todo "+PRIORITY=\"A\"")))
> ;; ...other commands here
> ))
>
> ... displays a usual daily agenda and following it, _all_ the #A tasks
> that I have. Clearly not what has been intended.
Here's one way to do it:
--8<---------------cut here---------------start------------->8---
(setq org-agenda-custom-commands
'(("c" "Custom" tags-todo "+SCHEDULED<=\"<today>\"+PRIORITY=\"A\"")
;; ...other commands here
))
--8<---------------cut here---------------end--------------->8---
Another approach is to use the daily agenda view and a skip function.
This is a bit faster than the first example:
--8<---------------cut here---------------start------------->8---
(setq org-agenda-custom-commands
'(("c" "Custom" agenda ""
((org-agenda-entry-types '(:scheduled))
(org-agenda-skip-function '(org-agenda-skip-entry-if 'notregexp "\\[#A\\]"))))
;; ...other commands here
))
--8<---------------cut here---------------end--------------->8---
HTH,
Matt
next prev parent reply other threads:[~2010-04-28 17:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-28 13:36 Custom agenda view - filter by priority AND scheduled date Barton
2010-04-28 17:19 ` Matt Lundin [this message]
2010-04-28 17:30 ` Barton
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=878w871olt.fsf@fastmail.fm \
--to=mdl@imapmail.org \
--cc=abubious@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).