Tabs color

Hi all,

Is there some way to fill the remote files tabs with another color?
Or may be another way to apply some difference exists?


Would you mind filing an enhancement request for this?

I think it’s possible to change background color of “remote” tabs, at least there’s a macro/userscript which does it but for different languages. The SDK provides such a good API for making a lot of interesting things.

I means something like this:

That’s too cool for me :smile:

Thanks, Defman. I think that feature will be usefull not for me only.
That will be really useful for tabs navigation when you’re working with local and remote files at once.

Ive bin playing with a userscript to achieve this.
Got it working with a small userscript, triggered after file open:

var koDoc = (komodo.koDoc === undefined ? komodo.document : komodo.koDoc);
var file = koDoc.file;

if (file !== null && file.isRemoteFile) {
    var tabsView = document.getElementById('tabbed-view');
    var tabs = tabsView.getElementsByTagName('tab');
    for (var i = 0; i < tabs.length; i++) {
        if (tabs[i].selected) {
            tabs[i].style.background = '#606060';

This will work when you open a file, and will not work when you open komodo and you’re workspace is restored.

1 Like

That’s ok. Personally me don’t have needs to restore the files via SFTP session, for example, on Komodo start.
I’ll try the script today. I’m wondered that it’s so simple. It’s necessary to RTFM how to use the userscripts in Komodo for the beginning. I’m new in Komodo :blush:
But as far as I understand the script should be active during all Komodo session (starts on Komodo load). Am I right?.

You can add the userscript in the toolbox, by add -> new userscript and than in the tab triggers select the after file open trigger.


Really cool and very helpfull!

Thank you very much. I hope that will be helpfull to somebody else, too.

1 Like

Have the case to check the feature in practice today. Near dozen of opened tabs, one same file opened localy and via SFTP between them. The chance to entangle the files is real, but the dark green tab make this situation absolutely unavailable :slight_smile: Great and simple visual improvement, thank you once more. May be the guys include it in some future release if it’s so simple.