Author Topic: coloring rule for overlong file paths?  (Read 1336 times)

multicart

  • Junior Member
  • **
  • Posts: 25
    • View Profile
coloring rule for overlong file paths?
« 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.

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4420
    • View Profile
    • Multi Commander
Re: coloring rule for overlong file paths?
« Reply #1 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"

multicart

  • Junior Member
  • **
  • Posts: 25
    • View Profile
Re: coloring rule for overlong file paths?
« Reply #2 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.  :)
« Last Edit: November 13, 2024, 22:45:34 by multicart »

multicart

  • Junior Member
  • **
  • Posts: 25
    • View Profile
Re: coloring rule for overlong file paths?
« Reply #3 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.

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4420
    • View Profile
    • Multi Commander
Re: coloring rule for overlong file paths?
« Reply #4 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

AlanJB

  • VIP Member
  • *****
  • Posts: 436
  • VERY old Programmer
    • View Profile
Re: coloring rule for overlong file paths?
« Reply #5 on: November 15, 2024, 16:23:23 »
Just a WAG, but Unicode characters in the name perhaps?

multicart

  • Junior Member
  • **
  • Posts: 25
    • View Profile
Re: coloring rule for overlong file paths?
« Reply #6 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.

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4420
    • View Profile
    • Multi Commander
Re: coloring rule for overlong file paths?
« Reply #7 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.