Skip to content

Releases

1.4.2

Choose a tag to compare

@Citrussy Citrussy released this 20 Nov 06:00

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-cursor at 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-cursor while 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-on class never reached it: the window kept the native caret next to the drawn one. The editor root now carries cj-on and cj-caret-on itself, and --cj-duration / --cj-ease are set on that root, so popouts animate like the main window.

Changed

  • Easing names are resolved with an own-property check, so a stray constructor or __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

Choose a tag to compare

@Citrussy Citrussy released this 13 Nov 11:41

Fixed

  • Turning the plugin on could make the caret disappear entirely. setCssStyles was imported from obsidian, 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 through el.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.

1.4.0

Choose a tag to compare

@Citrussy Citrussy released this 13 Nov 09:28

Renamed to Cursor Smooth Jump (id cursor-smooth-jump). README now documents how IME composition and CJK text are handled.

1.3.5

Choose a tag to compare

@Citrussy Citrussy released this 13 Nov 09:10

Fixed the source lint error: caret style writes go through setCssStyles. Command ids no longer repeat the plugin id.

1.3.4

Choose a tag to compare

@Citrussy Citrussy released this 13 Nov 09:00

Source code is now in the repository: the plugin builds from src/main.ts and src/caret.ts with esbuild (npm run build), and this release is built from those sources.

1.3.3

Choose a tag to compare

@Citrussy Citrussy released this 13 Nov 08:54

Renamed to Smooth Caret with plugin id smooth-caret: the previous id cursor-jump belongs to another published plugin.

1.3.2

Choose a tag to compare

@Citrussy Citrussy released this 13 Nov 08:34

First public release. Smooth caret glide between positions, configurable easing and duration, native caret preserved during IME composition and drag-selection.