stevearc / oil.nvim

Neovim file explorer: edit your filesystem like a buffer
MIT License
3.84k stars 110 forks source link

feature request: the abilty to move a directory to a unrelevant directory #364

Closed sekerhalithamza closed 4 months ago

sekerhalithamza commented 5 months ago

Did you check existing requests?

Describe the feature

I would like to be able to move a directory or a file to another directory when their only relativity is maybe their grandparent or parent.

Provide background

Lets say we have

I would like to be able to move parent1 under parent2, child1 to parent2 etc. But when I try it rn with deleting and then pasting it gives an error like "did id changed"

What is the significance of this feature?

strongly desired

Additional details

No response

stevearc commented 5 months ago

Could you provide a more detailed set of repro steps? I don't know what the error is that you're seeing, and I don't know how you're deleting, pasting, or navigating around these buffers.

sekerhalithamza commented 4 months ago

First of all, I am not a native speeker so my english is not perfect so sorry for that. When you press dd it deletes it and then gets the data to the register. Then you can paste it into another buffer. If we can move files/folders around like this it would be awesome. If further explaning is needed. I can record a video.

stevearc commented 4 months ago

I would love to see a video of the problem. Oil should already be able to move files and directories by deleting them and pasting them into another buffer. If this is not working, then it is a bug. Based on your description, I don't know what could be going wrong.

sekerhalithamza commented 4 months ago

here is an example. I hope this shows the problem clearly

https://github.com/stevearc/oil.nvim/assets/104067464/74350bbe-4844-44b4-b2e8-a439dddc9f29

sekerhalithamza commented 4 months ago

If more error logs or other factors is needed. I can provide those

sekerhalithamza commented 4 months ago

I just figured out that if you delete it correctly it does not throw an error. Thanks though!