Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Mathias (Author)

Pages: 1 ... 130 131 132 133 [134] 135 136 137 138 ... 172
3326
Support and Feedback / Re: Selection Color
« on: May 02, 2013, 09:55:24 »
(Btw moved topic. because this has nothing to do with rules based coloring)

Menu > Configuration > Explorer Panel Settings > Colors (Tab)

There you can configure colors..
Normal, Focus, Selected, Focus and selected

You can change default background color for inactive. But you can not change the file "state" colors for active/inactive separately.
If you run Explorer Styled key/mouse setup the inactive background color for selected item will be a bit lighter then the color that is set.

3327
Yes it should.. Damn.. I double checked that.

Well. I Will fix that for the next version.
(But I might have a UI for it then)


3328
MultiCommander v3.1 contains support for rule based coloring of file items.

However this feature is experimental and there is no user interface for configure the rules, Yet.
(Since it is experimental, Fell free to reply with feedback with ideas, tips and request on how this should work or be improved)

However. You can setup the rule based coloring using Multi-Script.  And the colors is not kept between restarts you can load that script automatic during startup, or button or hotkey or whatever you want,
And since it is script based you can have different color setup and change between then with a command that you call.

To enable Rule bases file coloring you must first enable it in settings
Menu > Configuration > Explorer Panel Settings > Colors (tab)

Before the configuration for the existing Color of file/folder based on file/folder name there is a new options
[.] (Experimental) Rule based coloring of file and folders
  (This settings will disabled the other file/folder coloring)

Configure Colors
All the rule based file coloring is done from 4 Multi-Script functions

FileColoringClear();        = Removes all Rules
FileColoringAddRule(...); = Add a Rule
FileColoringSetColor(...); = Set Color To a rule
FileColoringRefresh(...);   =  Refresh the coloring system with

You can combine multiple rules and if all of the nested rules are true, Only then is the color set.

All the rule are matches from the first to the last inserted rule. If a match is found for a file it will then
stop searching for another rule to match. So if you having trouble getting the correct color it might be because of the order
the rules are setup.

You first create a rule using FileColoringAddRule(...) and it will return a "rule handle" you then use that rule handle to set a color.

Code: [Select]
FileColoringAddRule(<parent rule if any, else 0> , <field> , <match type> , <value> );
When settings a color to a rule, you can specify both a text and background color. However the background color is only shown IF the options
"Use file specified background color" / "Use folder specified background colors" are enabled.
And to use the default background color use an empty string as background color.

eg.
Code: [Select]
FileColoringSetColor(  $rule , "#FF0000" , "" ); // Use the default specified background color.
Example.
Code: [Select]
// First we need to remove all existing rules. DO NOT FORGET TO DO THIS.
FileColoringClear();

// variable to store Rule in
@var $rule = 0;

// Add Rule - if file extension is jpg, bmp, png, or gif
$rule = FileColoringAddRule(0, "Ext" , "Is", "jpg|bmp|png|gif" );
FileColoringSetColor( $rule , "#FF0000" , "#00FF00" );

// Add Rule - if file extension is zip , rar or 7z
$rule = FileColoringAddRule(0, "Ext" , "Is", "zip|rar|7z" );
FileColoringSetColor( $rule , "#FF9954" , "#00FF00" );

// Add Rule - match the namepart using wildcard against *-Invoice-201?-*
$rule = FileColoringAddRule(0, "namepart" , "wildcard", "*-Invoice-201?-*" );
FileColoringSetColor( $rule , "#4455FF" , "#00FF00" );

// Add Rule - match substring from the full filename  will match "MyFile_abcdef.txt" and "myFile.edf"
$rule = FileColoringAddRule(0, "Fullname" , "contains", "edf" );
FileColoringSetColor( $rule , "#44FFFF" , "#00FF00" );

/ Add Rule - if file has readonly attribute set
$rule = FileColoringAddRule(0, "attribute" , "has", "r" );
FileColoringSetColor( $rule , "#FF2277" , "" );

// Add Rule - If file size is more then 10.000.000 bytes
$rule = FileColoringAddRule(0, "Size" , "MoreThen", "10000000" );
FileColoringSetColor( $rule , "#BB9988" , "#00FF00" );

// Add Rule - If date is before 2013-01-01 00:00:00 (Date MUST be ISO formatted.)
$rule = FileColoringAddRule(0, "Date" , "Before", "2013-01-01 00:00:00" );
FileColoringSetColor( $rule , "#444433" , "#00FF00" );

// Add Rule - Combine two rules.
//  if Size is MoreThen 10.000 bytes AND file extension is "txt"
$rule = FileColoringAddRule(0, "Size" , "MoreThen", "10000" );
$rule = FileColoringAddRule($rule, "Ext" , "Is", "txt" );
FileColoringSetColor( $rule , "#FF3299" , "#00FF00" );

// Revalidate all file coloring.
FileColoringRefresh();

Current supported Field

Fullname
Namepart
Ext
Size
Date
Attribute
= More to be added, for example extended file properties provided by extension. (Like they are used by MultiRename )


Match Type

Is        - If a string or numeric values matches exactly (String match is not case sensitive) (Fullname,namepart,ext,size)
Wildcard  - If a wildcard value matches (Fullname,namepart,ext)
RegExp    - If regular expression matches ( Fullname,namepart,ext) (Not Implemented yet)
Contains  - If a substring exists  (Fullname,namepart,ext)
Beginwith - If a string begin with...
Endswith  - if a string ends with...
LessThan  - If a numeric value is less then specified value (Like size)
MoreThan  - If a numeric value is more then specified value (Like size)
Before    - If a date value is before specified value
After     - If a date value is after specified value
Has       - If any of the specified flags are set. (used for attribute, "arshdl" flags are supported )
HasNot  - If any of the specified flags are NOT set (From Build 1412+)

= More matching type will be added

Attributes
When matching attribute you will use Has or HasNot as matchtype and as value you specify what attributes you want to check
and if any if them is found then the rule is true.

a - Archive flag
r - Readonly
s - System
h - Hidden
d - Directory / folder
l - Reparse point
c - compressed
e - encrypted
o - offline
1 - shortcut (lnk)
2 - shortcut (lnk) to folder
3 - symlink
4 - junction
5 - mount point
6 - network server
7 - network share

Example
Code: [Select]
// Has Readonly attribute
$rule = FileColoringAddRule(0, "Attribute" , "Has", "r" );

// Has System or Hidden attribute
$rule = FileColoringAddRule(0, "Attribute" , "Has", "sh" );

// DO NOT have archive attribute
$rule = FileColoringAddRule(0, "Attribute" , "HasNot", "a" );

Date Range (From build 1412+)
If you set field to "date" and use any Match Type of the following Is, LessThan or MoreThan then you can add rule like

Using LessThan/MoreThan you can specify X number of hours / days / weeks / months old.
for match value use number first then add h for Hour , d for day, w for weeks and m for months
Example
Code: [Select]
// More than 2 days old
$rule = FileColoringAddRule(0, "Date" , "MoreThan", "2d" );

// More than 48 hours old
$rule = FileColoringAddRule(0, "Date" , "MoreThan", "48h" );

// Less than 2 week
$rule = FileColoringAddRule(0, "Date" , "LessThan", "2w" );
Be aware. "2d" and "48h" are NOT the same.  Day matching will match days from current day. not current hour. so "1d" is current day only.

Using  "Is"  as Match Type you can specify Today, Yesterday, ThisWeek, ThisMonth, ThisYear.
Code: [Select]
// Rule for today
$rule = FileColoringAddRule(0, "Date" , "Is", "Today" );
// Yesterday.
$rule = FileColoringAddRule(0, "Date" , "Is", "Yesterday" );
// Current week. (will use regional settings in computer to figure out if first day of week is sunday or monday )
$rule = FileColoringAddRule(0, "Date" , "Is", "ThisWeek" );
// Current month
$rule = FileColoringAddRule(0, "Date" , "Is", "ThisMonth" );
// Current year
$rule = FileColoringAddRule(0, "Date" , "Is", "ThisYear" );


Updated 2013-05-24 - MC 3.1.1 Beta b1412,
   Added info about date additions in It now allows date rules for x days old, x weeks old or rule for today, thisweek and so on.
   MatchType HasNot to be used for attributes rules added.
   more file attributes not supported

   

3329
I will fix that

3330
Beta Releases / Re: Bugs (or misbehaviour) in 3.1.0 b1400
« on: April 26, 2013, 07:48:14 »
Yes you are right, I was looking in the wrong place. It is too early in the day.. :)

3331
Beta Releases / Re: Bugs (or misbehaviour) in 3.1.0 b1400
« on: April 26, 2013, 07:27:19 »
I was quite inattentive :) But i think this should be mentioned in u.46 line for MultiCommander core

no but u,47  :)


3332
Beta Releases / Re: Bugs (or misbehaviour) in 3.1.0 b1400
« on: April 26, 2013, 07:02:45 »
1. Ohh I forgot about this

2. Well It works the same, but because of (1) you did not see it.

3. I know and will not be fixed. It has to do with that focus is not restored until you click something.

4. NO there is no /PREV /NEXT param. but you can set the paramter Tab="..." to PREV/NEXT  TAB="PREV" , TAB="NEXT"

3333
Support and Feedback / Re: Search multiple drives?
« on: April 24, 2013, 12:53:53 »
No worries.

Kind of my fault, since the documentation is kind of incomplete.
If I had more time I would improve the documentation since it is missing a lot. But writing documentation takes more time then one might think.


( I have now updated the online documentation with a quick note about this )

3334
Support and Feedback / Re: Search multiple drives?
« on: April 23, 2013, 18:50:49 »
Separator is ";"

Eg "D:\;E:\;F:\Stuff;G:\Folder42"

3335
Support and Feedback / Re: wrong file size
« on: April 23, 2013, 10:05:14 »
However.. It could be that the thousand separator in your regional settings are bad or something.
What character do you have for that in regional settings in windows ?

3336
Support and Feedback / Re: wrong file size
« on: April 23, 2013, 09:54:33 »
That strange,

Because if the tooltip shows 1 Byte as filesize. Then it is the size that Windows gave to MC when it asked about the filesize

3337
Support and Feedback / Re: wrong file size
« on: April 23, 2013, 09:08:18 »
Sounds very strange.

How size does the tooltip show ? (makesure tooltip is set to always be shown, then hover over an item for 1-2sec)

3338
Support and Feedback / Re: Crash on Find Files with wrong input
« on: April 23, 2013, 07:39:25 »
Thanks.
I will take a look at that.

3339
Ahh okey that was an impotent clue :)

No that time can not be tweaked at this time. But that will be possible in the future.

3340
The focus should change instantly when you click on the item you what to set to focus. Don't understand how that can be slow

3341
Beta Releases / Multi Commander v3.1 RC Build 1397
« on: April 14, 2013, 12:26:32 »
Multi Commmander v3.1 (Build 1397) BETA -  155+ Changes

Changes since build 1385
ADDED - Able to hide delete options dialog when deleting to recyle bin. (Use at own risk)
ADDED - Command to show/hide hidden files. (No default hotkey set yet)
ADDED - Rule based coloring support "Contains", "BeginWith" , "EndsWith, and "Has" for attributes
ADDED - Row configuration for the button panel in Core Settings.
ADDED - Alternative commands for the button panel can be disabled.
ADDED - Custom Command "SetActiveTab" now support "Next" and "Prev" as tab parameter.
ADDED - Rename multiple item using move to same path.(shift+F6) is now using target name filter.
ADDED - FileOperations settings that was access from CopyTo dialog is not also available from configuration menu
ADDED - Change file properties dialog (Attributes and FileTime) can now also change Created and LastAccess time.
ADDED - Custom Command "MC.Explorer.SizeFolder" no support the parameter "ONLYFOCUS" that will only size folder that are in focus
FIXED - 1 Crash problem reported by Crash report system.


Changes since build 1390
CHANGE- Changed how checking for new version works.
FIXED - QuickLaunchBar handled relatives paths better.
ADDED - QuickLaunchBar can create relative paths better
ADDED - QuickLaunchBar can now be configured on how to handle dropped files.
ADDED - Show hidden files command and Search command now available in menu and toolbar
FIXED - Lots of internal fixes and improvements.

Changes in previous beta

How to update to beta version

(Reply to this post if you have any issues or questions about the changes that are listed new for the beta here. For other issue use the normal Support forum board.)

3342
Support and Feedback / Re: delete many files is very slow
« on: April 14, 2013, 12:11:35 »
Well I can't say why it is slow for you.
Deleting to recycle bin is normally done very very quick, specially folders are moved fast, since it will move the entire folder instead of moving all files inside the folder individually

3343
Support and Feedback / Re: delete many files is very slow
« on: April 14, 2013, 11:35:11 »
MC deletes as fast as windows allows it to delete.
If it is slow you must have something on your machine that interact or hook it self into the filesystem and slows it down.
It might be software like AV software , Undelete software, File History, or other

3344
Support and Feedback / Re: delete many files is very slow
« on: April 14, 2013, 10:21:34 »
Sure you are not doing permanent delete ?. Because when deleting to trashcan the delete operation is handed of to windows to do that.
But if your trashcan is very full, windows will also start to remove files permanently from the trash.

3345
I thought I added that already :), I know I lookup that flag.. Hmm Maybe I did not add it because of some reason I do not remember now.
However. I will take a look at it again and add see if I can add it.

3346
Feature Requests and Suggestions / Re: Search
« on: April 10, 2013, 22:43:53 »
Strange. I did some test and it did find the text. But I will look into to more later.

3347
Support and Feedback / Re: portable installation on my nas
« on: April 10, 2013, 22:42:21 »
Not sure why it does not work. But I will look into it.



3348
The tab colors can not be change at this time. Maybe in the future..

3349
Not really a bug. Just a behavior of how the UI works. The UI that shows the files own those key for navigating. But might be possible to change so that they do not own all the Ctrl variants for some of the navigations keys





3350
Support and Feedback / Re: FTP - keyboard shortcut
« on: April 08, 2013, 14:57:02 »
FTP is a virtual filesystem in MC so just create a command or bookmark that goes to a the FTP path.
"FTP:\<bookmark name>" and it will connect and go to that.

Pages: 1 ... 130 131 132 133 [134] 135 136 137 138 ... 172