Add functionality to automatically rename "index" files to match folder names
Pedro77h opened this issue · 4 comments
Pedro77h commented
Context:
In many cases, it's a common practice to name the main file in a directory as "index." However, for the sake of easier identification and organization, it would be helpful if the "index" file is automatically renamed to match the name of the folder it resides in.
Objective:
The objective of this issue is to implement a script or functionality that detects if a file is named "index" and, if so, automatically renames it to match the name of the folder it's located in.
Pedro77h commented
may i do it ?
rishiraj88 commented
Nice feature, @Pedro77h . I, too, think it is going to be useful to many, many users.
jonesy-dev commented
The rise of file-based routing makes this feature rather necessary.