rename multiple files with editor
Find a file
2023-04-09 12:37:37 +09:00
.github/workflows update GitHub action dependencies 2023-04-09 12:20:54 +09:00
cmd/mmv support EDITOR with spaces in the editor path (close #19, ref #10) 2023-04-09 12:37:37 +09:00
.gitignore include CREDITS file in artifacts 2020-09-19 10:57:00 +09:00
CHANGELOG.md update CHANGELOG.md for v0.1.4 2021-09-18 23:51:11 +09:00
go.mod update dependencies 2021-09-18 23:50:38 +09:00
go.sum update dependencies 2021-09-18 23:50:38 +09:00
LICENSE update copyright year in LICENSE 2021-01-07 21:55:25 +09:00
Makefile improve Makefile 2023-04-09 12:27:02 +09:00
mmv.go switch from math/rand to crypto/rand package 2023-04-09 12:25:22 +09:00
mmv_test.go switch from deprecated io/ioutil to os package 2023-04-09 12:22:40 +09:00
README.md switch the default branch to main 2021-09-18 23:48:00 +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 install github.com/itchyny/mmv/cmd/mmv@latest

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.