[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 769023b 03/22: ivy.el (ivy-read): Use initial-input when c
From: |
Oleh Krehel |
Subject: |
[elpa] master 769023b 03/22: ivy.el (ivy-read): Use initial-input when completing files |
Date: |
Wed, 22 Apr 2015 19:51:46 +0000 |
branch: master
commit 769023bb47fe30b60745d8237e35f7dbc02eeaaa
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>
ivy.el (ivy-read): Use initial-input when completing files
* ivy.el (ivy-read): Unless `require-match', add `initial-input' to the
collection. This is important e.g. for `dired-dwim-target'.
---
ivy.el | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/ivy.el b/ivy.el
index 3b4fd5d..73ac9f0 100644
--- a/ivy.el
+++ b/ivy.el
@@ -407,9 +407,12 @@ When SORT is t, refer to `ivy-sort-functions-alist' for
sorting."
(setq coll (all-completions "" collection predicate))))
((eq collection 'read-file-name-internal)
(setq ivy--directory default-directory)
- (setq initial-input nil)
(setq coll
- (ivy--sorted-files default-directory)))
+ (ivy--sorted-files default-directory))
+ (when initial-input
+ (unless ivy-require-match
+ (setq coll (cons initial-input coll)))
+ (setq initial-input nil)))
((or (functionp collection)
(vectorp collection)
(listp (car collection)))
- [elpa] master updated (e86b27e -> c7a6156), Oleh Krehel, 2015/04/22
- [elpa] master dea7858 01/22: counsel.el (counsel-git-grep-count): Ignore case, Oleh Krehel, 2015/04/22
- [elpa] master c6652b2 02/22: swiper.el (swiper--add-overlays): Make bounds optional, Oleh Krehel, 2015/04/22
- [elpa] master 769023b 03/22: ivy.el (ivy-read): Use initial-input when completing files,
Oleh Krehel <=
- [elpa] master 12c25a0 04/22: ivy.el (ivy-read): Don't add the `default-directory', Oleh Krehel, 2015/04/22
- [elpa] master 37d371c 05/22: Add a way to exit ignoring the candidates, Oleh Krehel, 2015/04/22
- [elpa] master 4adc074 06/22: Fix the default-directory for `counsel-git-grep', Oleh Krehel, 2015/04/22
- [elpa] master dd559ad 07/22: ivy.el (ivy--filter): Try directory expansion with "/", Oleh Krehel, 2015/04/22
- [elpa] master 6da7819 09/22: ivy.el (ivy--filter): Update prefix optimization, Oleh Krehel, 2015/04/22
- [elpa] master 533b788 11/22: ivy.el (ivy-done): Be more strict for `require-match', Oleh Krehel, 2015/04/22
- [elpa] master fb805a0 08/22: README.md: Add a note on outdated ivy package, Oleh Krehel, 2015/04/22
- [elpa] master 70c5fe8 13/22: Bind "M-q" to `ivy-toggle-regexp-quote', Oleh Krehel, 2015/04/22
- [elpa] master 7edfbc9 14/22: ivy.el (ivy--exhibit): Wrap in `while-no-input', Oleh Krehel, 2015/04/22
- [elpa] master 1fad831 10/22: Change `ivy-read' to a cl-defun, Oleh Krehel, 2015/04/22