Type Editor / @type-editor/commands / util/find-extended-mark-selection
util/find-extended-mark-selection
Interfaces
| Interface | Description |
|---|---|
Result of attempting to find an extended selection for an empty selection. |
Functions
| Function | Description |
|---|---|
Attempts to find an extended selection for an empty selection. If the cursor is within a range that has the specified mark type, extends the selection to cover the entire contiguous marked range. This is useful for toggling marks like links where the user positions the cursor inside the linked text and expects the entire link to be toggled. If not within a marked range, falls back to selecting a single adjacent character (first checking before, then after the cursor). |