Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
vigilancetech-com opened this issue Jan 5, 2024 · 0 comments

Comments

@vigilancetech-com
Copy link

vigilancetech-com commented Jan 5, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant