Secondary
Secondary selection modes are also non-contiguous selection modes.
Secondary selection modes can operate in two scopes:
- Local: Selections apply only within the current file/buffer you're editing
- Global: Selections apply across all files in your workspace/project
For example, when searching for text:
- Local search finds matches only in your current file
- Global search finds matches in all project files"
Keymap
Initialization
Secondary selection modes are nested below the following two keybinds, with the exception of Search and Search Current, which are placed on the first layer due to their ubiquity.
⚲ Local- Global
Local Find is directional, meaning that if the cursor position does not overlap
with any selections of the chosen secondary selection mode, the cursor will
jump to the nearest selection in the chosen direction. ⚲ Local initialisation
is directional (see footnotes of actions).
Global Find however is non-directional.
Notice that the keybindings here are all located on the right side of the keyboard, this is because all the secondary selection modes are placed on the left side of the keyboard, which allows for efficient execution via hand-alternation.
The sets of keybinds under these, are almost identical except:
OneandIntare only applicable for the Local keymapsSearchandThisare only applicable for the Global keymapRepeatis in the Shift layer for Global keymap
Local
Global
Search-related
One
Find one character, this is similar to Vim's f/t.
Last
Repeat the last search.
Config
Configure search settings.