jacob-j / vscode-folder-path-color

All subfolders within a specified path will be assigned a color for easy differentiation.
20 stars 6 forks source link

Forced color works on files but not folders #6

Open jgphilpott opened 1 year ago

jgphilpott commented 1 year ago

Hi,

I love this extension and it's very useful how it still allows forced colors on git modified/untracked files. However, I would like it if it could allow forced colors on folder names as well. For example, if I create a brand new folder and add some files to it git lense will usually color the new file and the folder in green, see below:

Screen Shot 2023-07-09 at 10 00 49 AM

However, after adding a coloring rule such as the one below that changes the 'templates' parent folder 'app' to black...

"folder-path-color.folders": [
    {
        "path": "app",
        "color": "black"
    }
]

The forced coloring will allow all the new untracked files to remain green but the folder name is black and not forced to green also, see below:

Screen Shot 2023-07-09 at 10 09 42 AM

I think this would be helpful because it makes it easier to see if you have modified/untracked files within collapsed folders. If you have a modified file several layers deep in the folder hierarchy and all the parent folders are collapsed it's not easy to identify. In fact, the only indication you get is that little circle icon on the right of the folder name which is also not receiving the forced color. If you have a lot going on in your editor this can be difficult to spot.