branch: master
commit bf0e4388d7c30914a3cc62c0472b5b8207d9b2e6
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>
counsel.el (counsel-find-file-ignore-regexp): Offer
completion-ignored-extensions
Fixes #1092
---
counsel.el | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/counsel.el b/counsel.el
index 33a4275..bc8ec92 100644
--- a/counsel.el
+++ b/counsel.el
@@ -1534,9 +1534,11 @@ since you can still access the dotfiles if your input
starts with
a dot. The generic way to toggle ignored files is \\[ivy-toggle-ignore],
but the leading dot is a lot faster."
:group 'ivy
- :type '(choice
+ :type `(choice
(const :tag "None" nil)
(const :tag "Dotfiles" "\\`\\.")
+ (const :tag "Ignored Extensions"
+ ,(regexp-opt completion-ignored-extensions))
(regexp :tag "Regex")))
(defun counsel--find-file-matcher (regexp candidates)