emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* How to view tasks with certain Property tag in Agenda view
@ 2009-04-20  1:10 Varnit Suri
  2009-04-20  3:07 ` Nick Dokos
  2009-04-20  4:23 ` Manish
  0 siblings, 2 replies; 8+ messages in thread
From: Varnit Suri @ 2009-04-20  1:10 UTC (permalink / raw)
  To: emacs-orgmode

Hi all,

I am using the PROPERTY keyword to identify contexts (in the GTD
approach). So here's a sample of what I do:

* Online
  :PROPERTIES:
  :CATEGORY: Computer
  :END:
** TODO Call/reply to A
** TODO Defrag work PC

The Agenda view that I see is below (Home, Computer, Work are PROPERTY
tags).

What I 'd like to do is:
1. View tasks with only a specified PROPERTY tag.
2. View the main task (if this task is a sub-task) in the Agenda view.

So in the above example, I 'm trying to see something like.
 
Computer: Online [current output] 

Any comments are appreciated. Thanks.

Current output:

Week-agenda (W16-W17):
Sunday     19 April 2009
  Home:       Sched. 2x:  TODO ETrade debit card
  Home:       In -24 d.:  TODO Respond to DMV Ticket
  Computer:     Sched. 2x:  TODO Incorporate category tags
  Work:     Scheduled:  TODO Defrag work PC

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: How to view tasks with certain Property tag in Agenda view
  2009-04-20  1:10 How to view tasks with certain Property tag in Agenda view Varnit Suri
@ 2009-04-20  3:07 ` Nick Dokos
  2009-04-20  4:23 ` Manish
  1 sibling, 0 replies; 8+ messages in thread
From: Nick Dokos @ 2009-04-20  3:07 UTC (permalink / raw)
  To: Varnit Suri; +Cc: emacs-orgmode

Varnit Suri <vsuri@Brocade.COM> wrote:

> ...
> The Agenda view that I see is below (Home, Computer, Work are PROPERTY
> tags).
> 
> What I 'd like to do is:
> 1. View tasks with only a specified PROPERTY tag.
> 2. View the main task (if this task is a sub-task) in the Agenda view.
> 
> ... 

Does 

     http://orgmode.org/manual/Matching-tags-and-properties.html#Matching-tags-and-properties

help? In your example, I think you'd say something like this (untested):

C-c a m +CATEGORY="Computer" <RET>

BTW, there are many built-in agenda views - you seem to be doing "C-c a a"
which gives you the current week/day agenda view. But if you stop
after "C-c a", you'll be at the agenda dispatcher, which shows you a list
of agenda views. E.g., the "a" key in the dispatcher gives you the weekly
agenda view, the "m" key lets you match tags and properties etc. See

    http://orgmode.org/manual/Built_002din-agenda-views.html#Built_002din-agenda-views

for more details. You can even add custom agenda views:

    http://orgmode.org/manual/Custom-agenda-views.html#Custom-agenda-views

HTH,
Nick

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: How to view tasks with certain Property tag in Agenda view
  2009-04-20  1:10 How to view tasks with certain Property tag in Agenda view Varnit Suri
  2009-04-20  3:07 ` Nick Dokos
@ 2009-04-20  4:23 ` Manish
  2009-04-21  0:41   ` Varnit Suri
  1 sibling, 1 reply; 8+ messages in thread
From: Manish @ 2009-04-20  4:23 UTC (permalink / raw)
  To: Varnit Suri; +Cc: emacs-orgmode

FWIW, I use tags to  mark contexts and filtering on tags is really
really fast and flexible.

-- 
Manish

On Mon, Apr 20, 2009 at 6:40 AM, Varnit Suri <vsuri@brocade.com> wrote:
> Hi all,
>
> I am using the PROPERTY keyword to identify contexts (in the GTD
> approach). So here's a sample of what I do:
>
> * Online
>  :PROPERTIES:
>  :CATEGORY: Computer
>  :END:
> ** TODO Call/reply to A
> ** TODO Defrag work PC
>
> The Agenda view that I see is below (Home, Computer, Work are PROPERTY
> tags).
>
> What I 'd like to do is:
> 1. View tasks with only a specified PROPERTY tag.
> 2. View the main task (if this task is a sub-task) in the Agenda view.
>
> So in the above example, I 'm trying to see something like.
>
> Computer: Online [current output]
>
> Any comments are appreciated. Thanks.
>
> Current output:
>
> Week-agenda (W16-W17):
> Sunday     19 April 2009
>  Home:       Sched. 2x:  TODO ETrade debit card
>  Home:       In -24 d.:  TODO Respond to DMV Ticket
>  Computer:     Sched. 2x:  TODO Incorporate category tags
>  Work:     Scheduled:  TODO Defrag work PC
>
>
>
> _______________________________________________
> 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
>

^ permalink raw reply	[flat|nested] 8+ messages in thread

* RE: How to view tasks with certain Property tag in Agenda view
  2009-04-20  4:23 ` Manish
@ 2009-04-21  0:41   ` Varnit Suri
  2009-04-21  7:12     ` Manish
  0 siblings, 1 reply; 8+ messages in thread
From: Varnit Suri @ 2009-04-21  0:41 UTC (permalink / raw)
  To: Manish; +Cc: emacs-orgmode

Thanks. I agree this is prolly a better approach.

I did get things to work (see code in post-script) a bit using your suggestion and:
http://orgmode.org/manual/Block-agenda.html#Block-agenda 
http://orgmode.org/manual/Storing-searches.html#Storing-searches 

But maybe I wasn't clear enough in describing what I 'm trying to do. 

I 'd like to parse the weekly Agenda (C-c a a) to show only those items that meet the specified criteria (eg, certain tags, todo-tags, or properties). The advantage is that that shows the relevant items, will complete details of dates, etc. Its sort of running a grep on the weekly Agenda output.

Any ideas are appreciated.

V.

PS: The two custom searches that I coded up are:

(setq org-agenda-custom-commands
     '(("h" "Agenda for context Home"
	 ((agenda "")
	  (tags "HOME")))))

(setq org-agenda-custom-commands
     '(("h" "Agenda for context Home" agenda (tags "HOME"))))


-----Original Message-----
From: Manish [mailto:mailtomanish.sharma@gmail.com] 
Sent: Sunday, April 19, 2009 9:24 PM
To: Varnit Suri
Cc: emacs-orgmode@gnu.org
Subject: Re: [Orgmode] How to view tasks with certain Property tag in Agenda view

FWIW, I use tags to  mark contexts and filtering on tags is really
really fast and flexible.

-- 
Manish

On Mon, Apr 20, 2009 at 6:40 AM, Varnit Suri <vsuri@brocade.com> wrote:
> Hi all,
>
> I am using the PROPERTY keyword to identify contexts (in the GTD
> approach). So here's a sample of what I do:
>
> * Online
>  :PROPERTIES:
>  :CATEGORY: Computer
>  :END:
> ** TODO Call/reply to A
> ** TODO Defrag work PC
>
> The Agenda view that I see is below (Home, Computer, Work are PROPERTY
> tags).
>
> What I 'd like to do is:
> 1. View tasks with only a specified PROPERTY tag.
> 2. View the main task (if this task is a sub-task) in the Agenda view.
>
> So in the above example, I 'm trying to see something like.
>
> Computer: Online [current output]
>
> Any comments are appreciated. Thanks.
>
> Current output:
>
> Week-agenda (W16-W17):
> Sunday     19 April 2009
>  Home:       Sched. 2x:  TODO ETrade debit card
>  Home:       In -24 d.:  TODO Respond to DMV Ticket
>  Computer:     Sched. 2x:  TODO Incorporate category tags
>  Work:     Scheduled:  TODO Defrag work PC
>
>
>
> _______________________________________________
> 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
>

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: How to view tasks with certain Property tag in Agenda view
  2009-04-21  0:41   ` Varnit Suri
@ 2009-04-21  7:12     ` Manish
  2009-04-28  0:33       ` Varnit Suri
  0 siblings, 1 reply; 8+ messages in thread
From: Manish @ 2009-04-21  7:12 UTC (permalink / raw)
  To: Varnit Suri; +Cc: emacs-orgmode

  On Tue, Apr 21, 2009 at 6:11 AM, Varnit Suri wrote:
  > Thanks. I agree this is prolly a better approach.
  >
  > I did get things to work (see code in post-script) a bit using
  > your suggestion and:
  > http://orgmode.org/manual/Block-agenda.html#Block-agenda
  > http://orgmode.org/manual/Storing-searches.html#Storing-searches
  >
  > But maybe I wasn't clear enough in describing what I 'm trying to
  > do.
  >
  > I 'd like to parse the weekly Agenda (C-c a a) to show only those
  > items that meet the specified criteria (eg, certain tags,
  > todo-tags, or properties). The advantage is that that shows the
  > relevant items, will complete details of dates, etc. Its sort of
  > running a grep on the weekly Agenda output.
  >
  > Any ideas are appreciated.

Have you seen http://orgmode.org/worg/org-customization-survey.php ?
Check out Matthew Lundin's agenda customizations in particular.  It
the awesomest use of agenda customization that I have ever seen.

-- 
Manish

^ permalink raw reply	[flat|nested] 8+ messages in thread

* RE: How to view tasks with certain Property tag in Agenda view
  2009-04-21  7:12     ` Manish
@ 2009-04-28  0:33       ` Varnit Suri
  2009-04-28  5:25         ` Matthew Lundin
  0 siblings, 1 reply; 8+ messages in thread
From: Varnit Suri @ 2009-04-28  0:33 UTC (permalink / raw)
  To: Manish; +Cc: emacs-orgmode

Ok, I went through Matt Lundin's agenda file. While he doesn't do what I
was trying to, it did give me a hint about how to implement a simple
grep on every Agenda entry, and then include only the lines that match a
certain criteria, as part of the main Agenda view.

(The current problem with the examples in the two links below is that
they display the entire Agenda, and then the matching tags separately).

So here's my code:

(setq org-agenda-custom-commands
      '(("h" "Agenda and Home-related tasks"
	 ((agenda "" ((org-agenda-skip-function
'(org-agenda-skip-entry-if 'regexp ":HOME:"))))))))

The only problem I 'm left to solve is, that this skips entries with the
tag HOME, rather than including them. I 'm only trying a way to do the
inverse match (ie skip entries that don't match HOME), but I havent been
able to nail the syntax.

Any ideas?

Thanks,

Varnit
 

-----Original Message-----
From: Manish [mailto:mailtomanish.sharma@gmail.com] 
Sent: Tuesday, April 21, 2009 12:12 AM
To: Varnit Suri
Cc: emacs-orgmode@gnu.org
Subject: Re: [Orgmode] How to view tasks with certain Property tag in
Agenda view


  On Tue, Apr 21, 2009 at 6:11 AM, Varnit Suri wrote:
  > Thanks. I agree this is prolly a better approach.
  >
  > I did get things to work (see code in post-script) a bit using
  > your suggestion and:
  > http://orgmode.org/manual/Block-agenda.html#Block-agenda
  > http://orgmode.org/manual/Storing-searches.html#Storing-searches
  >
  > But maybe I wasn't clear enough in describing what I 'm trying to
  > do.
  >
  > I 'd like to parse the weekly Agenda (C-c a a) to show only those
  > items that meet the specified criteria (eg, certain tags,
  > todo-tags, or properties). The advantage is that that shows the
  > relevant items, will complete details of dates, etc. Its sort of
  > running a grep on the weekly Agenda output.
  >
  > Any ideas are appreciated.

Have you seen http://orgmode.org/worg/org-customization-survey.php ?
Check out Matthew Lundin's agenda customizations in particular.  It
the awesomest use of agenda customization that I have ever seen.

-- 
Manish

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: How to view tasks with certain Property tag in Agenda view
  2009-04-28  0:33       ` Varnit Suri
@ 2009-04-28  5:25         ` Matthew Lundin
  2009-04-29  2:31           ` Varnit Suri
  0 siblings, 1 reply; 8+ messages in thread
From: Matthew Lundin @ 2009-04-28  5:25 UTC (permalink / raw)
  To: Varnit Suri; +Cc: emacs-orgmode

Hi Varnit,

"Varnit Suri" <vsuri@Brocade.COM> writes:

> So here's my code:
>
> (setq org-agenda-custom-commands
>       '(("h" "Agenda and Home-related tasks"
> 	 ((agenda "" ((org-agenda-skip-function
> '(org-agenda-skip-entry-if 'regexp ":HOME:"))))))))
>
> The only problem I 'm left to solve is, that this skips entries with the
> tag HOME, rather than including them. I 'm only trying a way to do the
> inverse match (ie skip entries that don't match HOME), but I havent been
> able to nail the syntax.

--8<---------------cut here---------------start------------->8---
(setq org-agenda-custom-commands
      '(("h" "Agenda and Home-related tasks"
	 ((agenda "" ((org-agenda-skip-function
         '(org-agenda-skip-entry-if 'notregexp ":HOME:"))))))))
--8<---------------cut here---------------end--------------->8---

I think this should do it.

Regards,                       
Matt

^ permalink raw reply	[flat|nested] 8+ messages in thread

* RE: How to view tasks with certain Property tag in Agenda view
  2009-04-28  5:25         ` Matthew Lundin
@ 2009-04-29  2:31           ` Varnit Suri
  0 siblings, 0 replies; 8+ messages in thread
From: Varnit Suri @ 2009-04-29  2:31 UTC (permalink / raw)
  To: Matthew Lundin; +Cc: emacs-orgmode

Thanks! This worked!

Varnit
 

-----Original Message-----
From: Matthew Lundin [mailto:Matthew.Lundin@valpo.edu] 
Sent: Monday, April 27, 2009 10:25 PM
To: Varnit Suri
Cc: Manish; emacs-orgmode@gnu.org
Subject: Re: [Orgmode] How to view tasks with certain Property tag in
Agenda view

Hi Varnit,

"Varnit Suri" <vsuri@Brocade.COM> writes:

> So here's my code:
>
> (setq org-agenda-custom-commands
>       '(("h" "Agenda and Home-related tasks"
> 	 ((agenda "" ((org-agenda-skip-function
> '(org-agenda-skip-entry-if 'regexp ":HOME:"))))))))
>
> The only problem I 'm left to solve is, that this skips entries with
the
> tag HOME, rather than including them. I 'm only trying a way to do the
> inverse match (ie skip entries that don't match HOME), but I havent
been
> able to nail the syntax.

--8<---------------cut here---------------start------------->8---
(setq org-agenda-custom-commands
      '(("h" "Agenda and Home-related tasks"
	 ((agenda "" ((org-agenda-skip-function
         '(org-agenda-skip-entry-if 'notregexp ":HOME:"))))))))
--8<---------------cut here---------------end--------------->8---

I think this should do it.

Regards,                       
Matt

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2009-04-29  2:31 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-20  1:10 How to view tasks with certain Property tag in Agenda view Varnit Suri
2009-04-20  3:07 ` Nick Dokos
2009-04-20  4:23 ` Manish
2009-04-21  0:41   ` Varnit Suri
2009-04-21  7:12     ` Manish
2009-04-28  0:33       ` Varnit Suri
2009-04-28  5:25         ` Matthew Lundin
2009-04-29  2:31           ` Varnit Suri

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).