* ivy.el (ivy-alt-done): Should work better now for ssh: stuff.
It should be possible to type in any directory: `/ssh:user@domain.com:`
<kbd>C-j</kbd> and get completion.
Re #59
(ivy-immediate-done)
(let (dir)
(if (and ivy--directory
- (not (string= ivy--current "./"))
- (cl-plusp ivy--length)
- (file-directory-p
- (setq dir (expand-file-name
- ivy--current ivy--directory))))
+ (or
+ (and
+ (not (string= ivy--current "./"))
+ (cl-plusp ivy--length)
+ (file-directory-p
+ (setq dir (expand-file-name
+ ivy--current ivy--directory))))
+ (prog1 (string-match ":" ivy-text)
+ (setq dir ivy-text))))
(progn
(ivy--cd dir)
(ivy--exhibit))