emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Christophe Schockaert
Subject: Re: [O] Displaying property values in agenda search result
Date: Tue, 15 Mar 2016 22:06:54 +0100

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" :

<excerpt src="org-agenda-custom-commands">
(agenda ""
   ((org-agenda-prefix-format " %i %-12:c%?-12t%(if (setq loc (org-entry-get 
(point) \"Loc\")) (concat \"[Loc:\" loc \"] \") \"\")% s")))
</excerpt>


The output looks like:

<excerpt src="agenda output">
Wednesday  16 March 2016
  FunnyStuff:  12:30-13:30 [Loc:Somewhere] NEXT Something to do
</excerpt>


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:address@hidden
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] <---------------<<<<



reply via email to

[Prev in Thread] Current Thread [Next in Thread]