Repository navigation
v0.2.0
Vimlet 0.2 adds host-dispatched macros and improves repeat, Visual editing, and undo grouping.
Breaking changes
- Extend the public
Key,Operator,Action, andMotionenums. Update exhaustive matches to handleKey::Named,Operator::Comment,Action::SelectTarget,Action::SwapVisualHorizontal, andMotion::NextLineFirstNonBlank. Numeric discriminants of some fieldless variants have changed; do not persist enum casts as stable identifiers. - Group a complete macro invocation, including its count and nested calls, into one undo transaction. Hosts must honor
Transaction::Begin,Continue, andEndduring macro playback as well as Insert/Replace sessions.
To upgrade, change the dependency to vimlet = "0.2", add the new enum match arms, and verify that one undo reverses an entire counted or nested macro invocation. Ropey consumers should retain features = ["ropey"].
Added
- Dispatch recorded keys through host keymaps with bounded
MacroPlaybackandMacroBindingAPIs. - Preserve host-specific named keys in macros and repeat accepted host edits within Insert sessions.
- Expose an unnamed-register revision counter for clipboard synchronization, including repeated identical yanks.
Fixed
- Stop macro playback when a vertical motion is blocked at a document boundary. (#1)
- Resolve rectangular edits and characterwise Visual repeat in display cells, including short lines, tabs, and wide characters.
- Match Neovim's Visual Enter and block-corner switching behavior.
- Respect empty-line and end-of-file boundaries in change operators, and improve host-dispatched repeat and Visual puts.
Performance
- Keep character edits local on long string-backed lines.