Hi,
Is there a way to select 200 html pages in the sidebar and change them into php without having to select the html pages one by one?
Regards & Thanks,
David
Batch rename html to php in sidebar possible?
I think you would end up writing your own script or using an existing external renaming tool (there should have been lots of them).
I don’t think there is such a functionality in ST and the sidebar API is quite limited. Since PHP is a superset of HTML, I would suggest you just find a renaming tool. It would be much faster than waiting an (not that decent) answer here.
For Windows, Rename Master is pretty powerful as a standalone.
On Linux I prefer using ranger
's bulkrename command, which opens the list of selected files in my editor of choice (Sublime Text) and lets me edit the file names as I desire.
And if it’s something simple like changing file extensions, a small fd
or find
command can also do the trick.
fd -e html -x mv {} {.}.php
Sorry to necro this post but i am surprised and bewildered people suggest using tools or software to batch rename a group of file extensions.
There has been a DOS function available since the early 90s to do such a thing.
its called Ren and or Rename
The command line you would need to use to change all files of one specific extension to another would be.
ren *.html *.php
That literally renames all the files extensions in the current directory from .html to .php
VIDEO Rename example showing wildcard extension renaming
Enjoy