branch: master
commit 0895c1a30af08b8d4e64c7617d2675a4ae77bdb2
Author: Hong Xu <[email protected]>
Commit: Oleh Krehel <[email protected]>
Add key binding to allow switching directory in counsel-git-grep
Sometimes we just wanna search a subdir in a git repository.
Fixes #2259
---
counsel.el | 1 +
1 file changed, 1 insertion(+)
diff --git a/counsel.el b/counsel.el
index 271c339..1ee165b 100644
--- a/counsel.el
+++ b/counsel.el
@@ -1311,6 +1311,7 @@ INITIAL-INPUT can be given as the initial minibuffer
input."
(define-key map (kbd "C-l") 'ivy-call-and-recenter)
(define-key map (kbd "M-q") 'counsel-git-grep-query-replace)
(define-key map (kbd "C-c C-m") 'counsel-git-grep-switch-cmd)
+ (define-key map (kbd "C-x C-d") 'counsel-cd)
map))
(ivy-set-occur 'counsel-git-grep 'counsel-git-grep-occur)