Menu

#43 Coloured File TABs based on path of open file

open
nobody
5
2010-08-09
2010-08-09
Anonymous
No

Hi there!

Just a suggestion: Have a colour tab for the open file that is the same for every tab in the same directory. Relative directory are different hues of the colour.

/foo/bar/file1.php <--- Red
/foo/bar/file2.php <--- Red
/foo//file3.php <--- Dark Red
/foo/bar/sub/file4.php <--- Light Red
/bar/foo/file5.php <--- Blue
/bar/foo/sub/file6.php <--- Light Blue
/bar//file5.php <--- Dark Blue

This way you could have multiple files open (an NFS share here, a quick fix using SSHFS there, etc) and just by looking at them you would see that they were related (or not).

You could use the number of '/' in the path to increment or decrement the hue value and have a library of 20 or so base colours with a stepping of '10' between them which would give 225 / 10 * 20 = 550 individual file colours for tabs to pick form - meaning that the user would have to have 550 files open in 550 different directories before the number of colours were exhausted.

Great app anyway people - your work is appreciated.

Piers

piers@rowan.id.au

Discussion