Repository navigation
Releases
Releases · Citrussy/obsidian-cursor-smooth-jump
1.4.2
Caret fixes for selecting text and for popped-out windows.
Fixed
- A second, thinner caret while selecting. Obsidian enables CodeMirror's
drawSelection, and its cursor layer paints a 1.2px.cm-cursorat the head of every non-empty selection. Hiding the native caret never touched that node, so dragging a selection showed the plugin's 2px caret with Obsidian's thin one right beside it. The plugin now hides.cm-cursorwhile its own caret is painted; turn the effect off or open an IME composition and Obsidian's caret comes straight back. - No caret in popped-out windows. A popout has its own document, so the
body.cj-onclass never reached it: the window kept the native caret next to the drawn one. The editor root now carriescj-onandcj-caret-onitself, and--cj-duration/--cj-easeare set on that root, so popouts animate like the main window.
Changed
- Easing names are resolved with an own-property check, so a stray
constructoror__proto__in the settings file falls back to the default instead of slipping through.
No settings change needed. Manual install: replace main.js, manifest.json and styles.css.
1.4.1
Fixed
- Turning the plugin on could make the caret disappear entirely.
setCssStyleswas imported fromobsidian, which does not export it, so the first style write threw and the drawn caret stayed 2x0 px while the native caret was already hidden. Styles now go throughel.style, and the native caret comes back whenever the drawn one is hidden or its measured position is stale.
Notes
- No settings changes. Update in place and reload the plugin.