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

Add EditContext::get_last_column and EditContext::get_cursor_end #47

Closed
ulyssa opened this issue Oct 1, 2022 · 0 comments
Closed

Add EditContext::get_last_column and EditContext::get_cursor_end #47

ulyssa opened this issue Oct 1, 2022 · 0 comments
Assignees

Comments

@ulyssa
Copy link
Owner

ulyssa commented Oct 1, 2022

The current method for determining whether it's okay to access the last column is very Vim-specific. I'm going to add a new method to EditContext which controls whether it is okay to use the last column during an EditAction::Motion.

I'm also going to add another method to allow controlling where the cursor gets placed after editing the buffer. This will allow implementing ~ in a more obvious way that will play nicely with using . to repeat case changes, and will also help in #32 with supporting Kakoune's <A-o>/<A-O>.

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