0

I understand from the manual that the command for doing a search of agenda entries which have a timestamp before today is as follows:

TIMESTAMP<"<today>"

If I additionally want to remove from that search DONE items, I must do:

TIMESTAMP<"<today>"/!-DONE

However, this search only returns timestamped items WITH a TODO status except the DONE status, while leaving out all the timestamped entries without any status. Is is possible to retrieve these too?

Thanks!

1 Answer 1

1

try +TIMESTAMP<"<today>"-TODO="DONE"

6
  • Thank you! How would I add more TODO statuses? For instance, if I want to exclude not only DONE items but also CANCELED and NOT ATTENDED items? Commented Feb 18, 2022 at 9:58
  • +TIMESTAMP<"<today>"-TODO="DONE"-TODO="CANCELED" (I'm not sure what NOT ATTENDED is, you can check section Special Properties in org manual whether something matches) Commented Feb 18, 2022 at 11:17
  • 1
    Just before ", try (add-to-list 'org-agenda-custom-commands '("T" "Timestamp Before today" ((tags "TIMESTAMP<\"<today>\"-TODO=\"DONE\"-TODO=\"CANCELED\"-TODO=\"NOT ATTENDED\"")))) Commented Feb 19, 2022 at 11:47
  • 1
    You should not ask additional questions in a comment: there is no way to seach to find answers to such questions (even if they are asnwered). Some people modify a question after it is answered: you should not do that either. If the answer has answered your question, accept it (as you did), optionally mark it as useful by clicking the up arrow and that's that. If you have an additional question, ask a new question, possibly referring back to this one for context. That way, crisp questions have crisp answers that will be useful to others in the future.
    – NickD
    Commented Feb 19, 2022 at 21:01
  • 1
    Thanks, point taken. Commented Feb 21, 2022 at 7:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.