Custom tab labels for specific file patterns

Use case or problem

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 meant glob pattern, not regex, but either would work.