I am wondering how to make renaming files in dired to use the current file extension as the default.
For example, imagine I run dired-do-rename
on the file foo.bar
and then type foo2
and press Enter. I would like the result of this operation to yield the file foo2.bar
in my directory.
dired-do-rename
. There is optiondired-dwim-target
, but its "do-what-I-mean" behavior is not what you mean (;-)).