roman
@hi@romanzolotarev.com
193 following, 485 followers
so convinient to search and rename files in a directory, change to lowercase, swap columns with visual block, etc
sure i can use mv/cp/cd/ls, but with oil i can do things with fewer keystrokes and less cognitive load. so yes, i just got too comfortable and lazy... ❤️
@hi
sounds a bit like how I use rename(1) (a perl utility, since there are several packages where "rename" is the binary name) that lets me use the full power of perl regex for renaming like
$ rename 's/foo/bar/' *.png # replacements
$ rename 'y/A-Z/a-z/' *.png # lowercase
$ rename 's/(.*)_(.*).txt/$2_$1.txt' *.txt # swap bits
🙂
Alas, because of the shared-naming, it goes by a number of names. On OpenBSD, it's
$ pkg_info -m | grep -i rename
p5-File-Rename-2.02 …
On my $DAYJOB Ubuntu instance, it was just the "rename" package.
I think I had to install it manually on my FreeBSD box since it's in ~/bin/perl5/bin/rename, but it's been years.
Even if you don't 100% yeet vim 😛