Skip to content

v0.2.0

Latest

Choose a tag to compare

@adikpb adikpb released this 21 Nov 07:41
v0.2.0
5d6f0da

New

  • Open the scratchpad in $VISUAL/$EDITOR with <leader>e from the modal; edits come back into the textarea. Bindable as opencode-scratchpad.editor.

Changed

  • The sidebar and modal now inherit the host theme instead of a dim attribute: content in text.base, chrome and hints in text.muted, save state in text.feedback.{success,warning}, textarea in text.formfield.base. Colors follow light/dark theme switches.
  • Layout matches host conventions: the sidebar section no longer double-pads the slot's 2-cell inset, and the dialog uses the host's DIALOG_INSET of 3.
  • Chevrons are ▼/▶, matching built-in sidebar sections.
  • Install docs corrected: OpenCode installs published plugins itself, so use opencode plugin add rather than npm install.

Install

opencode plugin add opencode-scratchpad

Or in opencode.json/opencode.jsonc:

{ "plugins": ["opencode-scratchpad@0.2.0"] }