Skip to content

feat(api): open a review in a window the caller names - #431

Merged
barrettruth merged 1 commit into
mainfrom
open-review-in-a-window
Aug 15, 2026
Merged

feat(api): open a review in a window the caller names#431
barrettruth merged 1 commit into
mainfrom
open-review-in-a-window

Conversation

@barrettruth

@barrettruth barrettruth commented Aug 15, 2026

Copy link
Copy Markdown
Owner

Problem

:Diff review has nowhere to say "this window". With no review already open,
show_generated_diff_buffer falls through to vim.cmd(vertical and 'vsplit' or 'split'),
so an embedder handing a review off from its own buffer gets a new window and half
the rows — worst for a review map, which is the widest and longest surface here.

Solution

Export open_review(spec, opts), taking replace_win and layout. Additive: the
command passes neither, so :Diff review is unchanged. Nothing is created or closed,
only a named window's buffer replaced.

@barrettruth
barrettruth merged commit 2c3a0d3 into main Aug 15, 2026
5 checks passed
@barrettruth
barrettruth deleted the open-review-in-a-window branch August 15, 2026 01:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant