Expand description
surround-mode – vim-surround semantics as a native minor mode.
Three grammar operators: surround-delete (ds{char}),
surround-change (cs{char1}{char2}), surround-add
(yss{char} / S{char} in visual). All three are registered
in the shared CommandRegistry at boot.
Design: docs/dev/architecture/surround-mode.md;
slice plan: docs/dev/operations/slice-plans/surround-mode.md.
Structs§
- Surround
Mode - Minor mode providing vim-surround operations.
- Surround
Operators - Typed handles for the surround operators.
Functions§
- find_
surround_ pair - Find the nearest enclosing pair matching
targetaround the cursor position. - open_
close_ pair - Map a user-provided character to its canonical (open, close) pair.
- register_
surround_ modes - Register surround-mode in the ModeRegistry. Must be called
AFTER
register_surround_operatorsso the operator IDs are available for keymap construction. - register_
surround_ operators - Register the three surround operators in the shared
CommandRegistry. Called from the host’s grammar bootstrap.