Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
3 tasks done
SichangHe opened this issue Feb 4, 2025 · 3 comments
Open
3 tasks done

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

SichangHe opened this issue Feb 4, 2025 · 3 comments
Labels
bug Something isn't working

Comments

@SichangHe
Copy link

SichangHe commented Feb 4, 2025

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.

@SichangHe SichangHe added the bug Something isn't working label Feb 4, 2025
@immdevrov
Copy link

Same stuff happend to me

immdevrov added a commit to immdevrov/nvim-setup that referenced this issue May 19, 2025
added spelcheking
replace neotree with oil.nvim becouse of a bug
nvim-neo-tree/neo-tree.nvim#1682
@pynappo
Copy link
Collaborator

pynappo commented May 24, 2025

@immdevrov was this also with visual deletion?

i've tried to repro this a few times in the past but no luck. i'll add some extra prompts/checks.

in the next breaking ver delete should probably be trash by default instead

@immdevrov
Copy link

@pynappo
Yes, something along quick up-down, visual selecting and deleting. I think I typed it out of vim-habit. Got very frustrated, deleted the plugin and installed oil.nvim :D
I guess, me trying vim commands inside a file tree already means that I need to use oil, not a file tree

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants