-
Notifications
You must be signed in to change notification settings - Fork 184
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
mini.move: less intrusive blockwise movement #838
Comments
Thanks for the suggestion! I can reproduce. At first glance, it is indeed not a very good behavior. However, blockwise movement is kind of lesser tier of support for 'mini.move' because of how complicated it is to implement. I'll look more into why this happens. |
I've taken another look at this and it seems to work as expected.
This is the core of the issue: 'mini.move' actually moves selection/line, not swaps. It may look like swapping when moving to the nearest neighboor (i.e. with My best suggestion is to use exchange
Closing as not planned. |
Contributing guidelines
Module(s)
mini.move
Description
Use case
Drawing block selections up and down breaks right-wards indentation, which can make virtual edits for adjusting graphics unnecessary painful. I hope below drawings show the problem. Any kind of ideas would be appreciated.
Problem Description
got
want without redundant steps
1 box selection copy
2 selection replace whitespace
3 selection wanted position and paste
current behavior:
1 line selection movements dont work for multiple lines
2 minimove.move_selection up/down breaks right-hand intendation
It would be nice, if move_selection would have another mode
so that a move is an actual swap of text elements freely
into the buffer positions, so moving 1 upwards does
and moving 1 more upwards does
until
with the internal position of the collision range be kept.
To me it looks like you have implemented collision detection,
but nothing to keep track of correct fixups after nothig collides.
For example, left and right movements have the same behavior:
The text was updated successfully, but these errors were encountered: