Why a
do selection but i
don't?
#2924
-
I see there's a issue #2673 talk about this, but I'm still confused |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Currently a cursor must be at either the anchor (beginning) or head (end) of a selection (or both if it's a 1-width selection). If Consider this contrived example: [
{"data": 87},
{"data": 88},
{"data": 89}
] If you wanted to add
then if you wanted to wrap those numbers in double quotes you could use |
Beta Was this translation helpful? Give feedback.
Currently a cursor must be at either the anchor (beginning) or head (end) of a selection (or both if it's a 1-width selection). If
i
extended the selection, the cursor would end up within the selection which is not allowed. Ifa
retained the selection but did not extend it, the cursor would be detached from the selection. You could collapse the selection to the head with;
before hittingli
to append without extending or retaining the selection. That behavior would be a worse default though in multi-selection editing scenarios.Consider this contrived example:
If you wanted to add
.0
to the ends of those digits, you could useth…