[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 71695df 065/167: "C-j" should not stop completion for a pa
From: |
Oleh Krehel |
Subject: |
[elpa] master 71695df 065/167: "C-j" should not stop completion for a pasted file path |
Date: |
Tue, 08 Dec 2015 10:49:55 +0000 |
branch: master
commit 71695df6ea3eb24b52d2a2e1f8587db3db3515a1
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>
"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)
- [elpa] master 47f53b6 073/167: counsel.el (counsel--find-symbol): Resolve name clash better, (continued)
- [elpa] master 47f53b6 073/167: counsel.el (counsel--find-symbol): Resolve name clash better, Oleh Krehel, 2015/12/08
- [elpa] master dc84ba3 070/167: Rename and move the minibuffer faces, Oleh Krehel, 2015/12/08
- [elpa] master 183b803 071/167: Use a specific blending method for dark themes, Oleh Krehel, 2015/12/08
- [elpa] master f9ef307 072/167: Improve the preselect index in ivy-resume, Oleh Krehel, 2015/12/08
- [elpa] master 576563d 082/167: ivy.el (with-ivy-window): Ensure window is live, Oleh Krehel, 2015/12/08
- [elpa] master f60d10e 075/167: "C-x C-f M-n" can call ffap-url-fetcher when at URL, Oleh Krehel, 2015/12/08
- [elpa] master bd93a0f 081/167: ivy.el (ivy-state): Add a new field BUFFER, Oleh Krehel, 2015/12/08
- [elpa] master 202546b 080/167: swiper.el (swiper-mc): Update, Oleh Krehel, 2015/12/08
- [elpa] master f00696a 056/167: ivy.el (ivy-extra-directories): Improve :type, Oleh Krehel, 2015/12/08
- [elpa] master e338785 057/167: ivy.el (ivy-sort-functions-alist): Upgrade to defcustom, Oleh Krehel, 2015/12/08
- [elpa] master 71695df 065/167: "C-j" should not stop completion for a pasted file path,
Oleh Krehel <=
- [elpa] master dfd6204 064/167: Fix pasting file paths on Windows, Oleh Krehel, 2015/12/08
- [elpa] master 1af25f6 067/167: swiper.el (swiper-font-lock-ensure): Amend exception list, Oleh Krehel, 2015/12/08
- [elpa] master 5f22310 069/167: counsel.el (counsel-git): Update default-directory, Oleh Krehel, 2015/12/08
- [elpa] master 4a04d6e 031/167: Default ivy-display-style to 'fancy for Emacs>=24.5, Oleh Krehel, 2015/12/08
- [elpa] master 3ae4f1a 052/167: ivy-test.el (swiper--re-builder): Update, Oleh Krehel, 2015/12/08
- [elpa] master 713fd6d 049/167: Try to fix the previous commit, Oleh Krehel, 2015/12/08
- [elpa] master 297f48a 074/167: ivy.el: "M-n" should prefer url at point to symbol at point, Oleh Krehel, 2015/12/08
- [elpa] master 0e6c13b 076/167: swiper.el (swiper-font-lock-ensure): Exclude eems-stream-mode, Oleh Krehel, 2015/12/08
- [elpa] master f5b8bf2 079/167: Highlight modified file buffers with 'ivy-modified-buffer face, Oleh Krehel, 2015/12/08
- [elpa] master 70f6055 077/167: counsel.el (counsel-git-grep-query-replace): Add and bind to "M-q", Oleh Krehel, 2015/12/08