Sublime Forum

[Ideas] Different tab colors for each file type + aging tabs

#1

I’m not sure if this was suggested before, but could be very handy:
I use ST2 mostly for developing for the web, which means I always have PHP, JS, CSS files opened.
It could be very helpful to have each type of file a different background color, so it will be easier to distinguish them from each other.

One more suggestion that I have regarding tab colors - Aging tabs.
I actually got this idea from a firefox extension ( addons.mozilla.org/en-US/firefo … ging-tabs/ ).
Imagine having many files opened, but some of them are not currently in use, it would be easier to distinguish the active ones from the others if the background of tabs that are not in use will start to fade away.

I’ve photoshopped a screenshot to demonstrate both suggestions:

as you can see, CSS tabs are bluish, JS tabs are reddish, and I’ve left the PHP tabs gray.
The 2 last tabs are ‘aged’, and are faded out a bit.

I’d love to see these features in ST2 :smile:

1 Like

#2

I love the idea of fading tabs out if they haven’t been used.

0 Likes

#3

I love the idea too!

0 Likes

#4

+1 from me too… sounds like it could be a very useful feature.

0 Likes

#5

I would need this useful. It would make a good plugin.

0 Likes

#6

Would be very useful, would really like if it was possible to use different color for different file types in the sidebar as well (and in ctrl+p).

0 Likes

#7

I’ve added these ideas to the userecho system, as requested by jps.

I’m happy to see that others like these ideas, please vote for them in these links:

http://sublimetext.userecho.com/topic/86802-different-tab-colors-for-each-file-type/
http://sublimetext.userecho.com/topic/86803-inactive-tabs-ages-and-fades-until-used-again/

Thanks!

0 Likes

#8

According to this post by Alan Bargi on userecho:

[quote]It’s now possible (in Dev builds) to have this but needs a little bit of tweaking.
create filetype specific settings and give them each a different color-scheme. or change the background color of a single theme and save it with another name and assign it to a specific filetype. this way you can have different tab colors for each file type here is mine:

http://sublimetext.userecho.com/s/attachments/201201/i_302.png
[/quote]

I’ve seen at least one other post with it apparently working.

What is the syntax for this? Where does it get configured?

Thanks

0 Likes

#9

Ok, I figured it out. All it took was reading the post.

]Open up a couple files of different types (.py, *.html, .cpp, etc) or simply open a few "new file"s and assign each of them a different syntax./]
*]When each of them is selected, click “Preferences” -> “File Settings - More” -> “Syntax Specific - User” to open up a new blank .sublime-settings file./]
*]Add a line like{ "color_scheme": "Packages/Color Scheme - Default/Eiffel.tmTheme" } or { "color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme" }
to each .sublime settings file and save them./]
]Dance in your seat. :smiley: /]

0 Likes

#10

Added my vote, this is a great idea! And the workaround will suffice, but I’d prefer a better way that doesn’t involve duplicated themes. :smile:

0 Likes

#11

Does anybody know how to make this work in Sublime Text 3?
Thank you in advance!

0 Likes

#12

Partially your needs are covered with ZenTabs. Plugin will automatically replace older tab when you open a new one, so you don’t overreach a configurable limit.
I also try to found possibility to change colour of tab but still without success. :frowning:

0 Likes