You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In diffview, after staging chunk of changes, the focus goes back to the first file in the navigator. This becomes a problem when diffing multiple files and auto-save plugin is enabled.
What happens is that I constantly need to find the last staged file, and move to the next one. It is quite an issue when trying to stage many different files.
Kooha-2024-08-15-09-38-57.mp4
Neovim version
NVIM v0.10.1
Build type: Release
LuaJIT 2.1.1720049189
Run "nvim -V1 -v" for more info
vim.env.LAZY_STDPATH="/tmp/.repro"load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))()
require("lazy.minit").repro({
spec= {
-- add any other plugins here
{
"NeogitOrg/neogit",
dependencies= {
"nvim-lua/plenary.nvim", -- required"sindrets/diffview.nvim", -- optional - Diff integration-- Only one of these is needed, not both."nvim-telescope/telescope.nvim", -- optional"ibhagwan/fzf-lua", -- optional
},
config=true
},
},
})
The text was updated successfully, but these errors were encountered:
I'd recommend just staging from Neogit, not diffview. Upon returning to the neogit buffer, it refreshes, and tries to save/restore the cursor position, but it'll fail to restore in this case and default to the first item.
You can stage individual hunks, or lines, from neogit itself, so diffview isn't really needed for that at all.
Description
In diffview, after staging chunk of changes, the focus goes back to the first file in the navigator. This becomes a problem when diffing multiple files and auto-save plugin is enabled.
What happens is that I constantly need to find the last staged file, and move to the next one. It is quite an issue when trying to stage many different files.
Kooha-2024-08-15-09-38-57.mp4
Neovim version
NVIM v0.10.1
Build type: Release
LuaJIT 2.1.1720049189
Run "nvim -V1 -v" for more info
Operating system and version
Fedora Bluefin
Steps to reproduce
nvim -u minimal.lua
:Neogit<CR>
d u
(open diff for unstaged files)Expected behavior
Focus should remain on the just-staged file.
Actual behavior
Focus moves to the first file in tree.
Minimal config
The text was updated successfully, but these errors were encountered: