Repository navigation
v0.2.0
Fixes both open issues, and replaces how links are stored and how taps are caught. Anyone on 0.1.1 should upgrade: on current firmware 0.1.1 does not work at all.
Requires firmware with the 3-argument plugin API
Chauvet 3.28.42 or later. On that firmware the host's NativePluginAPI.registerEventListener takes (id, event, registerType), while sn-plugin-lib@0.1.34 called it with two arguments. The resulting exception aborted JS init, so the plugin loaded, showed its buttons, and did nothing at all. This release moves to sn-plugin-lib@0.1.43, which matches the current contract. Older firmware on the 2-argument API is no longer supported; stay on 0.1.1 for those devices. (#1)
Links live in the note, not beside it
0.1.1 kept a sidecar directory of shortcut records and treated it as the source of truth. Nothing ever deleted from it, so removing a link left the shortcut firing, and a record from one note stayed live while a different note was open. Links are now read back out of the note itself, which the note app maintains, so removing a link removes the shortcut and a link belongs to exactly one page. (#2)
Linked objects can be moved and resized again
The finger path used invisible SYSTEM_ALERT_WINDOW rectangles laid over each linked word. Those swallow every finger event inside them, so a linked object could not be dragged, and their geometry came from the last refresh, so the tappable area lagged behind an object that had moved. They are gone: both finger and stylus taps arrive through the plugin's motion listener, and a tap is hit-tested against the link's own rectangle, which follows the object.
Other fixes
- Tapping a link no longer loops. A touch could be resolved seconds after the fact and applied to a screen the user had since navigated away from and back to. Taps now hit-test against the most recent read, and a touch older than 800ms is discarded.
- The plugin no longer goes blind after sustained use. Page elements are handed back to the native cache after each read, with a clear-and-retry recovery for a cache that is already full (error 206).
- Link state no longer goes stale while you work. The refresh is driven from the native side; React Native suspends JS timers whenever the plugin view is closed.
- A refresh could be superseded forever on a busy page, leaving taps unhandled there. Refresh passes now run to completion and are cancelled only when the plugin stops.
- A folder created after its link now starts working without a restart (the folder-vs-file probe cache expires after a minute).
- Pressing "Link lasso → this folder" twice no longer writes two links.
Known limitations
- Tested only on a Supernote Manta (A5X2). Scale is derived for other panels but untested; zoom is not handled.
- A link removed in the last few seconds can still fire once, until the next refresh.
- A very short deliberate mark inside a link's rectangle can still be read as a tap.
Install: copy SupernoteFolderShortcuts.snplg to /MyStyle/ on the device and install it from the plugin manager.