Groups register-related fields from EditorState.
Tracks the named register store and the currently selected register
(set by "x before an operator).
Each register entry is a {text, type} tuple where type is :charwise
or :linewise. Linewise entries (from yy, dd, visual-line yank)
paste as new lines; charwise entries paste inline at the cursor.
Summary
Types
A register entry: text content paired with its paste type.
Whether register content should paste as whole lines or inline text.
Register store. Keys are register names
Functions
Gets the entry for the named register name. Returns {text, type} or nil.
Puts text into the named register name with the given type.
Resets the active register selection to unnamed.
Sets the active register to name.
Types
A register entry: text content paired with its paste type.
@type reg_type() :: :charwise | :linewise
Whether register content should paste as whole lines or inline text.
Register store. Keys are register names:
""— unnamed (default)"0"— last yank"a"–"z"— named"+"— system clipboard (virtual; read/write via Minga.Clipboard)"_"— black hole (never stored)
Functions
Gets the entry for the named register name. Returns {text, type} or nil.
Puts text into the named register name with the given type.
Resets the active register selection to unnamed.
Sets the active register to name.