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
-
Key
m
doesn't behaves the same as in Kakoune. This is an example:Currently, the cursor is on the first
{
. In Kakoune, ifm
is pressed, it will select from the first{
to the last}
afterc
, and the cursor stops at the last}
. Whenm
is pressed again, the selection won't change, the cursor jumps back to the first{
. Keep pressingm
s, the selection stays the same, the cursor ping-pongs between the 2 ends of the selection.In Dance, if
m
is pressed, it selects from the second{
aftera
to the first}
afterb
, and the cursor stops at the first}
. Whenm
is pressed again, it selects the from the first{
to the last}
, and cursor jumps to the first{
. The selection changes. And keep pressingm
s, 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