emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-agenda queries for absent properties
@ 2023-07-30 17:13 Jens Schmidt
  2023-07-31  6:45 ` Ihor Radchenko
  0 siblings, 1 reply; 11+ messages in thread
From: Jens Schmidt @ 2023-07-30 17:13 UTC (permalink / raw)
  To: Org-mode

The following was initially meant as bug report until I understood that
it's actually some sort of feature ...

Consider the following todo list:

-------------------- todos.org --------------------
* TODO relax

* TODO do this
:PROPERTIES:
:patchday: 202302
:END:

* TODO do that
:PROPERTIES:
:patchday: 202305
:END:

* TODO work harder
:PROPERTIES:
:patchday: 202308
:END:
-------------------- todos.org --------------------

When I use an agenda query

   patchday>=202305

on that I get the result:

   Headlines with TAGS match: patchday>=202305
   Press ‘C-u r’ to search again
     todos:      TODO do that
     todos:      TODO work harder

However for the following:

   patchday<=202305

I get

   Headlines with TAGS match: patchday<=202305
   Press ‘C-u r’ to search again
     todos:      TODO relax
     todos:      TODO do this
     todos:      TODO do that

since the absent property "patchday" on the "relax" todo entry is
defaulted to value zero, obviously.

So I would like to have something easier to type (and remember! why not
"!=" or "/="?) then

   patchday<>0&patchday<=202305

How about starred agenda property operators that match only if the
operand property is actually present, which would result in this query:

   patchday<=*202305

Section <info:org#Matching tags and properties> does not seem to provide
any information on "definedness" expressions for properties.

Thanks.


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

end of thread, other threads:[~2023-08-08  7:04 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-30 17:13 org-agenda queries for absent properties Jens Schmidt
2023-07-31  6:45 ` Ihor Radchenko
2023-08-01 18:50   ` Jens Schmidt
2023-08-02  6:45     ` Ihor Radchenko
2023-08-05 10:56       ` Jens Schmidt
2023-08-06  7:55         ` Ihor Radchenko
2023-08-06  9:19           ` Jens Schmidt
2023-08-06 14:42             ` Jens Schmidt
2023-08-07 11:53               ` Ihor Radchenko
2023-08-07 20:20                 ` Jens Schmidt
2023-08-08  7:04                   ` Ihor Radchenko

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