I have a lot of index.js and index.html files in my project. This leads to a lot of tabs with the same name.
It would be nice to have a package that changes the tab name to reflect the directory it is in. So instead of ‘index.js - dir/dir/WidgetView’ and ‘index.html - dir/dir/WidgetView’, it would be ‘WidgetView (JS) - dir/dir’ and ‘WidgetView (HTML) - dir/dir’.
I have tried to create a package to do this, but I was unable to access the tab name to change it. How I can change the tab name through the Atom API?