I am looking for a unix command-line program for renaming file (or files) visually, in an editor or inline (in the same manner as you rename a file on your desktop).
Example. I often need to rename a file somewhere deep. Imagine a file with a wrong .js.txt
extension (_
is a cursor):
$ mv deep/inside/there/is/a/file.js.txt _
It is confusing to repeat the whole path as second argument to mv
:
$ mv deep/inside/there/is/a/file.js.txt deep/inside/there/is/a/file.js
(I know I can use the mouse, but it is still error-prone). I'd better press Home
and change mv
to a visual renamer (imagine it's called vmv
). E.g.:
$ vmv somewhere/deep/inside/there/is/a/file.js.txt
EDIT FILE NAME: somewhere/deep/inside/there/is/a/file.js.txt_
mv deep/inside/there/is/a/file.js{.txt,}