branch: master commit 71695df6ea3eb24b52d2a2e1f8587db3db3515a1 Author: Oleh Krehel <ohwoeo...@gmail.com> Commit: Oleh Krehel <ohwoeo...@gmail.com>
"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)