Discard multiple files using visual mode not working
Nobody has claimed this yet.
- Dominant language
- Lua
- Stars
- 5.6k
- Forks
- 357
- Avg merge
- 15h 47m
- Merged PRs (30d)
- 2
Description
Description
When multiple files is selected with visual mode and then hit x to discard. A prompt at the bottom left show up to confirm. After the confirmation, no file is discarded.
https://github.com/user-attachments/assets/21b3ff77-aa2c-4594-a6f2-4ed6c30abc06
Neovim version
NVIM v0.11.6
Build type: Release
LuaJIT 2.1.1741730670
Operating system and version
Windows 11
Steps to reproduce
- Select files with visual mode
- Hit x to discard
- Y to confirm
Expected behavior
The files should be discarded.
Actual behavior
Nothing happen after hitting x to discard the files.
Minimal config
Installed with lazy:
{
"NeogitOrg/neogit",
dependencies = {
"nvim-lua/plenary.nvim",
"nvim-telescope/telescope.nvim",
},
opts = {
integrations = {
telescope = true,
},
},
},
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the Windows 11 case in Neogit with multiple files selected in visual mode, then trace the visual-mode discard entry point and confirmation handling. No source file or test is named in the issue. Done means confirming with Y discards every selected file, with coverage for multi-file visual selection.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- git, lua, neovim
- Domain
- cli, devtools
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100