[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 165c176 34/90: counsel.el (counsel-find-file-ignore-regexp
From: |
Oleh Krehel |
Subject: |
[elpa] master 165c176 34/90: counsel.el (counsel-find-file-ignore-regexp): Default to nil |
Date: |
Tue, 30 Jun 2015 07:28:18 +0000 |
branch: master
commit 165c176305b4fc33822c0311384ecb0376356ed2
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>
counsel.el (counsel-find-file-ignore-regexp): Default to nil
* counsel.el (counsel--find-file-matcher): Update.
Make the default behavior more similar to `find-file'.
Move the previous value to the docstring.
---
counsel.el | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/counsel.el b/counsel.el
index 7f3419a..e7ee160 100644
--- a/counsel.el
+++ b/counsel.el
@@ -288,10 +288,11 @@
(require 'ffap)
(ffap-guesser))))
-(defcustom counsel-find-file-ignore-regexp "\\(?:\\`[#.]\\)\\|\\(?:[#~]\\'\\)"
+(defcustom counsel-find-file-ignore-regexp nil
"A regexp of files to ignore while in `counsel-find-file'.
These files are un-ignored if `ivy-text' matches them.
-The common way to show all files is to start `ivy-text' with a dot."
+The common way to show all files is to start `ivy-text' with a dot.
+Possible value: \"\\(?:\\`[#.]\\)\\|\\(?:[#~]\\'\\)\"."
:group 'ivy)
(defun counsel--find-file-matcher (regexp candidates)
@@ -301,7 +302,8 @@ Skip some dotfiles unless `ivy-text' requires them."
(lambda (x)
(string-match regexp x))
candidates)))
- (if (string-match counsel-find-file-ignore-regexp ivy-text)
+ (if (or (null counsel-find-file-ignore-regexp)
+ (string-match counsel-find-file-ignore-regexp ivy-text))
res
(cl-remove-if
(lambda (x)
- [elpa] master 77e7c8f 24/90: Account for minibuffer-depth-indication-mode, (continued)
- [elpa] master 77e7c8f 24/90: Account for minibuffer-depth-indication-mode, Oleh Krehel, 2015/06/30
- [elpa] master 607d943 25/90: Add a hack for kill-buffer and invisible buffer, Oleh Krehel, 2015/06/30
- [elpa] master 3699897 26/90: counsel.el (counsel-symbol-at-point): Improve, Oleh Krehel, 2015/06/30
- [elpa] master 03e7e70 27/90: counsel.el (counsel-M-x): New command, Oleh Krehel, 2015/06/30
- [elpa] master efa751b 28/90: counsel.el (counsel-M-x): Piggyback on smex for sorting, Oleh Krehel, 2015/06/30
- [elpa] master ebead12 29/90: Add fuzzy matching function, Oleh Krehel, 2015/06/30
- [elpa] master 84e20a3 30/90: Fixup ivy-resume for file completion, Oleh Krehel, 2015/06/30
- [elpa] master d24397b 32/90: counsel.el (counsel-M-x-initial-input): New defcustom, Oleh Krehel, 2015/06/30
- [elpa] master e016d48 31/90: Allow "TAB" to complete when input starts with "^", Oleh Krehel, 2015/06/30
- [elpa] master 7f2cc7c 33/90: counsel.el: Add a bunch of autoload cookies, Oleh Krehel, 2015/06/30
- [elpa] master 165c176 34/90: counsel.el (counsel-find-file-ignore-regexp): Default to nil,
Oleh Krehel <=
- [elpa] master 72d4c76 35/90: Replace "C-x 6" with "<f2>" in counsel-M-x, Oleh Krehel, 2015/06/30
- [elpa] master 8c3bf21 36/90: ivy-toggle-calling: Toggle calling "RET" action for current candidate, Oleh Krehel, 2015/06/30
- [elpa] master 39eb7ed 38/90: counsel.el (counsel-M-x): Call smex-initialize, Oleh Krehel, 2015/06/30
- [elpa] master 109e5b0 37/90: Bind "C-o" to hydra-ivy/body, Oleh Krehel, 2015/06/30
- [elpa] master 7dea8b7 39/90: ivy.el (hydra-ivy/body): Autoload, Oleh Krehel, 2015/06/30
- [elpa] master 9ceb7ee 42/90: Fix yank/undo bug, Oleh Krehel, 2015/06/30
- [elpa] master d8172a0 40/90: ivy.el (ivy--regex-fuzzy): Improve for "^" and "$", Oleh Krehel, 2015/06/30
- [elpa] master 02cedb7 43/90: ivy.el (ivy-insert-current): Add and bind to "M-i", Oleh Krehel, 2015/06/30
- [elpa] master 1a5b259 44/90: Fix the minibuffer being too small with enough candidates, Oleh Krehel, 2015/06/30
- [elpa] master e334a75 45/90: ivy.el (ivy-initial-inputs-alist): Add man and woman, Oleh Krehel, 2015/06/30