1
Feature Requests and Suggestions / Re: Color code folders based on empty sub-branch / MultiScript columns
« on: Yesterday at 11:40:52 »
From Build 3036 (beta) there is now a new function that can be used to be able to colors folder with no files.. (subfolder are not counted as files)
It is a bit tricky and many steps to connect everything together.
Create a User defined Command
Create a Userdefined command of type MultiScript
Save it.
Define a Scriptable File Property (Column in filelist)
Right click on column header and go to customize.
Click the Script button at the side to define a new Scriptable file property.
Create a new, and from the Dropdown select the MultiScript function you created before. It should be shown in the dropdown list.
Save it
Then Add That scriptable column to the columns that should be show.
Create a File Coloring Rule.
Click on color wheel icon and and Select File Coloring Rules Editor.
Add a new rules and enter a name for it. (rules are matched from top to button, so if you have multiple rules maybe you need to move it to the top so it is not overwritten by anohter rule)
And click Modify rules.
Select "Plug-in (Extended Properties)"
Add New
Then select the scriptable column you defined before
In Text matching selet "IS" and "Empty"
Then save it configure the color you want for that rule and then save it
The only current issue is that the scriptable column need to be shown for it to work.
It is a bit tricky and many steps to connect everything together.
Create a User defined Command
Create a Userdefined command of type MultiScript
Code: [Select]
#options (AllowAsFileProp)
if(IsVariableDefined("$_FILEPROP_FILEPATH") == 0)
{
@gvar $_FILEPROP_FILEPATH = GetSourceFocusPath();
}
@var $isEmpty = "";
@var $isFolder = IsFolder($_FILEPROP_FILEPATH);
if($isFolder)
{
$_FILEPROP_FILEPATH = $_FILEPROP_FILEPATH ^ "*";
@var $found = FindFirstFileEx($_FILEPROP_FILEPATH, "SUBFOLDERS,ONLYFILENAME, IGNOREFOLDERS");
if(!StrIsEqual($found, ""))
{
$isEmpty = "Empty";
}
}
@var $_FILEPROP_DISPLAYNAME = $isEmpty;
Save it.
Define a Scriptable File Property (Column in filelist)
Right click on column header and go to customize.
Click the Script button at the side to define a new Scriptable file property.
Create a new, and from the Dropdown select the MultiScript function you created before. It should be shown in the dropdown list.
Save it
Then Add That scriptable column to the columns that should be show.
Create a File Coloring Rule.
Click on color wheel icon and and Select File Coloring Rules Editor.
Add a new rules and enter a name for it. (rules are matched from top to button, so if you have multiple rules maybe you need to move it to the top so it is not overwritten by anohter rule)
And click Modify rules.
Select "Plug-in (Extended Properties)"
Add New
Then select the scriptable column you defined before
In Text matching selet "IS" and "Empty"
Then save it configure the color you want for that rule and then save it
The only current issue is that the scriptable column need to be shown for it to work.