Skip to content

Commit

Permalink
counsel.el (counsel-file-jump): Skip ".git/"
Browse files Browse the repository at this point in the history
  • Loading branch information
abo-abo committed Jul 30, 2016
1 parent c43de47 commit 46a5346
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions counsel.el
Expand Up @@ -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)
Expand All @@ -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)))
Expand Down

0 comments on commit 46a5346

Please sign in to comment.