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

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

[elpa] master e11c926 182/348: Allow to "C-y" a "/ssh:" file name


From: Oleh Krehel
Subject: [elpa] master e11c926 182/348: Allow to "C-y" a "/ssh:" file name
Date: Sat, 8 Apr 2017 11:03:51 -0400 (EDT)

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

    Allow to "C-y" a "/ssh:" file name
    
    * ivy.el (ivy--magic-file-slash): Update.
---
 ivy.el | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/ivy.el b/ivy.el
index ad30342..6cfd985 100644
--- a/ivy.el
+++ b/ivy.el
@@ -2157,6 +2157,8 @@ If SUBEXP is nil, the text properties are applied to the 
whole match."
                   (string-match "\\`[[:alpha:]]:/" default-directory))
              (ivy--cd (match-string 0 default-directory))
            (ivy--cd "/")))
+        ((string-match "\\`/ssh:" ivy-text)
+         (ivy--cd (file-name-directory ivy-text)))
         ((string-match "[[:alpha:]]:/\\'" ivy-text)
          (let ((drive-root (match-string 0 ivy-text)))
            (when (file-exists-p drive-root)



reply via email to

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