Open BartSte opened 5 months ago
I've thought about this feature, and it would be really cool (allowing for seamless undo/redo in oil), but is incredibly difficult to do correctly. I haven't had the time to invest in this, and realistically probably won't.
For your particular use case, what may help is knowing that you can enter a directory before it is created. For example, you are doing:
Instead you can do
Thanks for your reply. I can imagine it is not easy to implement.
I thought maybe files that still exist in one of the registries will not be removed, instead they are written to some kind of trash folder. From here, oil can retrieve them once the user tries to paste+save a delete file from the registry.
Most likely there are some caveats that I am missing here.
Did you check existing requests?
Describe the feature
Often the following occurs when I work with oil, as can be seen in the video:
https://github.com/stevearc/oil.nvim/assets/62509788/ceecbebf-4eae-4635-a77e-1c875bcba221
The follow happend:
foo.txt
to a register.foo
.foo.txt
into the new directory.foo.txt
does not exist anymore.This happens often to me. So I can either try to avoid this pattern, or support for pasting files that are deleted to a register could be added.
Provide background
No response
What is the significance of this feature?
strongly desired
Additional details
No response