[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/consult-recoll 00105e94a4 03/50: customization group
From: |
ELPA Syncer |
Subject: |
[elpa] externals/consult-recoll 00105e94a4 03/50: customization group |
Date: |
Sat, 6 Aug 2022 18:57:40 -0400 (EDT) |
branch: externals/consult-recoll
commit 00105e94a4bda67a19ca2baa9d5329db3c198bbf
Author: jao <jao@gnu.org>
Commit: jao <jao@gnu.org>
customization group
---
consult-recoll.el | 18 ++++++++++++------
1 file changed, 12 insertions(+), 6 deletions(-)
diff --git a/consult-recoll.el b/consult-recoll.el
index 1a57abb130..62cf1bc60c 100644
--- a/consult-recoll.el
+++ b/consult-recoll.el
@@ -32,12 +32,14 @@
(require 'consult)
-(defvar consult-recoll--command
- "recollq -a -F \"url title\" ARG"
- "Command used to perform queries.")
+(defgroup consult-recoll nil
+ "Options for consult recoll."
+ :group 'consult)
-(defvar consult-recoll--open-fn #'find-file
- "Function used to open candidate URL.")
+(defcustom consult-recoll-open-fn #'find-file
+ "Function used to open candidate URL.
+It receives a single argument, the full path to the file to open."
+ :type 'function)
(defface consult-recoll-url-face '((t :inherit default))
"Face used to display URLs of candidates.")
@@ -47,6 +49,10 @@
(defvar consult-recoll-history nil "History for `consult-recoll'.")
+(defvar consult-recoll--command
+ "recollq -a -F \"url title\" ARG"
+ "Command used to perform queries.")
+
(defun consult-recoll--transformer (str)
"Decode STR, as returned by recollq."
(unless (string-match-p "^\\(Recoll query:\\|[0-9]+ results\\| *$\\)" str)
@@ -62,7 +68,7 @@
(defun consult-recoll--open (candidate)
"Open file of corresponding completion CANDIDATE."
(when (string-match ".+ (\\(.+\\))$" (or candidate ""))
- (funcall consult-recoll--open-fn (match-string 1 candidate))))
+ (funcall consult-recoll-open-fn (match-string 1 candidate))))
(defun consult-recoll--search (&optional initial)
"Perform an asynchronous recoll search via `consult--read'.
- [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, 2022/08/06
- [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 <=
- [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
- [elpa] externals/consult-recoll d80ad99e4d 30/50: readme: typo, ELPA Syncer, 2022/08/06
- [elpa] externals/consult-recoll f32c281756 34/50: readme: example of a result formatter, ELPA Syncer, 2022/08/06
- [elpa] externals/consult-recoll 39251b54eb 43/50: screenshot: no-groups and inline, ELPA Syncer, 2022/08/06
- [elpa] externals/consult-recoll 204a936c5b 35/50: fix: a better regexp for decomposing recollq results, ELPA Syncer, 2022/08/06
- [elpa] externals/consult-recoll d96779ece2 01/50: Initial commit, ELPA Syncer, 2022/08/06
- [elpa] externals/consult-recoll c68b79f130 05/50: customizable prompt, ELPA Syncer, 2022/08/06
- [elpa] externals/consult-recoll 6ea952cd4c 36/50: back to the previous regexp, it's more precise in the common case, ELPA Syncer, 2022/08/06