emacs-elpa-diffs
[Top][All Lists]
Advanced

[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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]