[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/consult b93bc62: consult-grep: Improve docstring
From: |
ELPA Syncer |
Subject: |
[elpa] externals/consult b93bc62: consult-grep: Improve docstring |
Date: |
Thu, 2 Dec 2021 06:57:12 -0500 (EST) |
branch: externals/consult
commit b93bc629ff0613c41192246d870be6f8a8824dc7
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>
consult-grep: Improve docstring
---
consult.el | 35 ++++++++++++++++++++---------------
1 file changed, 20 insertions(+), 15 deletions(-)
diff --git a/consult.el b/consult.el
index ae12c61..dbb69e4 100644
--- a/consult.el
+++ b/consult.el
@@ -4235,21 +4235,26 @@ INITIAL is inital input."
(defun consult-grep (&optional dir initial)
"Search for regexp with grep in DIR with INITIAL input.
-The input string is split, the first part of the string is passed to the
-asynchronous grep process and the second part of the string is passed to
-the completion-style filtering. Note that the input string is
-transformed from Emacs regular expressions to Posix regular expressions
-Always enter Emacs regular expressions at the prompt. `consult-grep'
-behaves like builtin Emacs search commands (Isearch etc) which take
-Emacs regular expressions.
-
-The input string is split at a punctuation character, which is given as
-the first character of the input string. The format is similar to
-Perl-style regular expressions, e.g., /regexp/. Furthermore command line
-options can be passed to grep, specified behind --. The overall prompt
-input has the form `#async-regexp -- grep-opts#filter-string'.
-
-Examples:
+The input string is split, the first part of the string (grep input) is
+passed to the asynchronous grep process and the second part of the string is
+passed to the completion-style filtering.
+
+The input string is split at a punctuation character, which is given as the
+first character of the input string. The format is similar to Perl-style
+regular expressions, e.g., /regexp/. Furthermore command line options can be
+passed to grep, specified behind --. The overall prompt input has the form
+`#async-input -- grep-opts#filter-string'.
+
+Note that the grep input string is transformed from Emacs regular expressions
+to Posix regular expressions. Always enter Emacs regular expressions at the
+prompt. `consult-grep' behaves like builtin Emacs search commands, e.g.,
+Isearch, which take Emacs regular expressions. Furthermore the asynchronous
+input split into words, each word must match separately and in any order. See
+`consult--regexp-compiler' for the inner workings. In order to disable
+transformations of the grep input, adjust `consult--regexp-compiler'
+accordingly.
+
+Here we give a few example inputs:
#alpha beta : Search for alpha and beta in any order.
#alpha.*beta : Search for alpha before beta.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [elpa] externals/consult b93bc62: consult-grep: Improve docstring,
ELPA Syncer <=