Skip to content

An OpenCode plugin that shows visual diffs in your editor after file edits.

License

Notifications You must be signed in to change notification settings

HoangP8/opencode-plugin-editor-diff

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Configuration

~/.config/opencode/diff.jsonc:

{
  "editor": "code",
  "os": "linux"
}
  • editor: code | cursor | antigravity | windsurf (default: code)
  • os: windows | linux (default: linux)

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.

About

An OpenCode plugin that shows visual diffs in your editor after file edits.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published