vidir icon indicating copy to clipboard operation
vidir copied to clipboard

Support "git mv" for files tracked in git

Open ashwin opened this issue 6 years ago • 1 comments

This is a feature request. It would be awesome if I can open vidir in a directory where files are managed by git. I rename the filenames and vidir renames them for real using git mv old_name new_name. That would be a useful addition.

To implement this, vidir could check if each file that is renamed is under git control. If under git control, use git mv to rename, else use mv to rename.

ashwin avatar Dec 18 '19 21:12 ashwin

As git mv oldname newname does basically the equivalent of mv oldname newname & git add newname & git rm oldname I do not think this is worth the complexity and overhead of checking every single file. You could just as well run vidir and follow it with a git add * in most cases

septatrix avatar May 11 '20 14:05 septatrix