Manage OpenCode Edit Permissions and Diffpatch
mainWhen OpenCode requests a file edit, opencode.nvim opens the target file in a new tab using Neovim's :diffpatch to show changes side-by-side.
Keymaps for managing edits:
| Keymap | Action |
|---|---|
da | Accept the entire edit request |
dr | Reject the entire edit request |
]c / [c | Next / previous change |
dp | Natively accept only the hunk under the cursor, and reject the edit request |
do | Natively reject only the hunk under the cursor, and reject the edit request |
q | Close the diff |