Repository navigation
Releases
Releases · adikpb/opencode-scratchpad
v0.2.0
New
- Open the scratchpad in
$VISUAL/$EDITORwith<leader>efrom the modal; edits come back into the textarea. Bindable asopencode-scratchpad.editor.
Changed
- The sidebar and modal now inherit the host theme instead of a dim attribute: content in
text.base, chrome and hints intext.muted, save state intext.feedback.{success,warning}, textarea intext.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_INSETof 3. - Chevrons are
▼/▶, matching built-in sidebar sections. - Install docs corrected: OpenCode installs published plugins itself, so use
opencode plugin addrather thannpm install.
Install
opencode plugin add opencode-scratchpadOr in opencode.json/opencode.jsonc:
{ "plugins": ["opencode-scratchpad@0.2.0"] }v0.1.0
Initial release of opencode-scratchpad — a per-project scratchpad TUI plugin for OpenCode.
Install
npm install opencode-scratchpadRegister 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./scratchopens a modal editor (Enteradds a line,Escsaves 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