[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 5190412 234/348: Add `counsel-rg`
From: |
Oleh Krehel |
Subject: |
[elpa] master 5190412 234/348: Add `counsel-rg` |
Date: |
Sat, 8 Apr 2017 11:04:04 -0400 (EDT) |
branch: master
commit 5190412554f102c08bb8626aa649d9d9707a4e91
Author: Manuel Uberti <address@hidden>
Commit: Manuel Uberti <address@hidden>
Add `counsel-rg`
This lets you use [ripgrep](https://github.com/BurntSushi/ripgrep) via
Counsel.
---
counsel.el | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/counsel.el b/counsel.el
index 90ea62c..591ed84 100644
--- a/counsel.el
+++ b/counsel.el
@@ -1720,6 +1720,22 @@ This uses `counsel-ag' with `counsel-pt-base-command'
replacing
(let ((counsel-ag-base-command counsel-pt-base-command))
(counsel-ag initial-input)))
+;;** `counsel-rg'
+(defcustom counsel-rg-base-command "rg %s"
+ "Used to in place of `counsel-rg-base-command' to search with
+ripgrep using `counsel-rg'."
+ :type 'string
+ :group 'ivy)
+
+;;;###autoload
+(defun counsel-rg (&optional initial-input)
+ "Grep for a string in the current directory using rg.
+This uses `counsel-ag' with `counsel-rg-base-command' replacing
+`counsel-ag-base-command'."
+ (interactive)
+ (let ((counsel-ag-base-command counsel-rg-base-command))
+ (counsel-ag initial-input)))
+
;;** `counsel-grep'
(defcustom counsel-grep-base-command "grep -nE \"%s\" %s"
"Format string to use in `cousel-grep-function' to construct
- [elpa] master dcec964 211/348: ivy.el (ivy-magic-tilde): Fix type, (continued)
- [elpa] master dcec964 211/348: ivy.el (ivy-magic-tilde): Fix type, Oleh Krehel, 2017/04/08
- [elpa] master 3d600b6 214/348: Correct ivy-fixed-height-minibuffer size, Oleh Krehel, 2017/04/08
- [elpa] master 2d4db96 215/348: Silence byte-compiler, Oleh Krehel, 2017/04/08
- [elpa] master 2f6b67a 221/348: counsel.el (counsel-pt): Add initial-input arg, Oleh Krehel, 2017/04/08
- [elpa] master 085b0f2 218/348: Fix file name completion for when initial-input is a file name, Oleh Krehel, 2017/04/08
- [elpa] master 823d86c 224/348: counsel.el (counsel-grep): Quote :preselect, Oleh Krehel, 2017/04/08
- [elpa] master c8be397 222/348: update 'counsel-bookmark' with the ability to create, edit, and delete bookmarks, Oleh Krehel, 2017/04/08
- [elpa] master 45834cc 231/348: ivy.el (ivy--reset-state): file-name-directory can return nil, Oleh Krehel, 2017/04/08
- [elpa] master aacba19 229/348: ivy.el (ivy--directory-done): Check if ivy-text is a proper dir, Oleh Krehel, 2017/04/08
- [elpa] master b1f587d 233/348: ivy.el (ivy--directory-done): Fix "RET" on no input, Oleh Krehel, 2017/04/08
- [elpa] master 5190412 234/348: Add `counsel-rg`,
Oleh Krehel <=
- [elpa] master 92f2be5 247/348: Fix typo in ivy-read docstring, Oleh Krehel, 2017/04/08
- [elpa] master b99f6de 238/348: ivy.el (ivy--directory-done): Fix when ivy-text exists, Oleh Krehel, 2017/04/08
- [elpa] master 0312d5e 259/348: Make counsel-ag support limiting in files., Oleh Krehel, 2017/04/08
- [elpa] master eddf427 261/348: counsel.el (counsel-ag): Fix byte-compile warning, Oleh Krehel, 2017/04/08
- [elpa] master bb4814a 262/348: Fix counsel-ag support limiting in files, Oleh Krehel, 2017/04/08
- [elpa] master 4232088 265/348: Don't claim `swiper' provides `ivy-mode', Oleh Krehel, 2017/04/08
- [elpa] master ee0d9e3 275/348: ivy.el (ivy--reset-state): Simplify, Oleh Krehel, 2017/04/08
- [elpa] master abdbfa7 273/348: counsel.el: Add counsel-org-agenda-headlines, Oleh Krehel, 2017/04/08
- [elpa] master 482c3e9 279/348: counsel.el (counsel-ace-link): Use `cdr' for action., Oleh Krehel, 2017/04/08
- [elpa] master e4c248a 278/348: doc/ivy.org: Update package names in ELPA/MELPA, Oleh Krehel, 2017/04/08