-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
vim: Refactor and fix multiline operations #25055
base: main
Are you sure you want to change the base?
Conversation
Thank you! Blazingly fast as usual :D. Could you please incorporate the original example from the issue as a test |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
I'm going to fix the crash for now: #25138, but sounds like we should make bigger changes here? Happy to wait until you're done with exams |
Sounds good, thanks! will continue working on these
|
This comment was marked as resolved.
This comment was marked as resolved.
@5brian when I do |
Ah, just realized i had mini.nvim affecting the selections. Will redo this |
@ConradIrwin should be good for a review now, updated the description with the changes Just confused about a test case i added for having visual line persist after using objects.
|
The line mode selections are not reflected in the positions of the « »; even though the selection looks like it covers the whole line. If you hit |
Thank you |
@5brian can we keep using the NeovimBackedtestcontext for either of these tests given the above? Ideally we are exactly matching neovim when it has the features we have |
@ConradIrwin from my testing against nvim --clean
Switches to visual mode instead of staying in visual block
Switches to visual mode instead of staying in visual line I have them both staying in their original mode after the object operations, let me know if this is something i should change |
Changes:
Matches neovim:
yip
,yab
etc).From plugins:
ci{
vi{d
etcThis cleans up the previous implementation by providing a simpler check in
surrounding_markers
, instead of calling a new function inexpand_object
. No functionality was changed there except for handling the empty selection and removing some cursor adjustments that should not have been there after further testing.Release Notes: