VimRegisterController
Unofficial
Owns every Vim register and routes yanks, deletes and pastes to the right one.
Import:
import type { VimRegisterController } from '@obsidian-typings/obsidian-catalyst-latest';Signature:
export interface VimRegisterControllerProperties
| Property | Type | Description | |
|---|---|---|---|
| registers | Record<string, VimRegister> | Every register, keyed by its one-character name. | |
| unnamedRegister | VimRegister | The register used when no register was named explicitly. |
Methods
| Method | Returns | Description | |
|---|---|---|---|
| getRegister(name?) | VimRegister | Get the register with the given name, creating it if it does not exist yet. An invalid name yields the unnamed register. | |
| isValidRegister(name) | name is string | Check whether the given name identifies a register. | |
| pushText(registerName, operator, text, linewise?, blockwise?) | void | Store text into a register on behalf of an operator, also updating the unnamed and numbered registers the way Vim does. | |
| shiftNumericRegisters_() | void | Shift the numbered registers up by one, so register 1 becomes 2 and so on. |
Links to this page: