NeogitOrg / NeogitOrg/neogit

Discard multiple files using visual mode not working

Open
#1,937 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
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
  1. Select files with visual mode
  2. Hit x to discard
  3. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.