emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master 5fe3cef 122/348: counsel.el (counsel-file-jump): Allow spa


From: Oleh Krehel
Subject: [elpa] master 5fe3cef 122/348: counsel.el (counsel-file-jump): Allow spaces in path
Date: Sat, 8 Apr 2017 11:03:40 -0400 (EDT)

branch: master
commit 5fe3ceffb5cf851c68b3ef40bbe47e570285eeb8
Author: justbur <address@hidden>
Commit: justbur <address@hidden>

    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)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]