In some cases, when using folders as an organization hierarchy I would like to create an entry point file within the folder. In the software world this is commonly a file called “index”. But because the tab label on the page view shows the name of the file (e.g. index) if i have a few of them open, i end up having to click on them all to find the one i’m looking for. VSCode solved this by supporting custom label patterns to show a different name for the file instead of the file name e.g. the parent folder.
Proposed solution
Would be nice to support defining custom label patterns with regex to display a different name for reused file names like index.md or moc.md. A simpler solution would be to allow the input of a set of file names and then just display the parent folder name if it exists. Root files wouldn’t be affected.
I have the exact same need and thought of the exact same solution. I can’t believe there isn’t already a plugin for this. Sorry I don’t have anything more useful to contribute with… If I find something I’ll come back and let you know.
EDIT: actually I found something that works for me: Front Matter Title. It allows you to pick a property and have it replace the tab label and/or the file name in the explorer, the window title, the bookmarks… Not exactly the same idea, but it works for me because I happen to have a YAML field in each of my index notes with the folder name in it.