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

feature: automatic CoqJumpToEnd after stepping? #367

Open
katrinafyi opened this issue Aug 25, 2024 · 1 comment · May be fixed by #368
Open

feature: automatic CoqJumpToEnd after stepping? #367

katrinafyi opened this issue Aug 25, 2024 · 1 comment · May be fixed by #368

Comments

@katrinafyi
Copy link

Hello! Thanks for the plugin, it's a pleasure to use.

I was wondering if there's an option or a suggested way to automatically move the cursor to the end of the checked region, whenever the checked region is changed?

At the moment, I have something like:

map <buffer> L <Plug>CoqNext <Plug>CoqJumpToEnd
map <buffer> H <Plug>CoqUndo <Plug>CoqJumpToEnd

but it would be nice to do this uniformly for all movements, without rebinding the keys. I couldn't find any configuration options to this effect.

Do you have any thoughts? Thanks!

@whonore
Copy link
Owner

whonore commented Aug 28, 2024

I can't think of a better option than your solution given how things currently work. But, it should be straightforward to change things so it triggers a custom autocommand every time the checked region changed. Then you could do something like

autocmd! User coqtail#CheckedRegionMoved <Plug>CoqJumpToEnd

@whonore whonore linked a pull request Aug 31, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

2 participants