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
Adam Porter
2bc327d85f
Fix: (org-ql-view--link-store) Error message for test suite
...
Use format string to prevent `substitute-quotes' from changing the
error string, breaking the test suite when run on CI.
Fixes #317 .
2023-03-09 02:45:48 -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
0d9940c5df
Docs: Update README
2023-03-09 02:45:48 -06:00
Adam Porter
d784f8f71c
Tests: (src) Implement
2023-03-09 02:45:48 -06:00
Adam Porter
68ac6ddd28
Tests: Use before-each for org-ql-test-data-buffer
...
This seems like the best way.
2023-03-09 02:45:48 -06:00
Adam Porter
2ae60f8dc5
Tests: (src) More normal forms
2023-03-09 02:45:48 -06:00
Adam Porter
1fdad05fef
Tests: Tidy
2023-03-09 01:46:46 -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
0304a2c9dc
Tests: (org-ql-it) Expand using Buttercup's it
...
As the implementation of `it' changes, this will change with
it (correctly).
2023-03-09 00:52:47 -06:00
Adam Porter
6c9c0b957a
Tests: Rename data2.org to data-file-tags.org
...
It appears likely that we'll need a few test-specific data files, so
we should use descriptive names.
2023-03-09 00:05:14 -06:00
Adam Porter
a5fbb5d976
Tidy: Indentation of dash forms
...
See, e.g. <https://github.com/magnars/dash.el/pull/375 >.
Ultimately I'd prefer to indent with one distinguished argument, but
the noise it causes downstream is likely not worth it. (And,
unfortunately, the indentation of the built-in thread-first and
thread-last forms has changed to be like this as well, which is even
worse, causing 10-11 characters of extra indentation in those forms'
bodies!)
2023-03-09 00:01:32 -06:00
Adam Porter
29533525c3
Tidy: (org-ql--plist-get*) Docstring
2022-12-25 17:51:00 -06:00
Adam Porter
36ff9854ce
Fix: (category) Add normalizer for alias
2022-12-25 12:09:50 -06:00