[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master eb43e4a 10/31: ivy.el (ivy-alt-done): Treat `ivy-text' wit
From: |
Oleh Krehel |
Subject: |
[elpa] master eb43e4a 10/31: ivy.el (ivy-alt-done): Treat `ivy-text' with ":" verbatim |
Date: |
Fri, 01 May 2015 14:28:47 +0000 |
branch: master
commit eb43e4a5096462bd819c61ef54903ac9a038b60a
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>
ivy.el (ivy-alt-done): Treat `ivy-text' with ":" verbatim
* ivy.el (ivy-alt-done): Should work better now for ssh: stuff.
It should be possible to type in any directory: `/ssh:address@hidden:`
<kbd>C-j</kbd> and get completion.
Re #59
---
ivy.el | 14 +++++++++-----
1 files changed, 9 insertions(+), 5 deletions(-)
diff --git a/ivy.el b/ivy.el
index eea4016..a696d5b 100644
--- a/ivy.el
+++ b/ivy.el
@@ -228,11 +228,15 @@ When ARG is t, exit with current text, ignoring the
candidates."
(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))
- [elpa] master updated (fddedd2 -> 4137447), Oleh Krehel, 2015/05/01
- [elpa] master 455bea4 01/31: ivy.el (ivy--cd): Reset `ivy--old-re', Oleh Krehel, 2015/05/01
- [elpa] master 691b12c 02/31: ivy.el (ivy-read): Fixup preselect addition, Oleh Krehel, 2015/05/01
- [elpa] master 3953b16 03/31: Respect `confirm-nonexistent-file-or-buffer', Oleh Krehel, 2015/05/01
- [elpa] master 948620f 04/31: Propertize remote buffers with ivy-remote face, Oleh Krehel, 2015/05/01
- [elpa] master e356df9 05/31: Reset to the first candidate when switching directories, Oleh Krehel, 2015/05/01
- [elpa] master 94fad10 06/31: Improve the match confirm while completing files, Oleh Krehel, 2015/05/01
- [elpa] master c816430 07/31: Minibuffer faces should inherit minibuffer-prompt, Oleh Krehel, 2015/05/01
- [elpa] master b2c9a20 09/31: Store the preselect and use it for empty ivy-text, Oleh Krehel, 2015/05/01
- [elpa] master 988b78f 08/31: Improve completion history using the propertize trick, Oleh Krehel, 2015/05/01
- [elpa] master eb43e4a 10/31: ivy.el (ivy-alt-done): Treat `ivy-text' with ":" verbatim,
Oleh Krehel <=
- [elpa] master 00810d6 11/31: ivy.el (ivy--filter): Fixup, Oleh Krehel, 2015/05/01
- [elpa] master 7f04019 12/31: swiper.el (swiper-font-lock-ensure): Exclude `elfeed-search-mode', Oleh Krehel, 2015/05/01
- [elpa] master 278870e 13/31: Use alpha compositing to add ivy-current-match face, Oleh Krehel, 2015/05/01
- [elpa] master 57de44c 14/31: Makefile: Update, Oleh Krehel, 2015/05/01
- [elpa] master 56d7802 15/31: Add an option for multi-tier regex matching, Oleh Krehel, 2015/05/01
- [elpa] master 7299950 16/31: ivy.el: Fixup docstrings, Oleh Krehel, 2015/05/01
- [elpa] master aa9d4a7 17/31: ivy.el (ivy-re-builders-alist): Improve doc, Oleh Krehel, 2015/05/01
- [elpa] master 0f141f5 18/31: counsel.el (counsel-git-grep): Add optional initial-input, Oleh Krehel, 2015/05/01
- [elpa] master 23ffa25 19/31: Bind "TAB" to do partial completion, Oleh Krehel, 2015/05/01
- [elpa] master ae2fd1a 21/31: Improve hidden buffer completion further, Oleh Krehel, 2015/05/01