Commit graph

332 commits

Author SHA1 Message Date
Adam Porter
ac2d43588a Add: (org-ql-find-path) 2023-10-19 21:44:26 -05:00
Adam Porter
ab720689e9 Change: (org-ql-find) Interactively, search relevant buffers 2023-09-30 20:09:12 -05:00
Adam Porter
a41dfe25ea Docs: Update changelog, usage 2023-09-27 15:02:40 -05:00
Adam Porter
5c9d4cdb48 Docs: Update changelog 2023-09-27 13:40:30 -05:00
Adam Porter
0a0291288e Meta: v0.8-pre 2023-09-27 13:36:18 -05:00
Adam Porter
f9d4f62415 Release: v0.7.2 2023-09-27 00:21:21 -05:00
Adam Porter
56e203110b Fix: (org-ql-completing-read) Warn about empty headings 2023-09-26 20:48:59 -05:00
Adam Porter
be20dc3d5b Fix: (org-ql-find) Use org-with-point-at
I keep pointing out to other people that they should use
org-with-point-at, but I still have places in my own code where I need
to use it, too!
2023-09-26 13:42:00 -05:00
Adam Porter
95abce2340 Fix: (org-ql-completing-read) :query-prefix prevented selection
COMPLETING-READ, when used with its REQUIRE-MATCH argument, would not
allow a result to be selected when ORG-QL-FIND was called with its
QUERY-PREFIX argument.

This change moves where the query is modified to include the prefix,
putting it into the RUN-QUERY function instead of the COLLECTION
function.  It seems to solve the problem, and the function seems to
still work when used without QUERY-PREFIX.  However, due to the
complexity of all this (we really need a SELECTING-READ API), it
wouldn't surprise me if something is later found to have been broken
by it...

Fixes #351.

Reported-by: Daniel Fleischer <https://github.com/danielfleischer>
2023-09-14 08:10:49 -05:00
Adam Porter
131407814e Fix: (org-ql--def-query-string-to-sexp-fn) Ignore leading blanks 2023-09-08 02:22:40 -05:00
Adam Porter
f65b1d91a4 Fix: (org-ql--normalize-from-to-on) Tolerate "-" input
Avoids errors while typing a query (e.g. a negative number) into
org-ql-find, which interrupts completion altogether.
2023-09-06 20:51:41 -05:00
Adam Porter
3622b92403 Meta: v0.7.2-pre 2023-09-06 20:49:12 -05:00
Adam Porter
d776e205d5 Release: v0.7.1 2023-09-06 18:57:36 -05:00
Adam Porter
2d29d69133 Docs: Update changelog 2023-09-06 16:08:54 -05:00
Adam Porter
898addeee9 Docs: Tidy
The circumstances which precipitated this expression of support for
fellow developers thankfully passed some time ago.
2023-09-04 22:40:52 -05:00
Adam Porter
2c098540ca Fix: (org-ql-completing-read) Format links before display
Also use org-entry-get to get the heading, which should avoid issues
with different Org versions having different optional arguments to
org-get-heading.
2023-05-05 17:25:21 -05:00
Adam Porter
4c1a4b169f Fix: (org-ql-completing-read)
This seems to work better now with default Emacs completion (i.e. not
using Vertico or Helm).  It's still not perfect, but it seems to work
reasonably well and be more correct.

Fixes #338.  Thanks to @arozbiz for reporting.
2023-03-12 09:33:28 -05:00
Adam Porter
ce66f67c96 Meta: v0.7.1-pre 2023-03-12 05:59:13 -05:00
Adam Porter
aadddc4d84 Release: v0.7 2023-03-10 06:25:45 -06:00
Adam Porter
9e14f9eefa Fix: (link) Allow brackets in description
Org 9.3 stopped replacing brackets in link descriptions with braces
and started escaping them instead.

Fixes #283.  Thanks to Daniel Borchmann (@exot) for reporting.
2023-03-10 05:56:01 -06:00
Adam Porter
d92afcda06 Docs: Update changelog 2023-03-10 04:46:32 -06:00
Adam Porter
902dad04c1 Docs/Tidy: Update readme, reorder forms 2023-03-10 03:36:21 -06:00
Akira Komamura
6afe3be572 Add: (blocked) predicate 2023-03-10 03:33:08 -06:00
Adam Porter
d21da3682b Tidy: Compilation warnings 2023-03-09 03:23:42 -06:00
Adam Porter
8bb1739661 Tests: (src) Normalization with no args
Closes #293.  Thanks to Akira Komamura (@akirak) for reporting.
2023-03-09 02:45:48 -06:00
Adam Porter
d784f8f71c Tests: (src) Implement 2023-03-09 02:45:48 -06:00
Adam Porter
1996969920 Fix: (src) Rewrite body
Fixes #304.  Thanks to @johanwk for reporting.
2023-03-09 01:46:34 -06:00
Adam Porter
d253b123cf Docs: Add credits for v0.7-pre 2022-12-09 20:33:01 -06:00
Adam Porter
ecde3a0420 Change/Fix: (src) Normalization, case-insensitivity 2022-12-09 20:19:55 -06:00
Adam Porter
9dd1bbb10b Merge: 0.6.3 2022-12-08 20:50:01 -06:00
Adam Porter
80b334c269 Release: v0.6.3 2022-12-08 20:45:14 -06:00
Adam Porter
2ddfb7c231 Fix: Require org-duration
This appears to be necessary on newer Org versions, but I don't know
exactly when.
2022-12-08 20:45:14 -06:00
Adam Porter
9f00fa3890 Fix: (org-ql--def-query-string-to-sexp-fn) Updated for peg v1.0.1
Fixes #314, fixes #316.  Thanks to Akira Komamura (@akirak) and Joon
Ro (@joonro) for reporting.

Instead of `[blank]` in this PEX, it used to be `(syntax-class
whitespace)`, which worked fine with peg v1.0.  Then
<https://debbugs.gnu.org/cgi/bugreport.cgi?bug=59345> was filed and
resulted in the release of peg v1.0.1, after which that no longer
worked.  As best I can tell from reading the discussion, `[blank]` and
`(syntax-class whitespace)` should behave the same way, yet here they
do not: with peg v1.0.1, only `[blank]` works.  Why, I do not know; I
only tried it because I could find no explanation for the broken
behavior, and luckily, it works.  Maybe it's due to the use of
`(syntax-class whitespace)` later in the `pexs`; but since it finally
works again, let's take the victory as-is.
2022-12-08 20:44:24 -06:00
Adam Porter
f22fdd457b Meta: v0.6.3-pre 2022-12-08 19:48:40 -06:00
Adam Porter
e54ba0102c Add: (property) :inherit argument 2022-10-07 18:33:35 -05:00
Adam Porter
d7ada532c7 Add: Alias "c" to (category) 2022-08-19 03:38:43 -05:00
Adam Porter
7f4faff27b Add: (org-ql-refile) 2022-08-19 03:26:15 -05:00
Adam Porter
5f058b9eee Add: (org-ql-find-in-agenda, org-ql-find-in-org-directory) 2022-06-25 10:58:17 -05:00
Adam Porter
5768c685ad Remove: org-ql-find-heading, org-ql-find-path
These are virtually obsolete with the introduction of the "rifle"
predicate as the default one.  Having them now is just confusing.
2022-06-25 10:53:29 -05:00
Adam Porter
e22890ad04 Docs: Update changelog 2022-06-13 19:07:44 -05:00
Adam Porter
4f29bcfd67 Add: (rifle/smart) Predicate 2022-06-11 08:15:24 -05:00
Adam Porter
968a249ae3 Add: Query coalescing for AND clauses
A later commit will update and add tests.
2022-06-11 08:15:24 -05:00
Adam Porter
0057972069 Add: (org-ql-default-predicate) 2022-06-10 01:32:48 -05:00
Adam Porter
67506a56f8 Change: (org-ql--byte-compile-warning) More useful error message
e.g. if a predicate only accepts one argument, but the query gives
two, now the error will say, "PREDICATE called with 2 arguments, but
accepts only 1" (so maybe the predicate definition just needs
"&rest").
2022-05-31 12:01:42 -05:00
Adam Porter
d0acc8cbba Add: (org-ql-find) 2022-05-30 11:27:12 -05:00
Adam Porter
8933f8853c Merge: 0.6.2 2022-05-27 02:05:56 -05:00
Adam Porter
115500c8a0 Fix: (link) Save excursion around regexp search
Fixes #279.  Thanks to Marc Fargas (@telenieko) for reporting.

Released as 0.6.2.
2022-05-27 02:03:20 -05:00
Adam Porter
46f523d94a Meta: 0.7-pre 2022-03-18 10:34:54 -05:00
Adam Porter
f666fe150f Release: 0.6.1 2022-03-18 10:29:50 -05:00
Adam Porter
4f11878b7d Update: Transient macro names
Closes #269.  See https://github.com/magit/transient/issues/192.
Thanks to Jonas Bernoulli (@tarsius).
2022-03-18 10:29:07 -05:00