[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/consult-recoll fe7a09b99d 13/50: new consult--async-com
From: |
ELPA Syncer |
Subject: |
[elpa] externals/consult-recoll fe7a09b99d 13/50: new consult--async-command protocol |
Date: |
Sat, 6 Aug 2022 18:57:41 -0400 (EDT) |
branch: externals/consult-recoll
commit fe7a09b99d1497a30e11a2f86b6415adde00788a
Author: jao <jao@gnu.org>
Commit: jao <jao@gnu.org>
new consult--async-command protocol
---
consult-recoll.el | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
diff --git a/consult-recoll.el b/consult-recoll.el
index 90922589de..db95383197 100644
--- a/consult-recoll.el
+++ b/consult-recoll.el
@@ -4,8 +4,8 @@
;; Maintainer: Jose A Ortega Ruiz
;; Keywords: docs, convenience
;; License: GPL-3.0-or-later
-;; Version: 0.1
-;; Package-Requires: ((emacs "26.1") (consult "0.8"))
+;; Version: 0.2
+;; Package-Requires: ((emacs "26.1") (consult "0.9"))
;; Homepage: https://codeberg.org/jao/consult-recoll
;; Copyright (C) 2021 Jose A Ortega Ruiz
@@ -67,9 +67,9 @@ Set to nil to use the default 'title (path)' format."
(defvar consult-recoll-history nil "History for `consult-recoll'.")
-(defvar consult-recoll--command
- "recollq -a -F \"url title mtype\" ARG"
- "Command used to perform queries.")
+(defun consult-recoll--command (text)
+ "Command used to perform queries for TEXT."
+ `("recollq" "-a" "-F" "url title mtype" ,text))
(defun consult-recoll--transformer (str)
"Decode STR, as returned by recollq."
@@ -101,7 +101,8 @@ Set to nil to use the default 'title (path)' format."
(defun consult-recoll--search (&optional initial)
"Perform an asynchronous recoll search via `consult--read'.
If given, use INITIAL as the starting point of the query."
- (consult--read (consult--async-command consult-recoll--command
+ (consult--read (consult--async-command
+ #'consult-recoll--command
(consult--async-filter #'identity)
(consult--async-map #'consult-recoll--transformer))
:prompt consult-recoll-prompt
- [elpa] branch externals/consult-recoll created (now c57d3e7913), ELPA Syncer, 2022/08/06
- [elpa] externals/consult-recoll 9038cfa422 11/50: Use stock consult-lookup--member, ELPA Syncer, 2022/08/06
- [elpa] externals/consult-recoll fe7a09b99d 13/50: new consult--async-command protocol,
ELPA Syncer <=
- [elpa] externals/consult-recoll 0c2c8c12b9 14/50: new user option consult-recoll-search-flags, ELPA Syncer, 2022/08/06
- [elpa] externals/consult-recoll 47b47e8a47 38/50: asynchronous snippets parsing, ELPA Syncer, 2022/08/06
- [elpa] externals/consult-recoll 889cd8daf2 26/50: readme: fragment for internal link, ELPA Syncer, 2022/08/06
- [elpa] externals/consult-recoll 2dd853c6c9 29/50: consult live previews showing recoll snippets, ELPA Syncer, 2022/08/06
- [elpa] externals/consult-recoll 7b54edb8ac 12/50: removing deprecated consult-async-default-split, ELPA Syncer, 2022/08/06
- [elpa] externals/consult-recoll 8210ee3fef 10/50: redundant subr-x require to bypass issue #1, ELPA Syncer, 2022/08/06
- [elpa] externals/consult-recoll 00105e94a4 03/50: customization group, ELPA Syncer, 2022/08/06
- [elpa] externals/consult-recoll d46470c64d 20/50: readme tweaks, ELPA Syncer, 2022/08/06
- [elpa] externals/consult-recoll 228306eeda 22/50: version bump, ELPA Syncer, 2022/08/06
- [elpa] externals/consult-recoll 2e70eebee4 40/50: new feature: grouping search results by mime type, ELPA Syncer, 2022/08/06