aartist
aartist

Reputation: 3236

How to sort/search by property value in emacs orgmode and/or agenda view?

I have org-mode TODO items and I am using property to enter the entry-date via org-capture-templates. This is date of entry and not scheduled date. I have...

:PROPERTIES: :Entered: [2015-08-12 Wed 17:07] :END: Now I need to search all the item that were entered on or after certain dates. I can also use the sorting by entry timestamp.
Thanks.

Upvotes: 8

Views: 3212

Answers (4)

midas0441
midas0441

Reputation: 111

For sorting by property... Use M-x org-sort-entries [RET] r. Change r to R for reversing order. For more on org-sort-entries, use C-h f org-sort-entries.

Upvotes: 1

abo-abo
abo-abo

Reputation: 20362

You can try swiper - it's a command that works similarly to isearch. It will automatically reveal any hidden outlines that match. The input 15 8 12 will actually match 2015-08-12 since single spaces act as wild cards.

Example screenshot:

swiper.png
(source: oremacs.com)

Upvotes: 1

fritz_da_silva
fritz_da_silva

Reputation: 101

Use C-c a m

then enter:

 Entered>="<2016-06-01>"

This will search items with property "Entered" with date values exactly equals or after [2016-06-01]. It will not sort the items by newest or oldest.

Upvotes: 0

bzg
bzg

Reputation: 2605

I suggest using org-sparse-tree (C-c /). It won't work with timestamps in a property, but you can put timestamps in the headline or on the line below and org-sparse-tree will find it.

Upvotes: 2

Related Questions