Commit graph

766 commits

Author SHA1 Message Date
Ihor Radchenko
67618c45cf
Add tests 2021-08-14 13:17:08 +08:00
Ihor Radchenko
60c67b4cd3
Fix preamble for body in when and unless predicates 2021-08-14 13:17:07 +08:00
Ihor Radchenko
93a7f5c8dd
Simplify code 2021-08-14 13:17:07 +08:00
Ihor Radchenko
204e2d239e
Fix shadowed pcase clause 2021-08-14 13:17:06 +08:00
Ihor Radchenko
387594ed36
Update docstrings 2021-08-14 13:17:05 +08:00
Ihor Radchenko
f05ae55371
fixup! Remove unnecessary save-excursion 2021-08-14 13:17:04 +08:00
Ihor Radchenko
3c1550e5d1
Remove unnecessary save-excursion 2021-08-14 13:17:04 +08:00
Ihor Radchenko
b4ff5cc423
Use human-readable recursive function name for normalizers and preambles 2021-08-14 13:17:00 +08:00
Ihor Radchenko
e3f45f36e0
Use alternative way to suppress warnings 2021-08-14 13:14:01 +08:00
Ihor Radchenko
dc6f2d2501
Avoid compiler warnings when defining predicate without body 2021-08-14 13:14:01 +08:00
Ihor Radchenko
3e6818d819
Bypass narrowing when calculating inherited tags in narrowed buffer
Otherwise, children queries may generate wrong tags and pollute tag cache.
2021-08-14 13:13:56 +08:00
Ihor Radchenko
9b30c4139b
Take clauses from preambles when possible 2021-08-14 13:13:15 +08:00
Ihor Radchenko
e1a464fb2c
Update clauses in boolean preambles 2021-08-14 13:13:15 +08:00
Ihor Radchenko
1b794a5083
Implement boolean preambles 2021-08-14 13:13:14 +08:00
Adam Porter
94f9e6f303 Add/Change: reverse sorter, and reverse sorting order
This is a breaking change of sorts in that searches using multiple
sorting methods will have to have the order of the sorters reversed to
get the same result.  Unfortunate, but I think it's worth it in the
end, and this is pre-1.0, anyway.

Fixes #143.
2021-07-12 21:33:24 -05:00
Ihor Radchenko
8342656b2d Fix: (org-ql-regexp-part-ts-repeaters) Habit repeaters with min/max
Closes #226.
2021-06-24 08:14:39 -05:00
Adam Porter
822bb774cd Tests: Use min/max-style habit repeater in a timestamp
See #226.
2021-06-24 08:14:16 -05:00
Adam Porter
e2a1d16cc4 Tests: Normalization of tags-inherited predicate
See #216.
2021-06-23 01:47:05 -05:00
Ihor Radchenko
1198284c7e Fix: (org-ql-regexp-part-ts-repeaters) Repeaters with a "."
Fixes #225.
2021-06-23 01:26:10 -05:00
Adam Porter
32f7e48e12 Tests: Add "." to a timestamp repeater
See #225.
2021-06-23 01:21:59 -05:00
Adam Porter
e03fb24f9b Fix: (outline-path) Normalizer infinite loop
Hopefully there aren't more of these lurking, but with the recent
--normalize-query change, there might be...
2021-06-21 07:55:58 -05:00
Adam Porter
482a5c939b Fix: Cache invalidation of relative-date ts-related predicates
Fixes #223.  Thanks to Ihor Radchenko (@yantar92) for reporting.
2021-06-21 06:18:03 -05:00
Adam Porter
87b3d0bd97 Add: :with-time argument for timestamp predicates
Squashed commit of the following:

commit 5d43309c55
Author: Adam Porter <adam@alphapapa.net>
Date:   Sat Jun 19 02:24:08 2021 -0500

    WIP: Allow "with-time=" in string queries

commit 9e683e17c1
Author: Adam Porter <adam@alphapapa.net>
Date:   Sat Jun 19 02:09:42 2021 -0500

    WIP: Update docstrings, comments, and readme

commit 8e93f4cbb3
Author: Adam Porter <adam@alphapapa.net>
Date:   Sat Jun 19 00:18:21 2021 -0500

    WIP: Tidy

commit 26c58c6c77
Author: Adam Porter <adam@alphapapa.net>
Date:   Fri Jun 18 23:55:42 2021 -0500

    WIP

commit a24b41d7e5
Author: Adam Porter <adam@alphapapa.net>
Date:   Fri Jun 18 22:27:43 2021 -0500

    WIP

commit 71857f9b43
Author: Adam Porter <adam@alphapapa.net>
Date:   Fri Jun 18 00:05:53 2021 -0500

    WIP: (ts :with-time) and supporting changes

commit 745e53b313
Author: Adam Porter <adam@alphapapa.net>
Date:   Thu Jun 17 22:54:51 2021 -0500

    Add: New timestamp regexps

commit f87be23954
Author: Adam Porter <adam@alphapapa.net>
Date:   Thu Jun 17 20:03:02 2021 -0500

    WIP

commit e893e65207
Author: Adam Porter <adam@alphapapa.net>
Date:   Sat Dec 19 03:54:11 2020 -0600

    WIP: Add with-time arg to timestamp predicates
2021-06-19 03:28:14 -05:00
Adam Porter
88151b7f00 Fix: (org-ql-view--complete-sort) Add random method
Such a minor omission, not worth a release or changelog entry.
2021-06-17 18:58:48 -05:00
Adam Porter
84e48d9d2f Docs: Mention non-sexp syntax as applies to (effort) and (level) 2021-06-16 21:05:40 -05:00
Adam Porter
d8bfa2317a Add: (effort) predicate
Closes #80.
2021-06-16 20:44:00 -05:00
Adam Porter
0dc073ffac Comment: Add TODO 2021-06-16 20:01:24 -05:00
Akira Komamura
bd6487e814 Meta: Add Emacs 27.2 to CI 2021-06-16 19:12:08 -05:00
Adam Porter
55f5708cc0 Tests: Fix link-to-self-buffer-search test
Also, ensure that views that search non-file-backed buffers can’t be
linked to.

This fixes the test failures on Emacs 27.2 and Emacs 28
pre-release.  (I can't explain why this test didn't fail on earlier
versions, but it's not worth figuring out.)
2021-06-16 19:09:20 -05:00
Akira Komamura
1421dda20c Fix: (link) :regexp-p argument 2021-06-16 17:57:43 -05:00
Akira Komamura
410888e449 Fix: (link) :target argument 2021-06-16 17:57:41 -05:00
Adam Porter
831a21b63e Merge: 0.5.2
NOTE: Due to changes between 0.5 and 0.6, the fixes don't merge
cleanly, so they will be applied in subsequent commits.  See #220.
2021-06-16 17:54:33 -05:00
Adam Porter
d3b0ef2f51 Release: 0.5.2 2021-06-16 17:45:20 -05:00
Adam Porter
eead60be8c Docs: Update changelog 2021-06-16 17:42:40 -05:00
Adam Porter
0cc4c5b549 Fix: (link) :regexp-p argument
See #220.  Thanks to Akira Komamura (@akirak).
2021-06-16 17:42:40 -05:00
Akira Komamura
e05de210c7 Fix: (link) :target argument
See #220.
2021-06-16 17:42:35 -05:00
Adam Porter
c57f0975f6 Tests: Add more LINK tests
Closes https://github.com/alphapapa/org-ql/pull/222.  See also
https://github.com/alphapapa/org-ql/pull/220.

Thanks to Akira Komamura (@akirak).
2021-06-16 17:28:00 -05:00
Adam Porter
5bba08403d Meta: 0.5.2-pre 2021-06-16 17:26:44 -05:00
Adam Porter
3c7a93d71f Merge: 0.5.1 2021-06-08 11:17:29 -05:00
Adam Porter
3a04b10738 Release: 0.5.1 2021-06-08 11:12:44 -05:00
Adam Porter
832adfee20 Merge: Fix custom sorting functions 2021-06-08 11:09:22 -05:00
Adam Porter
628fce8f13 Docs: Update changelog 2021-06-08 11:06:54 -05:00
savnkk_manjaro
dc32dcdaaa Fix: (org-ql-select) Use -sort instead of sort
Fixes #186.
2021-06-08 11:03:48 -05:00
Adam Porter
7a8e3b2e8e Tidy: Indentation
Due to changes in dash.
2021-06-08 10:56:05 -05:00
Adam Porter
105715309e Merge: Update dash dependencies 2021-06-08 10:49:37 -05:00
Adam Porter
7b701cc379 Docs: Update changelog 2021-06-08 10:48:37 -05:00
Adam Porter
5b248f3304 Meta: 0.5.1-pre 2021-06-08 10:39:09 -05:00
Mark Hudnall
21b3bd2d6a Change: Bump dash.el to fix helm-org-ql
See https://github.com/alphapapa/org-ql/issues/179.  dash.el 2.18.1
fixed an issue with `-flatten-n` that was causing `helm-org-ql`
functions to fail silently.
2021-06-08 10:21:45 -05:00
Basil L. Contovounesios
c9fe19969e Change: Don't depend on deprecated dash-functional
Dash 2.18.0 now subsumes dash-functional.

See https://github.com/magnars/dash.el/blob/master/NEWS.md#from-217-to-218
2021-02-28 15:01:03 -08:00
Adam Porter
208e103ecc Tidy: Function declarations
Using the FILEONLY argument of declare-function doesn't seem to be
enough to silence the check-declare warning, so maybe also using
"ext:" will do it.
2020-12-13 07:58:54 -06:00