roman

@hi@romanzolotarev.com




homehttps://romanzolotarev.com

193 following, 485 followers

0 ★ 0 ↺

[?]roman » 🌐
@hi@romanzolotarev.com

i have a workflow where oil.nvim is quite essential, hard to replicate with anything else.

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... ❤️

    ...

    [?]Tim Chase » 🌐
    @gumnos@mastodon.bsd.cafe

    @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

    🙂

      ...

      [?]Russ Sharek » 🔓
      @RussSharek@mastodon.art

      @gumnos @hi

      I'm on a similar vim yeeting spree, and a tool like this would be really handy. Where can I find it?

        ...

        [?]Tim Chase » 🔓
        @gumnos@mastodon.bsd.cafe

        @RussSharek

        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 😛

        @hi

          History