Rename file but not from scratch #1762
Answered
by
DusanLesan
omnigenous
asked this question in
Q&A
-
Sometime I get files with really long names but I just need to change small part of it (ex: remove underscores) and retyping entire name prone to typos. Here is my setup: map r push :rename<space>
cmd rename %[ -e $1 ] && printf "file exists" || mv $f $1 When I press + map r push :rename<space> $f But that just adds literal |
Beta Was this translation helpful? Give feedback.
Answered by
DusanLesan
Jun 25, 2024
Replies: 1 comment 1 reply
-
I don't know how to help with that, but I'm curious: what makes the built-in rename feature unsuitable for you? |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
omnigenous
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I don't know how to help with that, but I'm curious: what makes the built-in rename feature unsuitable for you?