Skip to content

feat(reviewer): open the MR's commits as a history view - #596

Open
seflue wants to merge 2 commits into
harrisoncramer:developfrom
seflue:feat/history-view
Open

seflue wants to merge 2 commits into
harrisoncramer:developfrom
seflue:feat/history-view

Conversation

@seflue

@seflue seflue commented Nov 14, 2026

Copy link
Copy Markdown
Contributor

Part of #450. First of three PRs cut out of #577.

glh opens the MR's commits in a DiffviewFileHistory view in its own tab. Diffview's own panel keys step through the commits, which is what #450 asked for; this PR adds the view and the keymap. Pressing glh again focuses the open browser instead of stacking a second tab. The reviewer's buffer-local autocommands now skip the browser's tab, since Diffview shares a revision's buffer between both views.

The remaining two PRs (the per-tab discussion window and the jump-to-tree refactor) follow, and commenting on a commit stays in #577.

@jakubbortlik

Copy link
Copy Markdown
Collaborator

Hi Sebastian, thanks for cutting this out of #577. Unfortunately, I'm very busy these days and have hardly any time to do any work on gitlab.nvim. I might be able to get to it in December, but I can't promise anything.

Just a quick check - I haven't really tried to find the answer in your PR - will the commit browser update after running require("gitlab").rebase()?

The browser is opened on fixed SHAs, so after a rebase it kept showing
the old commits, and glh only refocused that stale tab. After the pull,
reload the MR info and replace the browser with one on the new range.
Focus stays on the current tab.
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.

2 participants