Rename files with your favourite editor
Find a file
2025-10-22 19:43:06 +01:00
.gitignore initial commit 2025-03-18 11:12:50 +00:00
go.mod Use github path for module 2025-03-18 13:20:19 +00:00
LICENSE Add License 2025-03-18 11:13:58 +00:00
main.go feat: Add shorthand flag 2025-10-22 19:43:06 +01:00
readme.md feat: Add shorthand flag 2025-10-22 19:43:06 +01:00

renamedit

Rename files with your favourite editor

Installation

Build from source:

git clone https://github.com/js0ny/renamedit.git
cd renamedit
go build

Usage

renamedit [options] <directory>

Options

  • -ignore-ext: Ignore file extensions when renaming files. This will preserve the original extensions.

Examples

Basic usage:

renamedit /path/to/directory

Ignore file extensions (useful for batch renaming while preserving extensions):

renamedit -i /path/to/directory
renamedit --ignore-ext /path/to/directory

How It Works

  1. The program opens a temporary file in your preferred text editor
  2. Edit the file names as needed
  3. Save and exit the editor
  4. The program will rename the files according to your edits

Environment Variables

  • EDITOR: Set this to your preferred text editor (defaults to vim)

Supported Editors

The following editors are explicitly supported with wait flags:

  • Visual Studio Code (code)
  • Sublime Text (subl)
  • Zed Editor (zeditor)
  • Atom (atom)
  • Gedit (gedit)
  • And most terminal editors (vim, nano, etc.)