Sublime Forum

Tab names for python __init__.py files

#1

I would love to be able to name the tabs of the python init.py file to the name of the module.
I know this is a really python only request, but any python users will Agree with this I think.

Example:

myPythonLib \_firstModule \_ __init__.py someFile.py

Editing init.py would name the tab firstModule instead of init.py

This would be huge for python developers using Sublime in my opinion.

1 Like

#2

31%20PM

This would generally be very useful outside of python. Often frameworks/codebases will use filenames that inherit it’s identity from the folder name, so in ST3 you get this scenario.

I probably have 20+ index.vue files in any non-trivial project.
These tabs, IMO, would be better presented like:

current behavior preferred behavior
IndexController.php - Product Product/IndexController.php
IndexController.php - Customer Customer/IndexController.php
index.vue posts/index.vue

maybe this could be a plugin or “show X folders before name” or “default tab name format” could be a new setting.

0 Likes