github saberzero1/motions 0.31.0

latest releases: 0.150.0, 0.149.0, 0.148.0...
2 months ago

Fixed

  • Obsidian commands (Tab/indent, formatting toggles) only affect cursor line in visual-line mode — when vim didn't handle a key in visual-line mode, the event propagated to Obsidian with a cursor-only CM6 selection. Obsidian's commands (editor:indent-list, editor:toggle-bold, etc.) only saw one line instead of the full visual selection. Fixed by temporarily expanding the CM6 selection to the full linewise range before the event propagates, then restoring cursor-only via microtask after Obsidian's command executes. (#41)
    • Fork: handleKey in index.ts now expands CM6 selection on unhandled keys during visual-line mode and restores cursor-only via Promise.resolve().then()

Full Changelog: 0.30.0...0.31.0

Don't miss a new motions release

NewReleases is sending notifications on new releases.