make gapcursor stop at defining nodes #3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "before-table"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This works for me (I think), but I must admit I don't understand the idea behind some parts of it.
This does two things:
A) Take the defining attribute of nodes as a definite boundary so that the gapcursor can be placed on either side if appropriate.
B) When the old state had a node selection, it seems like we need to look for a valid position starting from the end of the node in the given direction, and given that we start by increasing/decreasing the position by 1 before checking for validity, we need to give it the opposing edge as a starting point.
So for example, current selection (a node selection) is:
The user uses the right arrow key. The first position we need to check for validity is here:
But because the checker automatically changes the position by one, we need to use this as the starting check position:
Maybe this makes sense. Maybe I didn't get central parts about how this is to function.
I'm not comfortable merging this, but I guess the plugin is small enough for you to use a fork (which, I suppose, is what you've been doing in the awful long time that I failed to respond to this).
@marijnh Just for the record -- I did not use a fork, because even though the current plugin doesn't entirely do what I want, I don't at all have time to maintain a fork. I hope someone else takes this upon themselves some time in the future.
Pull request closed