Description
Feature Description
When Claude wishes to make a change to a file we open a diff view in neovim, which is similar to the behaviour in editors like VSCode.
I'd like to propose that we allow the opening of diffs in the editor to be optional, where instead the diff as provided in the Claude Code output would be used to accept/reject the diff.
Use Case
I'm using this plugin primarily for the context sharing (sending lines/files to the session) and would prefer to accept/reject diffs in the Claude Code interface, rather than being moved to a diff view where I must then navigate back to the terminal pane in order e.g. to provide guidance to Claude.
Proposed Solution
Add a show_diff
option to diff_opts
which would default to true (preserving current behaviour), but if set to false
, a neovim diff view would not be opened for proposed file changes.
Alternatives Considered
An alternative might be a configuration to have the diff open, but for the focus to remain in the terminal pane.
Additional Context
I'm prototyping this in a branch—happy to push up if there is interest.