From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christophe Schockaert Subject: Re: Displaying property values in agenda search result Date: Tue, 15 Mar 2016 22:06:54 +0100 Message-ID: <871t7be9ht.fsf@artlab.createcnix.lan> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55861) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1afwBJ-0006hM-6z for emacs-orgmode@gnu.org; Tue, 15 Mar 2016 17:07:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1afwBF-0007xt-6Q for emacs-orgmode@gnu.org; Tue, 15 Mar 2016 17:07:09 -0400 Received: from smtp1.tech.numericable.fr ([82.216.111.37]:57484) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1afwBE-0007xo-Vc for emacs-orgmode@gnu.org; Tue, 15 Mar 2016 17:07:05 -0400 In-reply-to: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Markus Heller Cc: emacs-orgmode@gnu.org Markus Heller writes: > Hello, > > how can I display property values in the agenda, more specifically, in=20 > the results of an agenda search? > > [...] > > I search using the following in my .emacs as part of a custom agenda=20 > command: > > ("i" "Text here" tags "CATEGORY=3D\"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"=C2=A0: (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 ca= n=20 > I also display 1234 as value of the property Project for both Some Task= =20 > as well as Some subtask? > > Not sure if this is relevant, but my .emacs includes > > (setq org-use-property-inheritance (quote ("Project"))) > > Thanks > Markus --=20 ---------------> mailto:R3vLibre@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 qui= ckly. [Words of Erenthar, the bowman ranger] <---------------<<<<