mirror of
https://github.com/tiyn/file-renamer.nvim.git
synced 2026-04-17 02:54:49 +02:00
09eb64474be371ac884b424b9e15cc31406c3b72
file-renamer.nvim
Rename files like text inside NeoVIM.
This plugin lets you edit filenames directly in a buffer and apply the changes to the file system.
This plugin is inspired by and based on the functionality of qpkorrs vim-renamer though it does not share any code with it.
Features
- Edit filenames in a buffer
- Navigate directories (
<CR>) - Support for nested paths (
file -> dir/file) - Automatically creates missing directories
- Safe renaming (handles swaps like
a <-> b) - Skips invalid or conflicting renames
Installation (lazy.nvim)
return {
"tiyn/file-renamer.nvim",
}
Usage
First start the renaming buffer with the following command.
:Rename
Change the files as needed. Then apply the changes using the following command.
:Ren
Notes
- Do not change the number of lines
- Lines starting with
#are ignored
Description
Languages
Lua
100%