Commit graph

333 commits

Author SHA1 Message Date
Adam Porter
c96af15888 Fix: (org-ql-view--link-follow) Reading link parameters
This is needed due to changes in Emacs 30, but this code was always
mistaken, and it just happened to work.

See <https://github.com/jorgenschaefer/emacs-buttercup/issues/247>.

Fixes #461.

Suggested-by: Ola Nilsson <ola.nilsson@gmail.com>
2024-09-04 22:00:41 -05:00
Adam Porter
bcb77b75cc Meta: v0.8.9-pre 2024-09-04 21:55:10 -05:00
Adam Porter
20c0e5a9a7 Release: v0.8.8 2024-08-29 16:37:08 -05:00
Adam Porter
04b3bd2664 Fix: Use of org-ql-completing-read--snippet-regexp
* org-ql-completing-read.el (org-ql-completing-read-snippet): Call
snippet function with argument
(org-ql-completing-read): Call snippet function passed in rather than
hard-coded function.
(org-ql-completing-read--snippet-simple): Accept optional, ignored argument.
(org-ql-completing-read--snippet-regexp): Make argument optional;
rename for clarity.

Fixes #419.

Reported-by: tpeacock19 <https://github.com/tpeacock19>
2024-08-29 16:31:07 -05:00
Adam Porter
3c1dd36990 Fix: (org-ql-completing-read) Binding of completion-styles-alist
Fixes #337.

Thanks to Nicholas Vollmer (@progfolio), viz (@9viz), and Karthik
Chikmagalur (@karthink) for reporting and suggesting fixes.
2024-08-29 14:39:55 -05:00
Adam Porter
357d533b75 Fix: (-view--format-element) Remove text properties from keywords
Modes like org-indent-mode and org-modern can add text properties to
to-do keywords in Org buffers, and those properties can "bleed over"
when org-element copies those regions into strings.  When those
strings are then displayed in an org-ql-view buffer, they can affect
how the keywords appear, e.g. having extra spaces prefixing them,
which breaks alignment.  We apply faces to the keywords ourselves, so
we don't need any properties from the source buffer.

Fixes #455.
2024-08-29 14:27:09 -05:00
Adam Porter
b6704c2814 Meta: v0.8.8-pre 2024-08-29 14:19:10 -05:00
Adam Porter
c2b4404808 Release: v0.8.7 2024-06-26 11:31:17 -05:00
Adam Porter
b362dd68b0 Fix: (org-dblock-write:org-ql) Resolve element properties
Fixes <https://github.com/alphapapa/org-ql/issues/431>.

Reported-by: Jez Cope <https://github.com/jezcope>
2024-06-26 11:30:26 -05:00
Adam Porter
ffc3477013 Fix: (org-ql-regexp-part-ts-date) Allow punctuation in day-of-week
Fixes <https://github.com/alphapapa/org-ql/issues/432>.  Closes
<https://github.com/alphapapa/org-ql/pull/435>.

Reported-by: Florian D. <https://github.com/neurolit>
2024-06-26 11:20:28 -05:00
Adam Porter
914e64746f Fix: (org-ql-search) Interactive narrowing
Fixes #430.  Closes #436.

Reported-by: Akira Komamura <akira.komamura@gmail.com>
2024-06-26 10:41:58 -05:00
Adam Porter
e3b956e54d Docs: Update changelog 2024-06-26 10:25:41 -05:00
Adam Porter
b8284c8f5c Meta: v0.8.7-pre 2024-06-26 09:58:11 -05:00
Adam Porter
1f264bf464 Release: v0.8.6 2024-04-03 15:26:33 -05:00
Adam Porter
8bd73b4b46 Fix: (org-ql-view-bookmark-make-record) buffers-files as symbol 2024-04-03 15:25:58 -05:00
Adam Porter
d3f6dde344 Meta: v0.8.6-pre 2024-04-03 15:25:06 -05:00
Adam Porter
bfff0b5517 Release: v0.8.5 2024-02-21 05:46:04 -06:00
Adam Porter
c90bae0eab Fix: (ancestors, parent) Normalize sub-queries
I'm not sure why calling the REC labeled function didn't correctly
normalize these sub-queries; it seemed to only normalize for one
round, leaving some queries incorrectly normalized.  But this fixes
it.

Fixes #365.

Reported-by: Gabriele Mongiano <https://github.com/kofm>
2024-02-21 05:45:46 -06:00
Adam Porter
b6efba9aeb Fix: (heading) Don't match strings as regexps
Reported-by: Alex Popescu <https://github.com/al3xandru>
2024-02-21 05:45:36 -06:00
Adam Porter
770e60766a Meta: v0.8.5-pre 2024-02-21 05:45:25 -06:00
Adam Porter
9606aaf812 Release: v0.8.4 2024-01-13 00:03:28 -06:00
Adam Porter
34f8b75b35 Fix: (org-ql-find) Go to base buffer if possible
Use the base buffer if it has one, because if we run the search from
an indirect buffer, it's likely already narrowed to a different entry,
and making an indirect buffer from that one would end up with a
restriction that would likely hide the selected entry.
2024-01-13 00:03:03 -06:00
Adam Porter
0168171a14 Meta: v0.8.4-pre 2024-01-12 23:58:41 -06:00
Adam Porter
7d8bd8b884 Release: v0.8.3 2024-01-10 01:56:00 -06:00
Adam Porter
0b1e4b43ec Fix: (org-ql-find) Moving point and widening buffer as needed
See #380.

Reported-by: Omar Antolín Camarena <omar.antolin@gmail.com>
2024-01-10 01:55:16 -06:00
Adam Porter
694739b31d Meta: v0.8.3-pre 2024-01-10 01:38:15 -06:00
Adam Porter
3448e49d86 Release: v0.8.2 2024-01-09 02:27:11 -06:00
Adam Porter
7ff6cc2ef7 Fix: (org-ql-find) Don't use org-with-point-at
See <https://github.com/alphapapa/org-ql/issues/380#issuecomment-1881913025>.

Reported-by: Bram Schoenmakers <me@bramschoenmakers.nl>
2024-01-09 02:25:46 -06:00
Adam Porter
8595139f5b Meta: v0.8.2-pre 2024-01-09 02:22:38 -06:00
Adam Porter
51869fd7f9 Release: v0.8.1 2024-01-03 18:47:44 -06:00
Ivan Perez
393f88e7f3 Remove mentions of removed functions from v0.7 subheading in Changelog.
These commands were removed in 5768c685ad,
but they were still mentioned in the release that was going to
incorporate those two functions, v0.7.

This commit removes the mention of those two functions from the v0.7
subheading in the changelog. Note that `org-ql-find-path` was
re-introduced in v0.8, so it remains under that subheading as a separate
addition.
2024-01-03 18:44:56 -06:00
Adam Porter
529e05851b Fix: (org-ql-view--format-element) Avoid unlinkifying links
I don't fully understand why this is the correct fix, because I don't
know where the raw heading text is being linkified (it seems like the
:raw-value property should be the unlinkified text), but this seems to
work correctly now.  If it turns out to break something else, we'll
find out and fix it.

Fixes #282.

Reported-by: Jacob Boxerman <https://github.com/jakebox>
2024-01-03 18:35:11 -06:00
Adam Porter
8e9a8fe090 Fix: (org-ql-find) Widen buffer
This fixes the case in which a user calls org-ql-find from a narrowed
buffer and chooses a result outside the restriction.  This is already
done in, e.g. org-ql-open-link; it's just an oversight here.
2024-01-03 18:28:06 -06:00
Adam Porter
24b799ab0b Meta: v0.8.1-pre 2024-01-03 18:25:18 -06:00
Adam Porter
087e99703e Release: v0.8 2023-12-21 17:14:30 -06:00
Adam Porter
f98dee54c8 Docs: Update changelog and usage 2023-12-21 16:49:06 -06:00
Adam Porter
3dc2409539 Meta: Require Emacs 27.1 or later
Emacs 26.3 is quite old now, and I can't practically run tests for it
anymore because some other dependencies have dropped support for it.
2023-12-16 07:10:52 -06:00
Adam Porter
c78f785378 Docs: Update changelog 2023-12-16 05:39:08 -06:00
Adam Porter
1496185141 Fix: (property) Handle org-use-property-inheritance when unspecified
Fixes #356.

Reported-by: beast-pro <https://github.com/beast-pro>
Reported-by: pcompassion <https://github.com/pcompassion>
2023-12-16 05:37:48 -06:00
Adam Porter
a31baebc4f Add: (org-ql-view--format-element) org-category property
Hopefully this does not cause a noticeable performance impact.  Maybe
the new org-element caching features in Org will help with that.

Fixes #363.

Reported-by: Gabriele Mongiano <https://github.com/kofm>
2023-12-16 04:47:06 -06:00
Adam Porter
ace5e361af Merge: v0.7.4 2023-12-16 04:13:38 -06:00
Adam Porter
38e16b4a5f Release: v0.7.4 2023-12-16 04:11:01 -06:00
Adam Porter
7a6b622cd0 Fix: Ignore empty quoted strings when parsing string queries
Fixes #383.

Reported-by: Adam Porter <adam@alphapapa.net>
2023-12-16 04:10:34 -06:00
Adam Porter
5775848b8a Meta: v0.7.4-pre 2023-12-16 03:56:58 -06:00
Adam Porter
2319fc9d8b Docs: Update changelog, Usage 2023-10-25 03:29:03 -05:00
Adam Porter
ee01bcb6e8 Merge: v0.7.3 2023-10-23 18:55:00 -05:00
Adam Porter
28c4215704 Release: v0.7.3 2023-10-23 18:52:04 -05:00
Adam Porter
631cd80ce8 Fix: (org-ql-find) Go to selected entry
Fixes #380.

Reported-by: Omar Antolín Camarena <omar@matem.unam.mx>
2023-10-23 01:26:39 -05:00
Adam Porter
09c3591504 Fix: Saving of org-ql-view views
It didn't seem that calling custom-save-all was necessary in the past,
but it appears that it is now.

Closes #378.

Reported-by: Pentaquark1 <https://github.com/Pentaquark1>
2023-10-19 21:50:30 -05:00
Adam Porter
4476759dc9 Fix: (org-ql--outline-path) Disable case-fold-search 2023-10-19 21:47:34 -05:00