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

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

[elpa] master 71695df 065/167: "C-j" should not stop completion for a pa


From: Oleh Krehel
Subject: [elpa] master 71695df 065/167: "C-j" should not stop completion for a pasted file path
Date: Tue, 08 Dec 2015 10:49:55 +0000

branch: master
commit 71695df6ea3eb24b52d2a2e1f8587db3db3515a1
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>

    "C-j" should not stop completion for a pasted file path
    
    * ivy.el (ivy-alt-done): If you paste a file path, it won't match
      anything in the current directory. Previously, "C-j" would open dired
      for that path. Now, "C-j" will switch to the pasted directory and
      continue completion.
    
    This behavior conforms to `ido-find-file'.
---
 ivy.el |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/ivy.el b/ivy.el
index e4c0cee..51721a5 100644
--- a/ivy.el
+++ b/ivy.el
@@ -374,6 +374,9 @@ When ARG is t, exit with current text, ignoring the 
candidates."
            (ivy-immediate-done))
           ((and ivy--directory
                 (or
+                 (and (file-directory-p ivy-text)
+                      (setq dir (expand-file-name
+                                 ivy-text ivy--directory)))
                  (and
                   (not (string= ivy--current "./"))
                   (cl-plusp ivy--length)



reply via email to

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