emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* multiple property values possible similar to multiple tags?
@ 2017-09-08  6:45 Xebar Saram
  2017-09-10  8:11 ` Nicolas Goaziou
  0 siblings, 1 reply; 2+ messages in thread
From: Xebar Saram @ 2017-09-08  6:45 UTC (permalink / raw)
  To: org mode

[-- Attachment #1: Type: text/plain, Size: 458 bytes --]

Hi all

I have this example property drawer in a capture template

:PROPERTIES:
:ID: %(org-id-uuid)
:PLACE: %^{Place?|-|@work|@home|@pc|@family|@shop}
:END:

i was wondering, is it possible for a single property to take multiple
value? im thinking something similar to tags like

:TAG1:TAG2:

i would have a property value of

:PLACE: @home @ shop

and if its possible will i be able to search agenda etc values based on
just 1 of these properties?

best

Z

[-- Attachment #2: Type: text/html, Size: 775 bytes --]

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

* Re: multiple property values possible similar to multiple tags?
  2017-09-08  6:45 multiple property values possible similar to multiple tags? Xebar Saram
@ 2017-09-10  8:11 ` Nicolas Goaziou
  0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Goaziou @ 2017-09-10  8:11 UTC (permalink / raw)
  To: Xebar Saram; +Cc: org mode

Hello,

Xebar Saram <zeltakc@gmail.com> writes:

> Hi all
>
> I have this example property drawer in a capture template
>
> :PROPERTIES:
> :ID: %(org-id-uuid)
> :PLACE: %^{Place?|-|@work|@home|@pc|@family|@shop}
> :END:
>
> i was wondering, is it possible for a single property to take multiple
> value?

It is, per (info "(org) Using the property API"). See, e.g.,
`org-entry-get-multivalued-property'.

It is meant to be used in Elisp function, not as-is in an usual Org
workflow, though.

> im thinking something similar to tags like
>
> :TAG1:TAG2:
>
> i would have a property value of
>
> :PLACE: @home @ shop
>
> and if its possible will i be able to search agenda etc values based on
> just 1 of these properties?

You would need to use it within a custom search (or filter) function,
I guess. I haven't checked if and how that's possible.

Regards,

-- 
Nicolas Goaziou

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

end of thread, other threads:[~2017-09-10  8:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-08  6:45 multiple property values possible similar to multiple tags? Xebar Saram
2017-09-10  8:11 ` Nicolas Goaziou

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