behavior <- character
foo
bar
^ 0
baz
quxxx
- .select.left.jump
foo
bar
^ 0
baz
quxxx
- .select.right.jump { avoidEol: true }
foo
bar
baz
^ 0
quxxx
- .select.right.jump
foo
bar
baz
^ 0
quxxx
- .select.left.jump { avoidEol: true }
foo
bar
^ 0
baz
quxxx
- .select.up.jump
foo
^ 0
bar
baz
quxxx
- .select.up.jump { avoidEol: true }
When at line end, moving to a different line will always select the last
character instead of line end. "Desired column" is set to len + 1
(= 4)
though.
foo
^ 0
bar
baz
quxxx
- .select.down.jump
foo
bar
baz
^ 0
quxxx
- .select.down.jump { avoidEol: true }
Similarly to the test case above, "desired column" is 4 so we select the last character.
foo
bar
baz
^ 0
quxxx
- .select.down.jump { count: 2, avoidEol: true }
As explained above, the 4th character should be selected because it's on the desired column.
foo
bar
baz
quxxx
^ 0
- .select.left.extend
foo
bar
|^ 0
baz
quxxx
- .select.right.extend
foo
bar
^ 0
baz
quxxx
- .select.right.extend
foo
bar
^ 0
baz
^ 0
quxxx
- .select.left.extend
foo
bar
^ 0
baz
quxxx
behavior <- character
foo
bar
^ 0
- .select.up.jump
The second line is blank, so we will select its line break.
foo
^ 0
bar
- .select.up.jump { count: 2, avoidEol: true }
foo
^ 0
bar
behavior <- character
foo
^ 0
bar
baz
- .select.left.jump
foo
^ 0
bar
baz
- .select.right.jump
foo
bar
^ 0
baz
- .select.up.jump
foo
^ 0
bar
baz
- .select.down.jump
foo
bar
^ 0
baz
- .select.up.jump
foo
^ 0
bar
baz
- .select.up.extend
foo
| 0
bar
^ 0
baz
- .select.up.extend
foo
| 0
^ 0
bar
^ 0
baz
Context: #168.
abc
| 0
- .select.down.extend
abc
^^ 0
- .select.down.extend
abc
^^ 0
^ 0