Increase colored period of modified files

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
Luka
Junior Member
Junior Member
Posts: 2
Joined: 2016-04-06, 13:12 UTC

Increase colored period of modified files

Post by *Luka »

Is it possible and how to increase a time period (for few hours) for changed/modified files TO STAY COLORED.

Thanks.
User avatar
petermad
Power Member
Power Member
Posts: 16137
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

These entries in wincmd.ini

[Colors]
ColorFilter1=>Age < 2 hours
ColorFilter1Color=16744576

[Searches]
Age < 2 hours_SearchFor=
Age < 2 hours_SearchIn=
Age < 2 hours_SearchText=
Age < 2 hours_SearchFlags=0|002002000020|||2|0|||||0000|

will mark changed/modified files in a blue shade for the first 2 hours.

If you want for example only one hour, then use:

[Colors]
ColorFilter1=>Age < 1 hour
ColorFilter1Color=16744576

[Searches]
Age < 1 hour_SearchFor=
Age < 1 hour_SearchIn=
Age < 1 hour_SearchText=
Age < 1 hour_SearchFlags=0|000002000020|||1|0|||||0000|

You can edit/save searches from the UI by Alt-F7 -> "Load/Save" (tab)
And you can assign a color to a saved search by "Configuration" -> "Options..." -> "Color" -> "Define colors by file type" (button) -> "Add"
Last edited by petermad on 2016-04-06, 18:22 UTC, edited 3 times in total.
License #524 (1994)
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Luka,
By default there is no any file coloring in TC so the question is a bit incorrect. Correct one would be 'how to color files modified within N last hours'.
If petermad's answer is too hardcore, all may be done within TC interface: Configuration - Color - Define colors by file type - here you can add or edit search templates (in your case template should contain 'not older than N hours' rule) and change colors.
Luka
Junior Member
Junior Member
Posts: 2
Joined: 2016-04-06, 13:12 UTC

Post by *Luka »

thanks a lot.

unfortunately, Peter it was not possible like it, but i made it with coping just a part 0|002002000020|||2|0|||||0000| a pasting it to original place where are minutes mentioned.
My boss wanted it for a 3 days because he`s sometimes on trips so I change it to 0|002002000020|||72|0|||||0000| 72hours I guess.

And it seems like it works. For now :wink:
User avatar
petermad
Power Member
Power Member
Posts: 16137
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

2Luka

3 days could also be:
0|002002000020|||3|1|||||0000|
License #524 (1994)
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Post Reply