https://github.com/casey/edmv
🔄 Rename files with your favorite editor
https://github.com/casey/edmv
Last synced: 8 months ago
JSON representation
🔄 Rename files with your favorite editor
- Host: GitHub
- URL: https://github.com/casey/edmv
- Owner: casey
- License: other
- Created: 2014-05-16T21:26:46.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2016-02-17T07:15:41.000Z (over 10 years ago)
- Last Synced: 2025-02-06T20:46:04.435Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 18.6 KB
- Stars: 12
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
edmv
====
A small tool for bulk-renaming files using the editor of your choice.
Demo here: http://youtu.be/EzhbTEh-7Fk
WARNING: May delete everything on your computer. Read the source code, then the LICENSE file, and then don't sue me.
Use it like this:
`edmv foo bar baz`
Or like this:
`emdv *`
It will invoke your editor on a list of the files provided, in this case `foo`, `bar`, and `baz`. Once you're done editing the filenames it will try to rename them to match any changes that you've made. Be careful!
You can tell `edmv` which editor to use by:
- Supplying an argument to the `--editor` flag
- Setting the `$EDMV_EDITOR` environment variable
- Setting the `$EDITOR` environment variable
- Not doing anything, in which case edmv will default to `vi`, just as Bill Joy intended
If you would like to use an OS X application for your editor, for example Sublime Text 2, it is speculated that you could put something like the following in your shell rc file: `export EDMV_EDITOR='open -Wa "Sublime Text 2"'`.
If you use MacPorts, you can install edmv with `port install edmv`.