ranger / ranger

A VIM-inspired filemanager for the console
https://ranger.fm
GNU General Public License v3.0
15.6k stars 893 forks source link

:bulkrename swapping names #1621

Open supertrianguloid opened 5 years ago

supertrianguloid commented 5 years ago

Current Behavior

Using bulkrename if any two names of files are swapped, then one of the files will be deleted by mv, as in mv file1 file2; mv file2 file1 will be executed. I understand that this is not primarily something people will run into, but it nearly happened to me by accident :)

Expected Behavior

It would be nice if it somehow handled this, by perhaps using temporary files.

toonn commented 5 years ago

Yep, our :bulkrename should come with a HUGE warning. Alternatives like vidir and, I think, dired should be much safer. @Vifon, did some work to replace :bulkrename with vidir. But not everyone's in agreement we should require a dependency for this.

Maybe in the meanwhile we should at least add a warning banner to the tempfile or something?