branch: externals/ivy-hydra
commit f73cd70c5ccf55bb066c40ae814fe2b60316e8e2
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>
counsel.el (counsel--find-file-matcher): Use counsel-find-file-ignore-regexp
* counsel.el (counsel--file-name-filter): Use
counsel-find-file-ignore-regexp.
Fixes #2304
---
counsel.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/counsel.el b/counsel.el
index 010fc7c..7c8b9a9 100644
--- a/counsel.el
+++ b/counsel.el
@@ -1910,7 +1910,7 @@ Skip some dotfiles unless `ivy-text' requires them."
(setq res (cl-remove-if-not counsel--find-file-predicate res))))
(if (or (null ivy-use-ignore)
(null counsel-find-file-ignore-regexp)
- (string-match-p "\\`\\." ivy-text))
+ (string-match-p counsel-find-file-ignore-regexp ivy-text))
res
(or (cl-remove-if
(lambda (x)
@@ -2022,7 +2022,7 @@ If USE-IGNORE is non-nil, try to generate a command that
respects
(when (and use-ignore ivy-use-ignore
counsel-find-file-ignore-regexp
(cdr filter-cmd)
- (not (string-match-p "\\`\\." ivy-text))
+ (not (string-match-p counsel-find-file-ignore-regexp
ivy-text))
(not (string-match-p counsel-find-file-ignore-regexp
(or (car ivy--old-cands) ""))))
(let ((ignore-re (list (counsel--elisp-to-pcre