emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Properties in agenda view
@ 2014-11-04 10:24 Toby St Clere Smithe
  2014-11-04 17:14 ` Dominic Surano
  2014-11-04 17:36 ` Eric S Fraga
  0 siblings, 2 replies; 5+ messages in thread
From: Toby St Clere Smithe @ 2014-11-04 10:24 UTC (permalink / raw)
  To: emacs-orgmode

Hi all,

How might I adjust the agenda view so that as well as displaying the
dates and names of entries, some property / properties of my choosing
are displayed? For instance, I have entries with a "LOCATION" property,
and would like to see that in the agenda view.

Cheers,

Toby


-- 
Toby St Clere Smithe
http://tsmithe.net

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

* Re: Properties in agenda view
  2014-11-04 10:24 Properties in agenda view Toby St Clere Smithe
@ 2014-11-04 17:14 ` Dominic Surano
  2014-11-04 17:27   ` Toby St Clere Smithe
  2014-11-04 17:36 ` Eric S Fraga
  1 sibling, 1 reply; 5+ messages in thread
From: Dominic Surano @ 2014-11-04 17:14 UTC (permalink / raw)
  To: emacs-orgmode

Toby St Clere Smithe <mail <at> tsmithe.net> writes:

> 
> Hi all,
> 
> How might I adjust the agenda view so that as well as displaying the
> dates and names of entries, some property / properties of my choosing
> are displayed? For instance, I have entries with a "LOCATION" property,
> and would like to see that in the agenda view.
> 
> Cheers,
> 
> Toby
> 

This can be done with custom agenda commands using tables. Something like 
this should work:

(setq org-agenda-custom-commands
 '(("1" . "Custom sorted tables")
   ("1t" agenda "Tasks agenda table (active only)"
    ((org-agenda-skip-function
      '(org-agenda-skip-entry-if 'nottodo '("TODO" "WAITING" "CANCELLED" 
"DELEGATED" "DONE")))
    (org-agenda-overriding-columns-format "%75ITEM %20DEADLINE 
%100Location")
    (org-agenda-view-columns-initially t))))

This works with tasks that have the following format:

* TODO Go Grocery Shopping
  DEADLINE: <2014-11-04 Tue>
  :PROPERTIES:
  :Location: Trader Joe's
  :END:

The above example is for sorted agenda. This can also be accomplished for 
unsorted task lists.
        

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

* Re: Properties in agenda view
  2014-11-04 17:14 ` Dominic Surano
@ 2014-11-04 17:27   ` Toby St Clere Smithe
  0 siblings, 0 replies; 5+ messages in thread
From: Toby St Clere Smithe @ 2014-11-04 17:27 UTC (permalink / raw)
  To: emacs-orgmode

Dear Dominic,

Dominic Surano <sk8ingdom@gmail.com> writes:
> This can be done with custom agenda commands using tables. Something like 
> this should work:
>
> (setq org-agenda-custom-commands
>  '(("1" . "Custom sorted tables")
>    ("1t" agenda "Tasks agenda table (active only)"
>     ((org-agenda-skip-function
>       '(org-agenda-skip-entry-if 'nottodo '("TODO" "WAITING" "CANCELLED" 
> "DELEGATED" "DONE")))
>     (org-agenda-overriding-columns-format "%75ITEM %20DEADLINE 
> %100Location")
>     (org-agenda-view-columns-initially t))))
>
> This works with tasks that have the following format:
>
> * TODO Go Grocery Shopping
>   DEADLINE: <2014-11-04 Tue>
>   :PROPERTIES:
>   :Location: Trader Joe's
>   :END:
>
> The above example is for sorted agenda. This can also be accomplished for 
> unsorted task lists.

Thanks very much -- I'll have a play with that.

Regards,

Toby


-- 
Toby St Clere Smithe
http://tsmithe.net

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

* Re: Properties in agenda view
  2014-11-04 10:24 Properties in agenda view Toby St Clere Smithe
  2014-11-04 17:14 ` Dominic Surano
@ 2014-11-04 17:36 ` Eric S Fraga
  2014-11-05 22:58   ` Toby St Clere Smithe
  1 sibling, 1 reply; 5+ messages in thread
From: Eric S Fraga @ 2014-11-04 17:36 UTC (permalink / raw)
  To: Toby St Clere Smithe; +Cc: emacs-orgmode

On Tuesday,  4 Nov 2014 at 11:24, Toby St Clere Smithe wrote:
> Hi all,
>
> How might I adjust the agenda view so that as well as displaying the
> dates and names of entries, some property / properties of my choosing
> are displayed? For instance, I have entries with a "LOCATION" property,
> and would like to see that in the agenda view.

You can use a column view (C-c C-x C-c) from within the agenda
view.  You can customise what is presented in this column view by
  
(setq org-agenda-overriding-columns-format 
      "%5TODO %TIMESTAMP %40ITEM %LOCATION %TAGS")

for instance.  Not quite what you wanted, mind you...
-- 
: Eric S Fraga (0xFFFCF67D), Emacs 24.3.1, Org release_8.3beta-372-gdd70cf

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

* Re: Properties in agenda view
  2014-11-04 17:36 ` Eric S Fraga
@ 2014-11-05 22:58   ` Toby St Clere Smithe
  0 siblings, 0 replies; 5+ messages in thread
From: Toby St Clere Smithe @ 2014-11-05 22:58 UTC (permalink / raw)
  To: emacs-orgmode

Dear Eric,

Eric S Fraga <e.fraga@ucl.ac.uk> writes:
> On Tuesday,  4 Nov 2014 at 11:24, Toby St Clere Smithe wrote:
>> Hi all,
>>
>> How might I adjust the agenda view so that as well as displaying the
>> dates and names of entries, some property / properties of my choosing
>> are displayed? For instance, I have entries with a "LOCATION" property,
>> and would like to see that in the agenda view.
>
> You can use a column view (C-c C-x C-c) from within the agenda
> view.  You can customise what is presented in this column view by
>   
> (setq org-agenda-overriding-columns-format 
>       "%5TODO %TIMESTAMP %40ITEM %LOCATION %TAGS")
>
> for instance.  Not quite what you wanted, mind you...

Don't worry, this is also helpful.

Thanks!


Toby

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

end of thread, other threads:[~2014-11-05 22:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-04 10:24 Properties in agenda view Toby St Clere Smithe
2014-11-04 17:14 ` Dominic Surano
2014-11-04 17:27   ` Toby St Clere Smithe
2014-11-04 17:36 ` Eric S Fraga
2014-11-05 22:58   ` Toby St Clere Smithe

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