benma / visual-regexp.el

A regexp/replace command for Emacs with interactive visual feedback
392 stars 28 forks source link

vr/query-replace scrolling hides context making it hard to decide to replace or not #74

Open vigilancetech-com opened 7 months ago

vigilancetech-com commented 7 months ago

when doing a series of changes in a multi-page long buffer vr/query-replace will scroll to the bottom visible line in the buffer which can make it very difficult to decide if one should go ahead and do the replacement or not.

Centered-cursor-mode doesn't seem to help at all.

One can hit C-l to recenter but that is a pain in the butt to do all the time.

I tried attaching recenter-top-bottom to various hooks but never could figure it out.

Maybe there needs to be a hook when moving point to the next point matching regexp or the recenter should be hard coded into this utility.

Either that or a custom variable like vr/keep-cursor-centered.