Replies: 2 comments 2 replies
-
|
I saw this comment in function enclosing(). It looks like it is trying to be consistent with Kakoune. And the details of the behavior matches my understanding of the Kakoune Lines 137 to 141 in 9265b42 |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
Thanks! Is there an issue opened to document these edge cases? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Key
mdoesn't behaves the same as in Kakoune. This is an example:Currently, the cursor is on the first
{. In Kakoune, ifmis pressed, it will select from the first{to the last}afterc, and the cursor stops at the last}. Whenmis pressed again, the selection won't change, the cursor jumps back to the first{. Keep pressingms, the selection stays the same, the cursor ping-pongs between the 2 ends of the selection.In Dance, if
mis pressed, it selects from the second{afterato the first}afterb, and the cursor stops at the first}. Whenmis pressed again, it selects the from the first{to the last}, and cursor jumps to the first{. The selection changes. And keep pressingms, the selection keeps changing.It seems, rather than starting from the character under the cursor to find a character to enclose with, Dance starts from the next character. Is this behavior difference intentional? Is there some technical limitations?
Beta Was this translation helpful? Give feedback.
All reactions