Commit graph

12 commits

Author SHA1 Message Date
Adam Porter
deada67e1d WIP: org-ql-open-link
Need to tidy up and generalize org-ql-completing-read a bit more, but
this is basically working, and should be very useful.
2023-10-23 18:56:45 -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
56e203110b Fix: (org-ql-completing-read) Warn about empty headings 2023-09-26 20:48:59 -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
3c24958738 Fix: (org-ql-completing-read) Variable name 2023-09-06 18:55:39 -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
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
e08de2a76c Fix: (org-ql-completing-read) Bind org-outline-path-cache nil 2023-03-12 05:59:22 -05:00
Adam Porter
d21da3682b Tidy: Compilation warnings 2023-03-09 03:23:42 -06:00
Adam Porter
cfa3b307ec Add/Change: org-ql-completing-read, etc. 2022-08-19 03:26:15 -05:00