Interactive file mover inspired by git
Last updated a year ago by robcrocombe .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install imv 
SYNC missed versions from official npm registry.

imv (Interactive Move)

Actions Status

An interactive file renamer/mover inspired by git


npm install -g imv


  1. You give imv a glob pattern of files you want to move or rename.
imv --cleanup './home/*.png'
  1. It opens the list in your favorite code editor (either by the --editor param or automatically via your git config).
  1. You make the edits you want, with the tools you already use like multiple cursors and regex.
  1. Save the file and close it …sounds familiar to git commit/rebase?
  2. imv will make the changes, the file on each line becomes the new file location.
  3. imv deletes the old /home directory because we specified --cleanup and all the files have moved.
  4. You're done!
Usage: imv [options] <glob>

imv -- interactive move files

  -v, --version          output the version number
  -e, --editor <editor>  use this editor to modify your file paths
  -i, --ignore <glob>    ignore files that match this glob pattern
  -g, --gitignore        ignore files that match patterns in .gitignore
  -o, --overwrite        overwrite existing files
  -t, --trash            send existing files to the trash bin
  -c, --cleanup          remove empty affected folders after moving files
  -h, --help             output usage information


To keep things simple, there are a few limitations:

  • It only moves files from the directory and any subdirectories where the imv command was made.
  • It cannot overwrite files that are also matched by the input glob pattern.
  • It cannot swap two file paths.


You can install imv locally to develop on:

npm install
npm run dist
npm link

You can now use the imv command from your terminal. npm start will build in watch mode so you can make edits as you use the tool.

imv uses TypeScript for type safety, ESLint for linting, and Jest for testing.

Current Tags

  • 1.3.0                                ...           latest (a year ago)

4 Versions

  • 1.3.0                                ...           a year ago
  • 1.2.0                                ...           a year ago
  • 1.1.0                                ...           a year ago
  • 1.0.0                                ...           a year ago
Maintainers (1)
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (10)
Dependents (0)

Copyright 2014 - 2017 © |