[Orgmode] How to do Properties search by define an agenda command

2010-11-10 Thread Chao LU
Dear all,

I'm trying to figure out how  to do Properties search by define an agenda
command.

Here is my item in org file:

*** Franz Schwabl / Quantum Mechanics
:PROPERTIES:
:TITLE: Quantum Mechanics
:AUTHOR: Franz Schwabl
:CATEGORY: Quantum Mechanics
:TAGS: Quantum Mechanics, Group Theory
:KEYWORD: Quantum Mechanics, Perturbation, Second Quantization
:LOCATION: iTune
:END:

And I want to define a agenda command to search this item out. I've tried
this one, but did not work:
 (19 TEST occur-tree Title=Quantum Mechanics)
 (19 TEST tags Title=Quantum Mechanics)

So is there anyone knows how to do this correctly?

Thanks,

Chao
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] How to do Properties search by define an agenda command

2010-11-10 Thread David Maus
At Wed, 10 Nov 2010 02:59:58 -0500,
Chao LU wrote:
 I'm trying to figure out how  to do Properties search by define an agenda
 command.

 Here is my item in org file:

 *** Franz Schwabl / Quantum Mechanics
 :PROPERTIES:
 :TITLE: Quantum Mechanics
 :AUTHOR: Franz Schwabl
 :CATEGORY: Quantum Mechanics
 :TAGS: Quantum Mechanics, Group Theory
 :KEYWORD: Quantum Mechanics, Perturbation, Second Quantization
 :LOCATION: iTune
 :END:

IIRC the space character of a property value must be escaped (%20)
because Org uses the plain space character to separate multiple values
in a property.  So the drawer should look like:

:PROPERTIES:
:TITLE: Quantum%20Mechanics
:AUTHOR: Franz%20Schwabl
:CATEGORY: Quantum%20Mechanics
:TAGS: Quantum%20Mechanics Group%20Theory
:KEYWORD: Quantum%20Mechanics Perturbation Second%20Quantization
:LOCATION: iTune
:END:

But now, sadly, that's all we've got.  The search engine can only
search for equal strings (e.g. TITLE=Quantum%20Mechanics) or regular
expression and it does not handle multivalue properties.

Looks like to use the intended functionality someone has to patch Org
mode's tag search to handle multivalue properties.

Best,
  -- David


--
OpenPGP... 0x99ADB83B5A4478E6
Jabber dmj...@jabber.org
Email. dm...@ictsoc.de


pgpqoHVkpzpoJ.pgp
Description: PGP signature
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode