branch: master commit 63e714ce11b5637d5a7ae723d1a2161ced2d9af4 Author: Oleh Krehel <ohwoeo...@gmail.com> Commit: Oleh Krehel <ohwoeo...@gmail.com>
Allow access to TRAMP from "// C-j" * ivy.el (ivy-alt-done): Match not only `ivy-text' but also `ivy--current' for TRAMP regex. Re #285 --- ivy.el | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ivy.el b/ivy.el index 01baeab..4ba8cff 100644 --- a/ivy.el +++ b/ivy.el @@ -435,9 +435,13 @@ When ARG is t, exit with current text, ignoring the candidates." (ivy-done)) ((and ivy--directory (or (and (equal ivy--directory "/") - (string-match - "\\`\\([^/]+?\\):\\(?:\\(.*\\)@\\)?\\(.*\\)\\'" - ivy-text)) + (cond ((string-match + "\\`\\([^/]+?\\):\\(?:\\(.*\\)@\\)?\\(.*\\)\\'" + ivy-text)) + ((string-match + "\\`\\([^/]+?\\):\\(?:\\(.*\\)@\\)?\\(.*\\)\\'" + ivy--current) + (setq ivy-text ivy--current)))) (string-match "\\`/\\([^/]+?\\):\\(?:\\(.*\\)@\\)?\\(.*\\)\\'" ivy-text)))