]> code.delx.au - gnu-emacs-elpa/commit
swiper.el (swiper-all): New command to swiper all file buffers
authorOleh Krehel <ohwoeowho@gmail.com>
Sat, 14 Nov 2015 15:27:41 +0000 (16:27 +0100)
committerOleh Krehel <ohwoeowho@gmail.com>
Sat, 14 Nov 2015 15:27:41 +0000 (16:27 +0100)
commitd434071ff4ba1034751c4b2462720bb28cdb7018
tree127e8b621a72baeb3e7505b6df5fe7dbc5aae6e7
parentce557d1ec13844b4d901379404468718376ae784
swiper.el (swiper-all): New command to swiper all file buffers

* swiper.el (swiper--candidates): Add NUMBERS-WIDTH arg.  It could be
done better by calculating the line count of each buffer and then
getting the max of that, but this way is faster, since the collections
are traversed only once.
(swiper-multi): Update.
(swiper-all): New command. This is like `swiper-multi' where the buffer
list is pre-selected to be all file visiting buffers.
(swiper--multi-candidates): New defun.
(swiper-multi-action-1): Use `swiper--multi-candidates'.
(swiper-multi-action-2): Update - the line number is in the 'display
property of the first char.

Re #234
swiper.el