Re: [O] Displaying property values in agenda search result

2016-03-20 Thread Markus Heller
Christophe Schockaert  citadels.eu> writes:

> 
> 
> Markus Heller writes:
> 
> > Hello,
> >
> > how can I display property values in the agenda, more specifically, 
in 
> > the results of an agenda search?
> >
> > [...]
> >

[...]

> I defined the entry that way, using the "%(expression)" specifier in 
"org-agenda-prefix-format" :
> 

[...] 

org-agenda-prefix-format is exactly what I was looking for.

Thank you very much!

Re: [O] Displaying property values in agenda search result

2016-03-15 Thread Christophe Schockaert

Markus Heller writes:

> Hello,
>
> how can I display property values in the agenda, more specifically, in 
> the results of an agenda search?
>
> [...]
>
> I search using the following in my .emacs as part of a custom agenda 
> command:
>
> ("i" "Text here" tags "CATEGORY=\"foo\""
>  ((org-agenda-overriding-header "Header here")))
Hi,


Well, I am a newcomer to this list, and I wish to say that I really
enjoy Org-Moding stuffs :)

I have many things to tweak, and surely questions to come...

But it seems I can give some input there.
I think I am doing something close to what you are trying to achieve.

In my custom agenda, I have edited the displayed content to show a
property "Loc" when I have actions that occur at a certain location,
like a meeting or rendez-vous.

I defined the entry that way, using the "%(expression)" specifier in 
"org-agenda-prefix-format" :


(agenda ""
   ((org-agenda-prefix-format " %i %-12:c%?-12t%(if (setq loc (org-entry-get 
(point) \"Loc\")) (concat \"[Loc:\" loc \"] \") \"\")% s")))



The output looks like:


Wednesday  16 March 2016
  FunnyStuff:  12:30-13:30 [Loc:Somewhere] NEXT Something to do



I think you should be able to do the same for a "search" entry, the
default "org-agenda-prefix-format" value for "search" is " %i %-12:c"
(see the help for the variable), you could adjust it to include you
property value.

So, with the column view answer from Herbert, you get two options.

I hope one will suit your needs,
Regards,

Christophe


> This search displays Some Task and Some subtask as expected, but how can 
> I also display 1234 as value of the property Project for both Some Task 
> as well as Some subtask?
>
> Not sure if this is relevant, but my .emacs includes
>
> (setq org-use-property-inheritance (quote ("Project")))
>
> Thanks
> Markus

-- 
--->  mailto:r3vli...@citadels.eu
Once it's perfectly aimed, the flying arrow goes straight to its target.
Thus, don't worry when things go right.
There will be enough time to worry about if they go wrong.
Then, it's time to fire a new arrow towards another direction.
Don't sink.  Adapt yourself !  The archer has to shoot accurately and quickly.
[Words of Erenthar, the bowman ranger] <---



Re: [O] Displaying property values in agenda search result

2016-03-15 Thread Markus Heller
Herbert Sitz  gmail.com> writes:

> 
> Markus Heller  gmail.com> writes:
> 
> > 
> > Hello,
> > 
> > how can I display property values in the agenda, more specifically, 
in 
> > the results of an agenda search?
> > 
> 
> I think the straigtforward way would be to use column view, and set up 
your
> column view to show, in your case, the PROJECT property.
> 
> See, sect. 10.8 of the manual, "Using column view in the agenda":
> http://orgmode.org/manual/Agenda-column-view.html#Agenda-column-view
> 
> as well as reviewing the basic column view info and directions for 
setup in
> sect 7.5, "Column view":
> http://orgmode.org/manual/Column-view.html#Column-view
> 

Thanks for the suggestion, but column view is *not* what I'm after.  I 
was able to tweak my approach a bit to make it workable.






Re: [O] Displaying property values in agenda search result

2016-03-15 Thread Herbert Sitz
Markus Heller  gmail.com> writes:

> 
> Hello,
> 
> how can I display property values in the agenda, more specifically, in 
> the results of an agenda search?
> 

I think the straigtforward way would be to use column view, and set up your
column view to show, in your case, the PROJECT property.

See, sect. 10.8 of the manual, "Using column view in the agenda":
http://orgmode.org/manual/Agenda-column-view.html#Agenda-column-view

as well as reviewing the basic column view info and directions for setup in
sect 7.5, "Column view":
http://orgmode.org/manual/Column-view.html#Column-view







[O] Displaying property values in agenda search result

2016-03-14 Thread Markus Heller
Hello,

how can I display property values in the agenda, more specifically, in 
the results of an agenda search?

Consider the following example:

* Some Project
:PROPERTIES:
:Project:  1234
:END:
** TODO Some Task
:PROPERTIES:
:CATEGORY: foo
:END:
*** NEXT Some subtask

I search using the following in my .emacs as part of a custom agenda 
command:

  ("i" "Text here" tags "CATEGORY=\"foo\""
   ((org-agenda-overriding-header "Header here")))

This search displays Some Task and Some subtask as expected, but how can 
I also display 1234 as value of the property Project for both Some Task 
as well as Some subtask?

Not sure if this is relevant, but my .emacs includes

(setq org-use-property-inheritance (quote ("Project")))

Thanks
Markus