[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 115efb7 170/399: ivy.el (ivy--sorted-files): Work around a
From: |
Oleh Krehel |
Subject: |
[elpa] master 115efb7 170/399: ivy.el (ivy--sorted-files): Work around all-completions returning $$ |
Date: |
Sat, 20 Jul 2019 14:57:17 -0400 (EDT) |
branch: master
commit 115efb7b3db40215bb47c95fcc9fc6ae12758fa9
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>
ivy.el (ivy--sorted-files): Work around all-completions returning $$
If a file "foobar$" is present in the directory,
(all-completions "" #'read-file-name-internal)
returns "foobar$$". It's not clear why this is.
Fixes #2012
---
ivy.el | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/ivy.el b/ivy.el
index dfe841c..4cc60d4 100644
--- a/ivy.el
+++ b/ivy.el
@@ -1746,8 +1746,9 @@ May supersede `ivy-initial-inputs-alist'."
Directories come first."
(let* ((default-directory dir)
(seq (condition-case nil
- (all-completions "" #'read-file-name-internal
- (ivy-state-predicate ivy-last))
+ (mapcar (lambda (s) (replace-regexp-in-string "\\$\\$" "$"
s))
+ (all-completions "" #'read-file-name-internal
+ (ivy-state-predicate ivy-last)))
(error
(directory-files dir))))
sort-fn)
- [elpa] master b34bf45 140/399: counsel.el (counsel-dired): Add, (continued)
- [elpa] master b34bf45 140/399: counsel.el (counsel-dired): Add, Oleh Krehel, 2019/07/20
- [elpa] master 1e38ed4 146/399: counsel.el (counsel-minor): Add command to toggle minor mode, Oleh Krehel, 2019/07/20
- [elpa] master 2098d27 148/399: swiper.el: Set up occur for swiper-isearch, Oleh Krehel, 2019/07/20
- [elpa] master dceecd8 155/399: swiper.el (swiper-occur): Adapt to swiper-isearch, Oleh Krehel, 2019/07/20
- [elpa] master f38bb51 161/399: ivy.el (ivy--prompt-selectable-p): Allow to select "", Oleh Krehel, 2019/07/20
- [elpa] master 1b13ee8 162/399: ivy.el (ivy--use-selectable-prompt): Cache ivy--prompt-selected-p, Oleh Krehel, 2019/07/20
- [elpa] master 92ec03c 163/399: ivy-test.el (ivy-use-selectable-prompt): Add tests, Oleh Krehel, 2019/07/20
- [elpa] master b2693d1 160/399: counsel.el (counsel-locate-db-path): New defcustom, Oleh Krehel, 2019/07/20
- [elpa] master 44ea8b5 166/399: counsel.el (counsel-git-grep-cmd-function): Add, Oleh Krehel, 2019/07/20
- [elpa] master 502eae6 159/399: counsel.el (counsel--call): Rename to counsel--command, Oleh Krehel, 2019/07/20
- [elpa] master 115efb7 170/399: ivy.el (ivy--sorted-files): Work around all-completions returning $$,
Oleh Krehel <=
- [elpa] master 6c858c1 168/399: ivy.el (ivy--filter): Improve performance with :matcher, Oleh Krehel, 2019/07/20
- [elpa] master ba849e5 173/399: ivy.el (ivy--re-filter): Fix for ivy--regex-ignore-order, Oleh Krehel, 2019/07/20
- [elpa] master 5458f93 169/399: ivy.el (ivy--filter): Avoid a filter on empty input, Oleh Krehel, 2019/07/20
- [elpa] master 9c53320 174/399: swiper.el (swiper-isearch-function): Fix for strings with trailing \|, Oleh Krehel, 2019/07/20
- [elpa] master ce0a1f1 172/399: ivy.el (ivy--filter): Fix matcher not called on input "", Oleh Krehel, 2019/07/20
- [elpa] master 39759cf 180/399: ivy-test.el (ivy-with): Save current buffer, Oleh Krehel, 2019/07/20
- [elpa] master fa87b97 182/399: ivy-test.el: Print version, Oleh Krehel, 2019/07/20
- [elpa] master 8482f62 179/399: swiper.el (swiper-isearch-function): Fix str is " ", Oleh Krehel, 2019/07/20
- [elpa] master 482088c 178/399: swiper.el (swiper--avy-candidates): Fix for swiper-background-faces, Oleh Krehel, 2019/07/20
- [elpa] master 0e62f0d 185/399: counsel.el (counsel-switch-buffer-other-window): Update prompt, Oleh Krehel, 2019/07/20