branch: master
commit e11c9262b973c7773e5284cd024a561a97ae661f
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>

    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