Bulk Renamer
Bulk rename directory files in Sublime Text
Labels utilities
Details
Installs
- Total 0
- Win 0
- Mac 0
- Linux 0
| Apr 5 | Apr 4 | Apr 3 | Apr 2 | Apr 1 | Mar 31 | Mar 30 | Mar 29 | Mar 28 | Mar 27 | Mar 26 | Mar 25 | Mar 24 | Mar 23 | Mar 22 | Mar 21 | Mar 20 | Mar 19 | Mar 18 | Mar 17 | Mar 16 | Mar 15 | Mar 14 | Mar 13 | Mar 12 | Mar 11 | Mar 10 | Mar 9 | Mar 8 | Mar 7 | Mar 6 | Mar 5 | Mar 4 | Mar 3 | Mar 2 | Mar 1 | Feb 28 | Feb 27 | Feb 26 | Feb 25 | Feb 24 | Feb 23 | Feb 22 | Feb 21 | Feb 20 | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Windows | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| Mac | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
Sublime Bulk Renamer
Sublime Bulk Renamer (sbr) allows you to bring the power of Sublime Text to… rename files in a directory.
Heavily inspired by oil.nvim and nnn's batch renamer. If you haven't used those, a video is perhaps the best way to introduce it:
https://github.com/user-attachments/assets/d457768d-2ce0-40ad-8a40-f22da839e094
Features
- You can do basically anything that Sublime and Python's Pathlib support.
- Handles cycles and chains gracefully, so you can swap the name of two files without worrying about data loss or overridding them accidentally.
- This also allows you to quickly open Sublime Text to bulk rename the current directory from your terminal, for example (Linux/OSX):
subl --command 'sbr_bulk_rename_in_dir {"dirs": ["'"$(pwd)"'"]}'
Limitations
- Unlike oil.nvim, this package does not allow creating or deleting files. This is intentionally not considered and is very unlikely to get added later on.
- Since sbr uses the
#character for comments in the View that gets opened for renaming, the end state of a directory can't have any children whose name begin with#. Sorry! I might add escapes (\#) at some point if anyone really needs it.
Future work
- add confirmation prompt on exit (settings-based)
- add visual indicators of file vs dir, maybe with annotation with the original name
- bulk rename including subdirectories, with configurable default depth
- (maybe) add side bar menu item for files, to bulk rename parent dir