Folders - list and color


#1

Hi,

  1. Currently, the order of project folders are listed as they added.
    Is it possible to change the order? i.e, moving a project folder

  2. Is it possible to define color on the project folders?

Thanks!
Ido


#2

It would be possible to get the array of the project’s paths and reorder them, but there is not an easy way that I know of to change the order of the folders.

Is it possible to define color on the project folders?

It’s possible to do so in your styles.less.


#3

Thank you for the follow up.

Can you please give an example how do edit the colors?


#4

Every Tree View item is a span with a title that exactly matches its name, so you can address them that way.

span[title="Robert's Site"] {
  color: red;
}

#5

Thanks!
Is it possible to use regex?


#6

No, but you can match substrings.

Using regex would require JavaScript, and it wouldn’t be too difficult, but you’d have to get all the Tree View item nodes and compare the regex to the attributes of each, then inject a style rule into the ones that match.


#7

Thats so cool! Thank You.