English support forum
Moderators: Hacker , petermad , Stefan2 , white
Alexisback
Junior Member
Posts: 80 Joined: 2016-10-26, 20:04 UTC
Post
by *Alexisback » 2021-05-30, 16:47 UTC
Hello everyone,
what I would like to achieve and this
if the folder contains the text
x265 it must turn
green , and so far I have succeeded
Image:
https://www.upload.ee/image/13190080/sshot-1.png
but if the folder contains the text
x265 and is
empty it must not be colored green but
light gray
I tried but without succes
petermad
Power Member
Posts: 16032 Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:
Post
by *petermad » 2021-05-30, 18:51 UTC
If you install the DirSizeCalc plugin (
https://totalcmd.net/plugring/dirsizecalc.html ) then these settings in wincmd.ini should do it:
Code: Select all
[Searches]
x265_SearchFor=x265
x265_SearchIn=
x265_SearchText=
x265_SearchFlags=0|002002010021|||||||||0000|||
x265_plugin=dirsizecalc.Empty = Yes
[Colors]
ColorFilter1=>x265
ColorFilter1Color=12632256
ColorFilter2=x265
ColorFilter2Color=51712
Remember to restart TC after making changes to wincmd.ini
You can also use the plugin FileX (
https://totalcmd.net/plugring/FileX.html ) it can also detect empty dirs (and it is much slimmer than DirSizeCalc):
Code: Select all
[Searches]
x265_SearchFor=x265
x265_SearchIn=
x265_SearchText=
x265_SearchFlags=0|002002010021|||||||||0000|||
x265_plugin=filex.EmptyDir = 1
Alexisback
Junior Member
Posts: 80 Joined: 2016-10-26, 20:04 UTC
Post
by *Alexisback » 2021-05-31, 06:21 UTC
Thank you so much
petermad
works great with DirSizeCalc
nsp
Power Member
Posts: 1924 Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:
Post
by *nsp » 2021-05-31, 08:10 UTC
Can you validate your x265 search expression to see if it match all 3 folder ?
if not you could change to *x265* and save your search expression again !
Alexisback
Junior Member
Posts: 80 Joined: 2016-10-26, 20:04 UTC
Post
by *Alexisback » 2021-05-31, 09:01 UTC
nsp wrote: 2021-05-31, 08:10 UTC
Can you validate your x265 search expression to see if it match all 3 folder ?
if not you could change to *x265* and save your search expression again !
some examples?
i used petermad code
petermad
Power Member
Posts: 16032 Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:
Post
by *petermad » 2021-05-31, 10:20 UTC
2
Alexisback
Try and change
Code: Select all
x265_SearchFor=x265
ColorFilter2=x265
to
Code: Select all
x265_SearchFor=x265.
ColorFilter2=x265.
with a period after x265.
But if you also want to be sure that
no files with the name x265 are colored, then the whole thing should be changed to:
Code: Select all
[Searches]
x265notempty_SearchFor=x265.
x265notempty_SearchIn=
x265notempty_SearchText=
x265notempty_SearchFlags=0|002002010021||||||||22221|0000|||
x265empty_SearchFor=x265.
x265empty_SearchIn=
x265empty_SearchText=
x265empty_SearchFlags=0|002002010021||||||||22221|0000|||
x265empty_plugin=dirsizecalc.Empty = Yes
[Colors]
ColorFilter1=>x265empty
ColorFilter1Color=12632256
ColorFilter2=>x265notempty
ColorFilter2Color=51712
Alexisback
Junior Member
Posts: 80 Joined: 2016-10-26, 20:04 UTC
Post
by *Alexisback » 2021-05-31, 10:38 UTC
maybe I explained myself wrong
point 3 with the title x265 in the folder should be colored green,
Code: Select all
[Searches]
x265_SearchFor=x265.
x265_SearchIn=
x265_SearchText=
x265_SearchFlags=0|002002010021|||||||||0000|||
x265_plugin=dirsizecalc.Empty = Yes
Code: Select all
[Colors]
ColorFilter1=>x265
ColorFilter1Color=12632256
ColorFilter2=x265.
ColorFilter2Color=51712
petermad
Power Member
Posts: 16032 Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:
Post
by *petermad » 2021-05-31, 12:25 UTC
2
Alexisback
OK - I think I got your demands backwards - try this in stead:
Code: Select all
[Searches]
x265notempty_SearchFor=x265
x265notempty_SearchIn=
x265notempty_SearchText=
x265notempty_SearchFlags=0|002002010021||||||||22221|0000|||
x265empty_SearchFor=x265
x265empty_SearchIn=
x265empty_SearchText=
x265empty_SearchFlags=0|002002010021||||||||22221|0000|||
x265empty_plugin=dirsizecalc.Empty = Yes
[Colors]
ColorFilter1=>x265empty
ColorFilter1Color=12632256
ColorFilter2=>x265notempty
ColorFilter2Color=51712
This should use green if a folder
name contains x265 and the folder is empty, and grey if a folder
name contains x265 and the folder is not empty
Alexisback
Junior Member
Posts: 80 Joined: 2016-10-26, 20:04 UTC
Post
by *Alexisback » 2021-05-31, 12:32 UTC
perfect, it works
now it is displayed as I wanted
Thank you very much
petermad
Alexisback
Junior Member
Posts: 80 Joined: 2016-10-26, 20:04 UTC
Post
by *Alexisback » 2021-06-05, 04:18 UTC
I would like to make a small change,
the folder should turn green only if there is a video with .mp4 or mkv extension and the word x265 in the title
otherwise it should be light gray
it's possible?
petermad
Power Member
Posts: 16032 Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:
Post
by *petermad » 2021-06-05, 08:32 UTC
2
Alexisback
the folder should turn green only if there is a video with .mp4 or mkv extension and the word x265 in the title
I cannot think of a way to do that - sorry