diff --git a/NOTES.org b/NOTES.org index d2c0f3c..dcdfbe3 100644 --- a/NOTES.org +++ b/NOTES.org @@ -32,9 +32,9 @@ | M | P | Todo | Heading | |-----+---+---------+--------------------------------------------------------------------------------| | 0.6 | A | PROJECT | [[Compatibility with Org 9.4 custom link changes][Compatibility with Org 9.4 custom link changes]] | -| 0.6 | B | TODO | [[Add a ~:with-hour~ argument to ~scheduled~ predicate, et al][Add a ~:with-hour~ argument to ~scheduled~ predicate, et al]] | | 0.6 | B | TODO | [[Bookmarks save list of files instead of e.g. ~org-agenda-files~ when appropriate][Bookmarks save list of files instead of e.g. ~org-agenda-files~ when appropriate]] | | 0.6 | B | TODO | [[Use string queries in view headers when possible][Use string queries in view headers when possible]] | +| 0.6 | B | PROJECT | [[Add a ~:with-time~ argument to timestamp predicates][Add a ~:with-time~ argument to timestamp predicates]] | | 0.6 | B | PROJECT | [[Date-specific preambles for =ts= predicates][Date-specific preambles for =ts= predicates]] | | 0.6 | B | PROJECT | [[Group tag support][Group tag support]] | | 0.6 | B | PROJECT | [[Save view to dynamic block][Save view to dynamic block]] | @@ -64,15 +64,15 @@ ** Stuck projects ([[org-ql-search:%2528and%2520%2528todo%2520%2522PROJECT%2522%2529%2520%2528not%2520%2528descendants%2520%2528todo%2520%2522NEXT%2522%2520%2522UNDERWAY%2522%2529%2529%2529%2529?super-groups=%2528%2528%253Aauto-property%2520%2522milestone%2522%2529%2529&sort=%2528priority%2529&title=%2522Stuck%2520Projects%2522][view]]) #+BEGIN: org-ql :query (and (todo "PROJECT") (not (descendants (todo "NEXT" "UNDERWAY")))) :columns (((property "milestone") "M") (priority "P") heading) :sort (priority date) :take 7 -| M | P | Heading | -|-----+---+-------------------------------------------| -| | A | [[Convert simple sexp queries to non-sexp][Convert simple sexp queries to non-sexp]] | -| | A | [[Org%20link%20types%20%5B2/3%5D][Org link types {2/3}]] | -| 0.6 | B | [[Date-specific preambles for =ts= predicates][Date-specific preambles for =ts= predicates]] | -| | B | [[Outline path predicate][Outline path predicate]] | -| | B | [[Document the sorting functions][Document the sorting functions]] | -| | B | [[Recursive queries][Recursive queries]] | -| | B | [[Timeline view][Timeline view]] | +| M | P | Heading | +|-----+---+---------------------------------------------------| +| | A | [[Convert simple sexp queries to non-sexp][Convert simple sexp queries to non-sexp]] | +| | A | [[Org%20link%20types%20%5B2/3%5D][Org link types {2/3}]] | +| 0.6 | B | [[Add a ~:with-time~ argument to timestamp predicates][Add a ~:with-time~ argument to timestamp predicates]] | +| 0.6 | B | [[Date-specific preambles for =ts= predicates][Date-specific preambles for =ts= predicates]] | +| | B | [[Outline path predicate][Outline path predicate]] | +| | B | [[Document the sorting functions][Document the sorting functions]] | +| | B | [[Recursive queries][Recursive queries]] | #+END: * [#A] Tasks @@ -80,7 +80,6 @@ :TOC: :include descendants :depth 1 :END: :CONTENTS: -- [[#add-a-with-hour-argument-to-scheduled-predicate-et-al][Add a :with-hour argument to scheduled predicate, et al]] - [[#add-auto-keyword-to-planning-predicate][Add :auto keyword to (planning) predicate]] - [[#bookmarks-save-list-of-files-instead-of-eg-org-agenda-files-when-appropriate][Bookmarks save list of files instead of e.g. org-agenda-files when appropriate]] - [[#change-deadlines-auto-argument-to-auto-andor-auto-t][Change (deadline)'s auto argument to :auto and/or :auto t]] @@ -100,6 +99,8 @@ - [[#fancier-searching-for-inherited-tags][Fancier searching for inherited tags]] - [[#compatibility-with-org-94-custom-link-changes][Compatibility with Org 9.4 custom link changes]] - [[#convert-simple-sexp-queries-to-non-sexp][Convert simple sexp queries to non-sexp]] +- [[#add-a-with-time-argument-to-timestamp-predicates][Add a :with-time argument to timestamp predicates]] +- [[#optimized-date-specific-timestamp-regexps][Optimized, date-specific timestamp regexps]] - [[#optimization-for-olp-predicate][Optimization for olp predicate]] - [[#date-specific-preambles-for-ts-predicates][Date-specific preambles for ts predicates]] - [[#outline-path-predicate][Outline path predicate]] @@ -133,13 +134,6 @@ - [[#use-macros-for-date][Use macros for date]] :END: -** TODO [#B] Add a ~:with-hour~ argument to ~scheduled~ predicate, et al -:PROPERTIES: -:milestone: 0.6 -:END: - -Which would obviate the need to [[https://gist.github.com/mskorzhinskiy/fac0662a39a7b1bf5b306f175943bc97#file-org-ql-rasmi-el-L59][use the ~org-scheduled-time-hour-regexp~]] to find entries scheduled for a certain time of day. - ** TODO [#B] Add ~:auto~ keyword to ~(planning)~ predicate It should act like ~(or (deadline auto) (scheduled :to today))~. @@ -442,6 +436,29 @@ Unfortunately it does not say what the new, required second argument is. Maybe make it an option to automatically convert them when possible, because if a user wanted to add complexity to a string query, he'd have to rewrite it as a sexp. +** PROJECT [#B] Add a ~:with-time~ argument to timestamp predicates +:PROPERTIES: +:milestone: 0.6 +:END: + ++ In branch =wip/with-time=. + +Which would obviate the need to [[https://gist.github.com/mskorzhinskiy/fac0662a39a7b1bf5b306f175943bc97#file-org-ql-rasmi-el-L59][use the ~org-scheduled-time-hour-regexp~]] to find entries scheduled for a certain time of day. + +- [ ] ~deadline~ + - [ ] Tests +- [-] ~planning~ + - [ ] Tests + - [X] regexp defvar +- [ ] ~scheduled~ + - [ ] Tests +- [ ] ~ts~ + - [ ] Tests + +** PROJECT Optimized, date-specific timestamp regexps + +Rather than searching for generic timestamp regexps, we could build a regexp based on expected values in the timestamp. + ** PROJECT [#B] Optimization for ~olp~ predicate I noticed that, of course, a search like =h:bar olp:foo= is much faster than =olp:foo,bar=. Then I realized that the last argument to =olp= could be removed and replaced with a =heading= predicate with that argument, which is much faster.