Extend Mode
Intro
This mode can be entered by pressing f
(Qwerty), it is a short-lived mode where the next keypress
leads to one of the following:
- Surround-related actions
- Extending selection
Surround-related actions
Keymap
Loading...
This is a group of actions that is related to "surround" or "enclosures".
Label | Action |
---|---|
Around | Select around <x> |
Inside | Select inside <x> |
Delete Surround | Delete surrounding <x> |
Change Surround | Change surrounding <x> to <y> |
Surround | Surround current selection with <x> |
Select All | Select the from first until the last selection of the current selection mode (use with Line to select the whole file). |
<x>
or <y>
can be one of the following:
()
Parenthesis{}
Curly Brace[]
Square Bracket<>
Angular Bracket'
Single Quote"
Double Quote`
Backtick
Loading...
Extending selection
This is used for extending the current selection.
For example, selecting multiple words or multiple lines.
It behaves more or less the same as click-and-drag in the textbox or text area of common GUI applications, but imagine being able to tune both ends, unlike using a mouse where an incorrect selection means you have to start over again.
When selection extension is enabled:
- Each selection is composed of two ranges (originally one range).
- There's only one moveable range at a time.
- Every character between the two ranges, including the two ranges, is selected
- Selection-wise actions work on the extended range
- Press
ESC
to disable selection extension
Loading...