Tom <levelha...@gmail.com> writes: > I see sparse trees can be constructed by searching for a regexp, but I > can't find the same ability for multiple searches. > > For example, I'd like to see entries which contains the words 'cat' and > 'dog' in any order. Or 'apple', 'orange', 'melon', 'plum' and 'pear' > in any order. > > Searching for multiple keywords in a single operation is a pretty > basic feature. I recommend adding it if currently there is no way to > do it in org.
For such searches, I use org-search-view: C-c a s +cat +dog [RET] This will pull up the headlines for all entries that contain the substrings cat and dog in any order. By default, org-search-view treats the entry as a single substring if there are no plus or minus signs. E.g., C-c a s cat dog [RET] ...will find only those entries that have the precise string "cat dog". For searches more like Google's (i.e., lazy booleans), you can set the variable org-agenda-search-view-always-boolean to t. Then, a search such as: C-c a s cat dog [RET] ...will find all entries that have the words cat and dog in any order. ,----[ C-h v org-agenda-search-view-always-boolean ] | When this is non-nil, the string will be split on whitespace, and each | snippet will be searched individually, and all must match in order to | select an entry. `---- If you want to force "cat" and "dog" to match full words only, you can set the variable org-agenda-search-view-force-full-words to t. Best, Matt _______________________________________________ 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