emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/consult 85b4650 3/3: consult-grep: Add better examples


From: ELPA Syncer
Subject: [elpa] externals/consult 85b4650 3/3: consult-grep: Add better examples to the docstring (See #476)
Date: Thu, 2 Dec 2021 04:57:15 -0500 (EST)

branch: externals/consult
commit 85b4650c531511e119e3275559aaf3f8a45e30e8
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>

    consult-grep: Add better examples to the docstring (See #476)
---
 consult.el | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/consult.el b/consult.el
index 2f628c2..89647b9 100644
--- a/consult.el
+++ b/consult.el
@@ -4242,9 +4242,16 @@ 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 --.
+options can be passed to grep, specified behind --. The overall prompt
+input has the form `#async-regexp -- grep-opts#filter-string'.
 
-Example: #async-regexp -- grep-opts#filter-string
+Examples:
+
+#alpha beta         : Search for alpha and beta in any order.
+#alpha.*beta        : Search for alpha before beta.
+#\\(alpha\\|beta\\) : Search for alpha or beta (Note Emacs syntax!)
+#word -- -C3        : Search for word, include 3 lines as context
+#first#second       : Search for first, quick filter for second.
 
 The symbol at point is added to the future history. If `consult-grep'
 is called interactively with a prefix argument, the user can specify



reply via email to

[Prev in Thread] Current Thread [Next in Thread]