Skip to content

Commit

Permalink
counsel.el (counsel-file-jump): Allow spaces in path
Browse files Browse the repository at this point in the history
* counsel.el (counsel-dired-jump): Allow spaces in path
  • Loading branch information
justbur committed Jul 30, 2016
1 parent 46a5346 commit 5fe3cef
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions counsel.el
Expand Up @@ -1454,7 +1454,9 @@ 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 -not -path '*\/.git*'"))
(split-string
(shell-command-to-string "find * -type f -not -path '*\/.git*'")
"\n" t)
:matcher #'counsel--find-file-matcher
:initial-input initial-input
:action (lambda (x)
Expand All @@ -1481,7 +1483,9 @@ 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 -not -path '*\/.git*'"))
(split-string
(shell-command-to-string "find * -type d -not -path '*\/.git*'")
"\n" t)
:initial-input initial-input
:action (lambda (d) (dired-jump nil (expand-file-name d)))
:caller 'counsel-dired-jump)))
Expand Down

0 comments on commit 5fe3cef

Please sign in to comment.