Skip to content

Releases

v0.2.0

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"] }

v0.1.0

Choose a tag to compare

@adikpb adikpb released this 13 Oct 10:10
5ba6d22

Initial release of opencode-scratchpad — a per-project scratchpad TUI plugin for OpenCode.

Install

npm install opencode-scratchpad

Register it in your OpenCode config:

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

Features

  • One private scratchpad per project, stored outside your repo at $OPENCODE_DATA_DIR/scratchpad/<projectKey>.md.
  • /scratch <text> appends a line and shows a confirmation toast.
  • /scratch opens a modal editor (Enter adds a line, Esc saves and closes).
  • A session sidebar row shows a collapsible, read-only preview that refreshes when the editor saves.

Compatibility

Verified against OpenCode v2.0.27; pins @opencode/plugin@2.0.27. The V2 TUI plugin API is beta — pin your versions.

License

MIT