[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/consult-recoll 91ff9793b5 25/50: readme improvements
From: |
ELPA Syncer |
Subject: |
[elpa] externals/consult-recoll 91ff9793b5 25/50: readme improvements |
Date: |
Sat, 6 Aug 2022 18:57:42 -0400 (EDT) |
branch: externals/consult-recoll
commit 91ff9793b59937b5de588db9ee0e3c0815821334
Author: jao <jao@gnu.org>
Commit: jao <jao@gnu.org>
readme improvements
---
readme.org | 48 ++++++++++++++++++++++++++++++++++++++++--------
1 file changed, 40 insertions(+), 8 deletions(-)
diff --git a/readme.org b/readme.org
index b5082919b8..4952deda38 100644
--- a/readme.org
+++ b/readme.org
@@ -1,18 +1,50 @@
-#+title: consult-recoll
+#+title: Recoll queries in emacs using consult
* About
-[[https://www.lesbonscomptes.com/recoll/][Recoll]] queries in emacs using
[[https://github.com/minad/consult][consult]].
+[[https://www.lesbonscomptes.com/recoll/][Recoll]] is a local search engine
that knows how to index a wide variety of file
+formats, including PDFs, org and other text files and emails. It also offers
+a sophisticated query language.
-This package requires a working recoll index, and ~recollq~ in your
-path.
+This package provides an emacs interface to perform recoll queries, and
+display its results, via [[https://github.com/minad/consult][consult]].
- - =M-x consult-recoll= to perform a query on the index using
- consult.
- - See also the associated customization group for ways to tweak the
- command's behaviour (e.g., how the selected candidate is visited).
+* Usage
+
+*** Searching
+
+ The entry point of ~consult-recoll~ is the interactive command
+ =consult-recoll=. Just invoke it (e.g., via =M-x consult-recoll=) to
perform
+ any query and get its results dynamically displayed in the minibuffer,
+ with "live" updates as the query changes. Selecting any of the candidate
+ results will open the associated file, using the functions in
+ ~consult-recoll-open-fns~ (see [[*Opening search results]] below).
+
+ By default, your input will be interpreted as a recoll query, in the
+ recoll query language (so you can issue queries like "author:jao@foo.io"
+ or "dir:/home/jao/docs mime:application/pdf where is wally", and so on).
+ You can fine tune how queries are issued by customizing
+ ~consult-recoll-search-flags~.
+
+*** Displaying results
+
+ For each matching result, consult-recoll retrieves its title, full file
+ name and mime type, and shows, by default, a line with the first two,
+ using the customizable faces ~consult-recoll-title-face~ and
+ ~consult-recoll-url-face~. You can provide your own formatting function
+ (perhaps stripping common prefixes of the file name, or displaying also
+ the MIME) as the value of the customizable variable
+ ~consult-recoll-format-candidate~.
+
+*** Opening search results
+
+ When a search result candidate is selected, it's MIME type is used to
+ lookup a function to open its associated file in the customizable variable
+ ~consult-recoll-open-fns~. If no entry is found, consult-recoll uses the
+ value of ~consult-open-fn~ as a default.
* Tips
+
*** Two-level filtering
~consult-recoll~ builds on the asychronous logic inside =consult.el=,
- [elpa] externals/consult-recoll 85a527af31 27/50: wee commentary tweaks, (continued)
- [elpa] externals/consult-recoll 85a527af31 27/50: wee commentary tweaks, ELPA Syncer, 2022/08/06
- [elpa] externals/consult-recoll 57f2a5552f 31/50: Version bump, ELPA Syncer, 2022/08/06
- [elpa] externals/consult-recoll 0105066d19 32/50: readme nits and screenshot, ELPA Syncer, 2022/08/06
- [elpa] externals/consult-recoll 370a31d1c4 09/50: MELPA review, ELPA Syncer, 2022/08/06
- [elpa] externals/consult-recoll 357654bedd 04/50: customisable formatter and candidate openers, ELPA Syncer, 2022/08/06
- [elpa] externals/consult-recoll 1b21fa157b 16/50: version bump, ELPA Syncer, 2022/08/06
- [elpa] externals/consult-recoll c824a2fea2 21/50: fix for C-u consult-recoll, ELPA Syncer, 2022/08/06
- [elpa] externals/consult-recoll 8ba4d4b9b8 39/50: hide cursor in non-selected preview windows, ELPA Syncer, 2022/08/06
- [elpa] externals/consult-recoll 3399c32322 23/50: readme, ELPA Syncer, 2022/08/06
- [elpa] externals/consult-recoll a2ee98e057 45/50: version bump, ELPA Syncer, 2022/08/06
- [elpa] externals/consult-recoll 91ff9793b5 25/50: readme improvements,
ELPA Syncer <=
- [elpa] externals/consult-recoll 8e45c4d3df 42/50: new feature: inline snippets, ELPA Syncer, 2022/08/06
- [elpa] externals/consult-recoll eab09d7fe6 44/50: documentation nits (section levels), ELPA Syncer, 2022/08/06
- [elpa] externals/consult-recoll d9bb5e191e 33/50: docstring nit, ELPA Syncer, 2022/08/06
- [elpa] externals/consult-recoll 42dea1d40f 18/50: consult-recoll: prefix argument to ask for initial input, ELPA Syncer, 2022/08/06
- [elpa] externals/consult-recoll 89457fe055 37/50: Revert "back to the previous regexp, it's more precise in the common case", ELPA Syncer, 2022/08/06
- [elpa] externals/consult-recoll c57d3e7913 50/50: FSF copyright transfer and .gitignore, ELPA Syncer, 2022/08/06