Skip to content

Plugin SDK v0.1.2

Choose a tag to compare

@SugarFatFree SugarFatFree released this 04 Sep 22:48
· 29 commits to main since this release

The first release rather than a pre-release.

Still 0.x. The manifest and the protocol are settling but not settled, and
a deliberate breaking change remains possible while that is true — it will be
in the changelog with what to do about it. What the editor will not take away
without warning is pinned by a test in its own source: every permission name,
every runtime value, every action a script can return, every field of ctx.

Added

  • apply on a pane action puts an Apply button on it, which writes what
    the pane holds into the document; replaces says what that replaces,
    and an empty one means the whole document. What a model returns is worth
    reading before it lands in what the reader was writing, so a rewrite is
    shown first and written when they say so — through the editor's history, so
    one press of undo takes it back. Needs document.write, which the editor
    checks at the button rather than trusting the flag.
  • description in the manifest: one line saying what the plugin does, for
    the plugin list. Like every other string a plugin shows, it may be a key
    into its own locales.

Documented

  • The panes are a grid of at most four cells, and the split view's own two
    halves are two of them
    . With three cells the plugin chooses which half is
    divided, and the reader can move it afterwards.
  • A pane belongs to the tab it was opened in.

Three complete example plugins to copy — Lua, JavaScript and a compiled one —
and documentation in eleven languages.