rename multiple files with editor
Find a file
itchyny 5ee3f57dff initialize seed of the global random generator using unix timestamp
The algorithm for generating temporary paths is not cryptographically safe,
but this is enough in real situation.
2021-01-08 20:09:10 +09:00
.github/workflows fix the version of actions 2020-12-30 21:55:22 +09:00
cmd/mmv initialize seed of the global random generator using unix timestamp 2021-01-08 20:09:10 +09:00
.gitignore include CREDITS file in artifacts 2020-09-19 10:57:00 +09:00
CHANGELOG.md fix links in CHANGELOG.md 2020-12-05 21:00:58 +09:00
go.mod update dependencies 2020-09-19 10:55:44 +09:00
go.sum update dependencies 2020-09-19 10:55:44 +09:00
LICENSE update copyright year in LICENSE 2021-01-07 21:55:25 +09:00
Makefile include CREDITS file in artifacts 2020-09-19 10:57:00 +09:00
mmv.go use strconv.FormatUint with base 16 to generate temporary paths 2021-01-08 19:43:52 +09:00
mmv_test.go support directory renames (close #11) 2021-01-07 21:42:34 +09:00
README.md update badges in README.md 2020-09-18 19:53:46 +09:00

mmv

CI Status Go Report Card MIT License release pkg.go.dev

Rename multiple files using your $EDITOR. The command name is named after multi-mv.

Usage

mmv file ...

This command opens the editor with the list of file names so edit and write. The command finds the changed lines and renames all the corresponding files.

Installation

Homebrew

brew install itchyny/tap/mmv

Build from source

go get github.com/itchyny/mmv/cmd/mmv

Features

  • mmv is implemented in Go language and completely portable.
  • mmv is designed to be simple as mv. It requires no configuration file.
  • mmv supports renaming in cycle (mv a b, mv b c and mv c a at the same time).
  • mmv creates destination directories automatically. You can arrange pictures like yyyy-mm-dd xxxx.jpg to yyyy/mm/dd/xxxx.jpg.
  • mmv is capable to use as a library (just call mmv.Rename).
  • mmv is easy to remember (I believe), multi-mv.

Bug Tracker

Report bug at Issues・itchyny/mmv - GitHub.

Author

itchyny (https://github.com/itchyny)

License

This software is released under the MIT License, see LICENSE.