]> code.delx.au - gnu-emacs-elpa/commit
Add ignore pattern toggling
authorStephen Whipple <shw@wicdmedia.org>
Mon, 8 Feb 2016 10:41:15 +0000 (03:41 -0700)
committerOleh Krehel <ohwoeowho@gmail.com>
Mon, 8 Feb 2016 12:14:42 +0000 (13:14 +0100)
commit1485e58fd2313e0a019e97191f4332fcebf2ae62
tree27665508ae569bf6a52bb0e0a317631dfd9ec124
parentec7da3fd20a2652b38d8a5241ef8fa7acf72887f
Add ignore pattern toggling

* ivy.el (ivy-minibuffer-map): Bind "C-c C-a" to `ivy-toggle-ignore'.

(ivy-use-ignore): New defvar.

(ivy-toggle-ignore): New command to toggle ignore
patterns (user-configured filtering). If the ignore patterns are enabled
and there are zero candidates after ignoring, display the ones that
match the current text. This feature currently works for
`ivy-switch-buffer' and `counsel-find-file'.

(ivy--buffer-list): Simplify.
(ivy--switch-buffer-matcher): New defun.
(ivy-switch-buffer): Use `ivy--switch-buffer-matcher'.

* counsel.el (counsel--find-file-matcher): Use `ivy-use-ignore'.

Fixes #369
counsel.el
ivy.el