Commit graph

935 commits

Author SHA1 Message Date
Adam Porter
daad25e079 Meta: v0.7.3-pre 2023-10-19 21:45:22 -05:00
Adam Porter
ac2d43588a Add: (org-ql-find-path) 2023-10-19 21:44:26 -05:00
Adam Porter
6d5b614fc5 Fix: (org-ql-find) Interactive form
Fixes silly mistake in ab720689e9.
2023-10-02 22:52:25 -05:00
Adam Porter
ab720689e9 Change: (org-ql-find) Interactively, search relevant buffers 2023-09-30 20:09:12 -05:00
Adam Porter
ca23b1c7bd Merge: Embark support 2023-09-27 15:03:30 -05:00
Adam Porter
a41dfe25ea Docs: Update changelog, usage 2023-09-27 15:02:40 -05:00
Omar Antolín Camarena
641ec0ac50 Add category metadatum to org-ql-completing-read
This is all that is needed to gain support for Embark actions on
org-ql-find candidates.
2023-09-27 14:53:44 -05:00
Adam Porter
8250349e35 Merge: Update for Org 9.7 org-element API changes
See #364.
2023-09-27 13:40:53 -05:00
Adam Porter
5c9d4cdb48 Docs: Update changelog 2023-09-27 13:40:30 -05:00
Adam Porter
9e72bf6947 Fix: (org-ql-view--format-element) Check habit in source buffer
See #364.
2023-09-27 13:36:47 -05:00
Adam Porter
0e702ecb48 Change: Resolve Org element properties on 9.7+
See #364.
2023-09-27 13:36:47 -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
8412d1a23d Tidy: Indentation
For Emacs 29.1.
2023-09-22 22:08:57 -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
ed81b7d7c8 Tests: Require xr
This is only a development dependency.
2023-09-06 18:56:32 -05:00
Adam Porter
3c24958738 Fix: (org-ql-completing-read) Variable name 2023-09-06 18:55:39 -05:00
Adam Porter
f9b60d8ef8 Fix: (org-ql-completing-read) Propertize strings with markers
Fixes #350.  Closes #357.
2023-09-06 16:09:18 -05:00
Adam Porter
2d29d69133 Docs: Update changelog 2023-09-06 16:08:54 -05:00
Ankit Pandey
a7af6d78b2 Fix: (org-ql-completing-read) Store markers as text property
Fixes #350
2023-09-06 11:11:17 -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
eb5377320f Comment: Add FIXME 2023-05-25 10:48:47 -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
1d98c7d07c Tests: Disable Org link bracket tests on old Org versions 2023-03-14 12:13:07 -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
e08de2a76c Fix: (org-ql-completing-read) Bind org-outline-path-cache nil 2023-03-12 05:59:22 -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
107fc66d08 Change: (org-ql-view--format-element) Use display-warning 2023-03-10 06:24:03 -06:00
Adam Porter
44679a6c93 Comment: Remove old FIXMEs 2023-03-10 06:23:53 -06:00
Adam Porter
962a3dc414 Comment: Remove old FIXME
See 3c73888b98.
2023-03-10 06:19:01 -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
3c73888b98 Merge: (org-ql-sparse-tree) Accept string queries
Thanks to Akira Komamura (@akirak).
2023-03-10 04:46:45 -06:00
Adam Porter
d92afcda06 Docs: Update changelog 2023-03-10 04:46:32 -06:00
Adam Porter
99e580b530 Tidy: (org-ql-sparse-tree) Docstring; use pcase 2023-03-10 04:44:39 -06:00
Akira Komamura
1ae2f0cd60 Update the docstring 2023-03-10 04:44:39 -06:00
Akira Komamura
2b7d4e0e79 Fix: Accept plain queries in interactive org-ql-sparse-tree 2023-03-10 04:44:39 -06:00
Adam Porter
7f68db962e Merge: (blocked) predicate
Thanks to Akira Komamura (@akirak).
2023-03-10 03:42:37 -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
e5e9daab07 Fix: Aliases
One of them seems to break on Emacs 26.3 only...
2023-03-09 05:00:14 -06:00
Adam Porter
d21da3682b Tidy: Compilation warnings 2023-03-09 03:23:42 -06:00
Adam Porter
d86a402ba5 Tidy: Docstrings 2023-03-09 03:04:15 -06:00
Adam Porter
5c5a15a09b Fix: (org-ql--sanity-check-form) Use pcase 2023-03-09 02:47:23 -06:00