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
I have gotten bitten multiple times by renaming a file before realizing I hadn't saved it. I think NERDTree should warn against this (maybe have you type the whole file name, as GitHub does when deleting a repository).
Environment
Operating System: 4.20.7-arch1-1-ARCH
Vim version :version: 8.1
NERDTree version git rev-parse --short HEAD: 72c3656
Process
Make changes to a buffer
Rename it in NERDTree before saving
Hit y out of habit
Current Result
The unsaved buffer is closed and a new one is opened with the contents of the file from disk, resulting in your changes being lost.
Expected Result
NERDTree should not allow this, forcing you to save the buffer or explicitly discard changes.
I apologize if I am overlooking something obvious. I know I could probably recover the buffer, but I just lost one through my own stupidity (renamed the file back).
The text was updated successfully, but these errors were encountered:
I have gotten bitten multiple times by renaming a file before realizing I hadn't saved it. I think NERDTree should warn against this (maybe have you type the whole file name, as GitHub does when deleting a repository).
Environment
:version
: 8.1git rev-parse --short HEAD
: 72c3656Process
Current Result
The unsaved buffer is closed and a new one is opened with the contents of the file from disk, resulting in your changes being lost.
Expected Result
NERDTree should not allow this, forcing you to save the buffer or explicitly discard changes.
I apologize if I am overlooking something obvious. I know I could probably recover the buffer, but I just lost one through my own stupidity (renamed the file back).
The text was updated successfully, but these errors were encountered: