]> code.delx.au - gnu-emacs-elpa/commit
Add much faster scrolling to counsel-grep
authorOleh Krehel <ohwoeowho@gmail.com>
Wed, 13 Apr 2016 17:14:15 +0000 (19:14 +0200)
committerOleh Krehel <ohwoeowho@gmail.com>
Wed, 13 Apr 2016 17:14:15 +0000 (19:14 +0200)
commitc4b9e2576b527109e8c09b29d6e102edb5c5492f
tree62bb9b2104b4bda4f5f257ed890f7f0863770e80
parenta25e1748743fef9a6b66a60079710f945b390457
Add much faster scrolling to counsel-grep

* counsel.el (counsel-grep-last-line): New defvar.
(counsel-grep): Set `counsel-grep-last-line' to nil.
(counsel-grep-action): Instead of going to `point-min' and
`forward-line' with a huge arg (e.g. to scroll 50K lines). Scroll
relative to the last position stored in `counsel-grep-last-line'.

This change resulted in a much smoother scrolling in a 50K line file
with 22K matches.
counsel.el