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

feature request: add undo possibility after renaming files

Open Arisa-Snowbell opened this issue 1 year ago • 1 comments

Did you check existing requests?

  • [X] I have searched the existing issues

Describe the feature

After confirming my action to rename files, to be able to press 'u' to undo and then :w to rename them back or reverse the action.

Provide background

When I write and confirm my action to rename files and decide to undo it I cannot, it says I am already on the latest change. Not sure if this is possible to make it.

Additional details

No response

Arisa-Snowbell avatar Apr 28 '23 08:04 Arisa-Snowbell

This is a feature I would like to add, but in order for undo to work, oil will have to have a way to restore files. I have an extremely rough prototype, but it needs a lot more work. I'll leave this open to track.

stevearc avatar Apr 29 '23 06:04 stevearc