branch: master
commit 5fe3ceffb5cf851c68b3ef40bbe47e570285eeb8
Author: justbur <[email protected]>
Commit: justbur <[email protected]>
counsel.el (counsel-file-jump): Allow spaces in path
* counsel.el (counsel-dired-jump): Allow spaces in path
---
counsel.el | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/counsel.el b/counsel.el
index 72ec36a..2b08da6 100644
--- a/counsel.el
+++ b/counsel.el
@@ -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)
@@ -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)))