Multi Commander Support Forum

Multi Commander => Support and Feedback => Topic started by: multicart on November 13, 2024, 11:18:58

Title: coloring rule for overlong file paths?
Post by: multicart on November 13, 2024, 11:18:58
Hi all,
is it currently possible to define a file coloring rule for overlong file paths?
i.e. if the path has more than 260 characters, apply the coloring rule

regards, m.
Title: Re: coloring rule for overlong file paths?
Post by: Mathias (Author) on November 13, 2024, 15:43:40
Yes

In color rules editor. Create a rule for it and select "Plugin (Extended Properties)" And Create a new rule item and add property "Extended - Path Length" and then in the value dialog enter "More Than" - "260"
Title: Re: coloring rule for overlong file paths?
Post by: multicart on November 13, 2024, 22:43:52
Thank you, Mathias,

I also had to activate the color rules in the Explorer panel settings, but now it works.  :)
Title: Re: coloring rule for overlong file paths?
Post by: multicart on November 15, 2024, 09:18:42
I had a case where an overlong file path was calculated as 200 chars, although it was over 260 chars long. (I temporarily displayed a column showing the path length.)
Thus, it was not colored according to the coloring rule.

It was a pdf file with multiple dashes, dots, underscores, and spaces in its name.
But for all other files in the same folder, the file path length was calculated correctly, as it seemed.

If you know of any way, Mathias, how to make the file path calculation more reliable, please do so. Many thanks in advance.
Title: Re: coloring rule for overlong file paths?
Post by: Mathias (Author) on November 15, 2024, 15:58:12
Path does not need to be calculated as such.. It just ask how long the total path is. does not matter what characters it is.
I'm not able to make it show wrong value. so not sure how that is even possible
Title: Re: coloring rule for overlong file paths?
Post by: AlanJB on November 15, 2024, 16:23:23
Just a WAG, but Unicode characters in the name perhaps?
Title: Re: coloring rule for overlong file paths?
Post by: multicart on November 15, 2024, 17:20:40
Nope. But I think I could now reproduce it:
When I inline rename a file (Windows Style F2), the path length is not updated automatically.
I have to manually refresh in order for the path length to update.
Title: Re: coloring rule for overlong file paths?
Post by: Mathias (Author) on November 16, 2024, 10:06:09
Nope. But I think I could now reproduce it:
When I inline rename a file (Windows Style F2), the path length is not updated automatically.
I have to manually refresh in order for the path length to update.
That is another thing..  Most column properties are cached. so you might need to F2/F5 to refresh.
Some properties should not be cached.. That file property might miss that flag.. i will check.