emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* searching properties, not tags
@ 2012-12-27 17:22 Christopher W. Ryan
  2012-12-27 19:58 ` Bastien
  0 siblings, 1 reply; 3+ messages in thread
From: Christopher W. Ryan @ 2012-12-27 17:22 UTC (permalink / raw)
  To: emacs-orgmode

From what I have seen, most of the org-mode manual documentation about
searching or matching tags and properties is about the former, rather
than the latter. How would I search out all the headlines that have a
property of a certain value?  For example:

** Tigger
   :PROPERTIES:
   :species:  tiger
   :color:    striped
   :clothing: none
   :END:
** Eeyore
   :PROPERTIES:
   :species:  donkey
   :color:    grey
   :clothing: none
   :END:
** Winnie The Pooh
   :PROPERTIES:
   :species:  bear
   :color:    yellow
   :clothing: red shirt
   :END:

How would I search for all the tigers?

Thanks.

--Chris Ryan

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

* Re: searching properties, not tags
  2012-12-27 17:22 searching properties, not tags Christopher W. Ryan
@ 2012-12-27 19:58 ` Bastien
  2012-12-27 20:52   ` Christopher W. Ryan
  0 siblings, 1 reply; 3+ messages in thread
From: Bastien @ 2012-12-27 19:58 UTC (permalink / raw)
  To: Christopher W. Ryan; +Cc: emacs-orgmode

Hi Christopher,

"Christopher W. Ryan" <cryan@binghamton.edu> writes:

> How would I search for all the tigers?

(setq org-agenda-custom-commands
      '(("o" "List of tigers"
	 ((tags "+species=\"tiger\")))))

HTH,

-- 
 Bastien

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

* Re: searching properties, not tags
  2012-12-27 19:58 ` Bastien
@ 2012-12-27 20:52   ` Christopher W. Ryan
  0 siblings, 0 replies; 3+ messages in thread
From: Christopher W. Ryan @ 2012-12-27 20:52 UTC (permalink / raw)
  To: emacs-orgmode

Well, that put me on the right track. I wasn't looking for a persistent
custom search command, just one I could execute ad hoc, since sometimes
I'd be looking for tigers and sometimes for bears, etc.

But with this to go on, I found that

C-c a m species="tiger"

does what I want.

Previously, my problem was I was not using the quotes.

Thanks.

--Chris

Bastien wrote:
> Hi Christopher,
> 
> "Christopher W. Ryan" <cryan@binghamton.edu> writes:
> 
>> How would I search for all the tigers?
> 
> (setq org-agenda-custom-commands
>       '(("o" "List of tigers"
> 	 ((tags "+species=\"tiger\")))))
> 
> HTH,
> 

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

end of thread, other threads:[~2012-12-27 20:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-27 17:22 searching properties, not tags Christopher W. Ryan
2012-12-27 19:58 ` Bastien
2012-12-27 20:52   ` Christopher W. Ryan

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