[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/kiwix 7dd18df6f8 03/15: kiwix search keywords async com
From: |
ELPA Syncer |
Subject: |
[elpa] externals/kiwix 7dd18df6f8 03/15: kiwix search keywords async completion read with vertico and consult support |
Date: |
Wed, 7 Dec 2022 19:58:02 -0500 (EST) |
branch: externals/kiwix
commit 7dd18df6f88b4ac1a4c4251ac6d339751e28f046
Author: stardiviner <numbchild@gmail.com>
Commit: stardiviner <numbchild@gmail.com>
kiwix search keywords async completion read with vertico and consult support
---
kiwix.el | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/kiwix.el b/kiwix.el
index caed89865f..1086765a77 100644
--- a/kiwix.el
+++ b/kiwix.el
@@ -116,6 +116,7 @@
:type 'string)
(defcustom kiwix-default-completing-read (cond
+ ((fboundp 'vertico--all-completions)
'vertico)
((fboundp 'consult--read) 'selectrum)
((fboundp 'ivy-read) 'ivy)
((fboundp 'helm) 'helm)
@@ -333,6 +334,15 @@ list and return a list result."
(defun kiwix--ajax-select-available-hints (zim-library)
"AJAX search hints on the selected library and select one term from
available hints."
(pcase kiwix-default-completing-read
+ ('vertico
+ (require 'vertico)
+ (require 'consult)
+ (consult--read
+ (lambda (input)
+ (apply #'kiwix--ajax-search-hints
+ input `(,zim-library)))
+ :prompt "Kiwix related entries: "
+ :require-match nil))
('selectrum
(require 'selectrum)
(require 'consult)
- [elpa] externals/kiwix updated (cb843349c1 -> 444f686a7f), ELPA Syncer, 2022/12/07
- [elpa] externals/kiwix 792215ed10 07/15: Support new upgraded kiwix-serve index API, ELPA Syncer, 2022/12/07
- [elpa] externals/kiwix 7dd18df6f8 03/15: kiwix search keywords async completion read with vertico and consult support,
ELPA Syncer <=
- [elpa] externals/kiwix e20c67854b 05/15: Update extension description., ELPA Syncer, 2022/12/07
- [elpa] externals/kiwix d21cbe30d6 06/15: Update library homepage, ELPA Syncer, 2022/12/07
- [elpa] externals/kiwix 4f683e87b2 12/15: Get the complete thumbnail image URL, ELPA Syncer, 2022/12/07
- [elpa] externals/kiwix 99c4663b6a 11/15: Add API URL scheme example comments., ELPA Syncer, 2022/12/07
- [elpa] externals/kiwix 444f686a7f 15/15: Display kiwix library thumbnail URL image in vertico candidates., ELPA Syncer, 2022/12/07
- [elpa] externals/kiwix 6afdefeed3 01/15: Don't need .html in URL constructor now., ELPA Syncer, 2022/12/07
- [elpa] externals/kiwix 1645c5b659 04/15: kiwix search keywords async completion read with Helm support, ELPA Syncer, 2022/12/07
- [elpa] externals/kiwix 9c5d9cf558 08/15: Add missing URL parameters to retrieve complete available ZIM libraries., ELPA Syncer, 2022/12/07
- [elpa] externals/kiwix 5892fff779 02/15: Add missing kiwix server port in `org-kiwix-open-link' function, ELPA Syncer, 2022/12/07
- [elpa] externals/kiwix 4743f948f8 09/15: Fix query string replace space with "_" in the concatenated with query URL., ELPA Syncer, 2022/12/07