Skip to content

BUG: Deleted whole workspace while attempting to delete selection #1682

Open
@SichangHe

Description

@SichangHe

Did you check docs and existing issues?

  • I have read all the docs.
  • I have searched the existing issues.
  • I have searched the existing discussions.

Neovim Version (nvim -v)

NVIM v0.10.2

Operating System / Version

#140~20.04.1-Ubuntu

Describe the Bug

I selected two files in NeoTree using <S-v> k, pressed d and y, then it lagged a bit and I lost the whole workspace.

A little prior, I pressed i to check the sizes of those two files. A while prior, I cut-pasted some files to another directory.

Different from #1174 and #1472, I was not deleting the file I was working on; I did not even open the files I selected for deletion (if I recall correctly).

Commit for NeoTree used: 521bb42

I will never use NeoTree to modify any files again! All my data for the project are gone.

Screenshots, Traceback

No response

Steps to Reproduce

  1. Use Neovim, NeoTree for a while (this I do not how to reproduce).
  2. Select two files in NeoTree using visual mode and press d and y to delete them.

Expected Behavior

Only the two selected files are deleted.

Your Configuration

My configuration is at https://github.com/SichangHe/.config/tree/2d879868c1fb408e4f9870021747d2400f83670d.
I have not tried to reproduce losing a month of work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions