Closed jakubbortlik closed 4 months ago
This actually seems to be an upstream bug. I can't get this mapping to work at all, even when running nvim with no config at all. Can you?
Hei, hvordan gar det? Thanks for your amazing plugin and thanks for looking at this. I'm still experiencing this issue the CTRL-W_T mapping works in general, but when run in a Diffview tab the cursor stays in the tab and does not follow the window that was moved to another tab.
But I've found that PR #472 fixes the issue for me, so you may consider merging that and #462 will probably be fixed by it as well.
Ah, I see now. I think I'll hijack that PR to get this fixed right now.
Description
In the first place, thank you for your amazing plugin! Either on its own or utilized by my other favourite plugin gitlab.nvim,
diffview.nvim
is of enormous help in reviewing code history.Quite frequently, while inspecting a diff with
diffview
, I open a file in a new split, e.g,. a help page, and then I decide to move that window to another tab page. This can be achieved with the<c-w>T
normal mode command (see:h CTRL-W_T
). This command first moves the window to a new tab page and then moves focus to that tab. However, when in adiffview
tab, focus stays in this tab while the screen flickers as the view is switched several times between the newly created tab page and thediffview
tab.Expected behavior
CTRL-W_T moves current window to a new tab page and switches focus to that tab
Actual behavior
CTRL-W_T moves current window to a new tab page and switches focus to that tab and back to the
diffview
tab several times.Steps to reproduce
nvim --clean -u mini.lua
:DiffviewOpen
:help CTRL-W_T
<c-w>T
Health check
Output of
``` diffview: require("diffview.health").check() Checking plugin dependencies ~ - OK nvim-web-devicons installed. Checking VCS tools ~ - The plugin requires at least one of the supported VCS tools to be valid. - OK Git found. - OK Git is up-to-date. (2.43.0) - WARNING Configured `hg_cmd` is not executable: 'hg' ```:checkhealth diffview
Log info
No response
Neovim version
Operating system and version
Linux 6.1.71-1-MANJARO x86_64 GNU/Linux
Minimal config