branch: master
commit 46a534660bc8bc94b2ab8c0b34a00d703f7a27ec
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>
counsel.el (counsel-file-jump): Skip ".git/"
---
counsel.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/counsel.el b/counsel.el
index 9dda0a4..72ec36a 100644
--- a/counsel.el
+++ b/counsel.el
@@ -1454,7 +1454,7 @@ root directory for search."
(read-directory-name "From directory: "))))
(let* ((default-directory (or initial-directory default-directory)))
(ivy-read "Find file: "
- (split-string (shell-command-to-string "find * -type f"))
+ (split-string (shell-command-to-string "find * -type f -not
-path '*\/.git*'"))
:matcher #'counsel--find-file-matcher
:initial-input initial-input
:action (lambda (x)
@@ -1481,7 +1481,7 @@ root directory for search."
(read-directory-name "From directory: "))))
(let* ((default-directory (or initial-directory default-directory)))
(ivy-read "Directory: "
- (split-string (shell-command-to-string "find * -type d"))
+ (split-string (shell-command-to-string "find * -type d -not
-path '*\/.git*'"))
:initial-input initial-input
:action (lambda (d) (dired-jump nil (expand-file-name d)))
:caller 'counsel-dired-jump)))