This commit is contained in:
Adam Porter 2020-12-19 03:56:47 -06:00
parent bae9f8b9a9
commit b836662c24

View file

@ -32,9 +32,9 @@
| M | P | Todo | Heading | | 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 | 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 | [[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 | 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 | [[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 | [[Group tag support][Group tag support]] |
| 0.6 | B | PROJECT | [[Save view to dynamic block][Save view to dynamic block]] | | 0.6 | B | PROJECT | [[Save view to dynamic block][Save view to dynamic block]] |
@ -65,14 +65,14 @@
#+BEGIN: org-ql :query (and (todo "PROJECT") (not (descendants (todo "NEXT" "UNDERWAY")))) :columns (((property "milestone") "M") (priority "P") heading) :sort (priority date) :take 7 #+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 | | M | P | Heading |
|-----+---+-------------------------------------------| |-----+---+---------------------------------------------------|
| | A | [[Convert simple sexp queries to non-sexp][Convert simple sexp queries to non-sexp]] | | | 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}]] | | | 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]] | | 0.6 | B | [[Date-specific preambles for =ts= predicates][Date-specific preambles for =ts= predicates]] |
| | B | [[Outline path predicate][Outline path predicate]] | | | B | [[Outline path predicate][Outline path predicate]] |
| | B | [[Document the sorting functions][Document the sorting functions]] | | | B | [[Document the sorting functions][Document the sorting functions]] |
| | B | [[Recursive queries][Recursive queries]] | | | B | [[Recursive queries][Recursive queries]] |
| | B | [[Timeline view][Timeline view]] |
#+END: #+END:
* [#A] Tasks * [#A] Tasks
@ -80,7 +80,6 @@
:TOC: :include descendants :depth 1 :TOC: :include descendants :depth 1
:END: :END:
:CONTENTS: :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]] - [[#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]] - [[#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]] - [[#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]] - [[#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]] - [[#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]] - [[#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]] - [[#optimization-for-olp-predicate][Optimization for olp predicate]]
- [[#date-specific-preambles-for-ts-predicates][Date-specific preambles for ts predicates]] - [[#date-specific-preambles-for-ts-predicates][Date-specific preambles for ts predicates]]
- [[#outline-path-predicate][Outline path predicate]] - [[#outline-path-predicate][Outline path predicate]]
@ -133,13 +134,6 @@
- [[#use-macros-for-date][Use macros for date]] - [[#use-macros-for-date][Use macros for date]]
:END: :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 ** TODO [#B] Add ~:auto~ keyword to ~(planning)~ predicate
It should act like ~(or (deadline auto) (scheduled :to today))~. 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. 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 ** 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. 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.