From bc679f6a07eaf03f9d91a1abc992e0ba114ffb3e Mon Sep 17 00:00:00 2001 From: Adam Porter Date: Thu, 26 Nov 2020 06:49:39 -0600 Subject: [PATCH] Update --- NOTES.org | 100 ++++++++++++++++++++++++++++-------------------------- 1 file changed, 51 insertions(+), 49 deletions(-) diff --git a/NOTES.org b/NOTES.org index 1105c14..a43dbb1 100644 --- a/NOTES.org +++ b/NOTES.org @@ -27,13 +27,28 @@ | | | NEXT | [[Check Org 9.4 source code for second argument][Check Org 9.4 source code for second argument]] | #+END: +** Milestones ([[org-ql-search:todo%253A?super-groups=%2528%2528%253Aauto-property%2520%2522milestone%2522%2529%2529&sort=%2528todo%2529&title=%2522Milestones%2522][view]]) + +#+BEGIN: org-ql :query "todo: property:milestone" :columns (((property "milestone") "M") (priority "P") todo heading) :sort (priority date) :take 7 +| 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 | [[Use string queries in view headers when possible][Use string queries in view headers when possible]] | +| 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 | [[Predicate helper functions][Predicate helper functions]] | +| future | C | MAYBE | [[Alternative parsing libraries][Alternative parsing libraries]] | +| future | C | MAYBE | [[Experiment with =widget=][Experiment with =widget=]] | +#+END: + ** Underway ([[org-ql-search:todo%253AUNDERWAY?sort=%2528priority%2529&title=%2522Underway%2522][view]]) -#+BEGIN: org-ql :query "todo:UNDERWAY" :columns (((property "milestone") "M") (priority "P") (todo "Keyword") heading) :sort (priority date) :ts-format "%Y-%m-%d %H:%M" -| M | P | Keyword | Heading | -|---+---+----------+--------------------------------------------------------------------| -| | B | UNDERWAY | [["Node" caching]["Node" caching]] | -| | | UNDERWAY | [[Benchmarking tags searches without and with new group-tags support][Benchmarking tags searches without and with new group-tags support]] | +#+BEGIN: org-ql :query (or (todo "UNDERWAY") (and (todo "PROJECT") (descendants (todo "UNDERWAY")))) :columns (((property "milestone") "M") (priority "P") (todo "Keyword") heading) :sort (priority date) :ts-format "%Y-%m-%d %H:%M" +| M | P | Keyword | Heading | +|-----+---+----------+--------------------------------------------------------------------| +| 0.6 | B | PROJECT | [[Group tag support][Group tag support]] | +| | B | UNDERWAY | [["Node" caching]["Node" caching]] | +| | | UNDERWAY | [[Benchmarking tags searches without and with new group-tags support][Benchmarking tags searches without and with new group-tags support]] | #+END: ** To-do ([[org-ql-search:todo:?super-groups=((:todo%20"NEXT")%20(:todo%20"PROJECT")%20(:auto-priority))&sort=(todo)][view]]) @@ -43,36 +58,21 @@ |---+-----+---------+------------------------------------------------| | A | 0.6 | PROJECT | [[Compatibility with Org 9.4 custom link changes][Compatibility with Org 9.4 custom link changes]] | | A | | PROJECT | [[Convert simple sexp queries to non-sexp][Convert simple sexp queries to non-sexp]] | -| A | | TODO | [[Merge new defpred into master][Merge new defpred into master]] | | A | | PROJECT | [[Org%20link%20types%20%5B2/3%5D][Org link types {2/3}]] | #+END: ** 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 | [[Define predicates with a macro][Define predicates with a macro]] | -| | 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]] | -#+END: - -** Milestones ([[org-ql-search:todo%253A?super-groups=%2528%2528%253Aauto-property%2520%2522milestone%2522%2529%2529&sort=%2528todo%2529&title=%2522Milestones%2522][view]]) - -#+BEGIN: org-ql :query "todo: property:milestone" :columns (((property "milestone") "M") (priority "P") todo heading) :sort (priority date) :take 7 -| 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 | [[Use string queries in view headers when possible][Use string queries in view headers when possible]] | -| 0.6 | B | PROJECT | [[Define predicates with a macro][Define predicates with a macro]] | -| 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 | [[Predicate helper functions][Predicate helper functions]] | -| future | C | MAYBE | [[Alternative parsing libraries][Alternative parsing libraries]] | +| 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}]] | +| | 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]] | +| | B | [[Implement view with tabulated-list-mode or magit-section][Implement view with tabulated-list-mode or magit-section]] | #+END: * [#A] Tasks @@ -96,7 +96,6 @@ - [[#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]] -- [[#define-predicates-with-a-macro][Define predicates with a macro]] - [[#outline-path-predicate][Outline path predicate]] - [[#tools-for-saving-queries-and-accessing-them-34][Tools for saving queries and accessing them {3/4}]] - [[#group-tag-support][Group tag support]] @@ -118,6 +117,7 @@ - [[#fix-org-ql-view--link-open-on-org-93][Fix org-ql-view--link-open on Org 9.3+]] - [[#fix-query-sexp-to-string-functions-handling-of-eg-descendants][Fix query-sexp-to-string function's handling of, e.g. descendants]] - [[#helm-command][Helm command]] +- [[#define-predicates-with-a-macro][Define predicates with a macro]] - [[#move-this-notes-file-into-an-orphan-metanotes-branch][Move this notes file into an orphan meta/notes branch]] - [[#quickly-change-sortinggrouping-in-search-views][Quickly change sorting/grouping in search views]] - [[#byte-compile-lambdas][Byte-compile lambdas]] @@ -382,25 +382,6 @@ 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] Define predicates with a macro -:PROPERTIES: -:milestone: 0.6 -:END: - -[2020-11-21 Sat 16:40] i.e. the macro defines the predicate, preamble, and normalizer in one form. WIP on the =wip/define-predicate= branch. Seems to be working well so far. - -[2020-11-22 Sun 17:17] Everything is converted, everything works, and all the tests pass. Worked out just as I hoped. Will merge for 0.6. - -*** TODO [#A] Merge new defpred into master - -*** TODO Test defining custom predicates in user config - -*** TODO Show how to define custom predicates - -*** DONE Run tests - -*** DONE Convert all predicates to new macro - ** PROJECT [#B] Outline path predicate [2019-10-07 Mon 11:15] There are two potential types of matching on outline paths: matching on any part of the outline path, and matching a specific path. For example, with this file: @@ -1761,6 +1742,27 @@ Well, a bit of fiddling (lots of trial-and-error required) produced this: That seems pretty usable! +** DONE [#B] Define predicates with a macro +:PROPERTIES: +:milestone: 0.6 +:END: + +[2020-11-21 Sat 16:40] i.e. the macro defines the predicate, preamble, and normalizer in one form. WIP on the =wip/define-predicate= branch. Seems to be working well so far. + +[2020-11-22 Sun 17:17] Everything is converted, everything works, and all the tests pass. Worked out just as I hoped. Will merge for 0.6. + +*** DONE [#A] Merge new defpred into master + +*** DONE Test defining custom predicates in user config + +*** DONE Show how to define custom predicates + +Tutorial is published. + +*** DONE Run tests + +*** DONE Convert all predicates to new macro + ** DONE [#B] Move this notes file into an orphan =meta/notes= branch [2020-11-12 Thu 03:17] Will probably have to merge or delete some WIP branches first, otherwise they'll probably get conflicts.