Change directory color if specific subfolder is present

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
z9000
Junior Member
Junior Member
Posts: 4
Joined: 2018-02-27, 01:05 UTC

Change directory color if specific subfolder is present

Post by *z9000 »

Hi,

I can't figure out how to make the filter for coloring directories in this scenario:
Folder has the subfolder ".git"

I was looking for content plugins, but I can't find anything like this. Dirsizecalc is somewhat close, it can return a boolean if subdir is present but not a specific one.

Help would be appreciated.

Thank you!

PS: I use this file manager since around 96 and I love it, thanks for making it!
User avatar
tuska
Power Member
Power Member
Posts: 3740
Joined: 2007-05-21, 12:17 UTC

Define colors for folders/subfolders

Post by *tuska »

EDIT:
When considered again, the following is NOT, what you are looking for.
But I still leave the text here - maybe someone else can need it.
*********************************************************

Configuration > Options... > Color > Define colors by file type... > Add... > .git > Define... (Define selection)
Search for: *.git > switch to tab "Advanced" > tick "Attributes": > tick "Directory" (2x) > Save > Template name: *.git > OK > OK
choose color: e.g. red > OK > OK > OK

All folders* and subfolders with *.git in the name are automatically displayed in red.

*folders:
Unfortunately, I did not succeed in restricting to all subdirectories [using plugin "dirsizecalc"].

Note on coloring of folders/subfolders:
1. .git, a.git, abc.git -> color red is applied
2. abc.git-def, abc.gitdef -> No color is applied here

----
Unfortunately "Everything" can not be used here, e.g. ev:child:.git, since
ghisler(Author) wrote:'Everything' is not supported for colors by file type.
Reason: Total Commander does not search, he just compares the Folder names or their attributes with the specified search options.
Regards
Karl
Post Reply