oil.nvim icon indicating copy to clipboard operation
oil.nvim copied to clipboard

feature request: suppress "no longer available"

Open anuramat opened this issue 1 year ago • 1 comments

Did you check existing requests?

  • [X] I have searched the existing issues

Describe the feature

When deleting a file that is open, the corresponding buffer is still loaded and you get a "no longer available" message. It would be nice to have an option that would automatically delete buffers that correspond to deleted files, and save+reopen buffers for the moved files.

Provide background

Moving/deleting open files is annoying atm.

Additional details

Got the idea from tpope/vim-eunuchs :Remove

anuramat avatar Oct 28 '23 14:10 anuramat

Yeah, this would be possible. The current behavior intentionally leaves the buffers in-place as sort of an extra protection from data loss, but we could potentially add another config option to remove those buffers. Will add to my backlog

stevearc avatar Nov 01 '23 15:11 stevearc