Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 1.04 KB

File metadata and controls

36 lines (25 loc) · 1.04 KB

opencode-plugin-editor-diff

npm License: MIT

A temporary workaround using .tmp backups to show visual diffs in your editor after file edits.

Setup

~/.config/opencode/opencode.jsonc:

{
  // Pin version for faster startup
  "plugin": ["@hoangp8/opencode-plugin-editor-diff@0.1.1"]
}

Configuration

~/.config/opencode/diff.jsonc:

{
  "editor": "code"
}
  • editor: code | cursor | antigravity (default: code)

Note

  1. Editor diffs only show when edits are done (approved or auto-allowed), otherwise diffs appear in TUI only.
  2. I suggest enabling auto-edit, then you see the change, type /undo to revert, or feedback for further edits.
  3. The plugin works only when running OpenCode in the editor terminal (VS Code/Cursor), not in a standalone terminal (e.g., Command Prompt).
  4. Linux only supported.