Colorize onnly last edited file

English support forum

Moderators: sheep, Hacker, Stefan2, white

Post Reply
bogordo
Junior Member
Junior Member
Posts: 74
Joined: 2019-12-06, 09:07 UTC

Colorize onnly last edited file

Post by *bogordo »

Hi,

Is there an option to colorize (within Define colors) only the last edited file inside a folder? i ask because i tend to change names between savings (name_v1, name_v2, name_v2_mod, ...) and sometimes is difficult to view fast what's the last working file (i could sort by Write date...but not so visual/fast)

Was thinking would be amazing to say "ey, colorize only the last saved file inside this folder" :o :?

User avatar
Horst.Epp
Power Member
Power Member
Posts: 3558
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Colorize onnly last edited file

Post by *Horst.Epp »

Not colorized but very helpful.
This button jumps to the newest file in current dir.
Ein passendes Icon nach dem einfügen in die Buttonbar selbst definieren.

Code: Select all

TOTALCMD#BAR#DATA
cmd.exe
/k "for /f "usebackq delims=" %%f in (`dir /b /a-d /o-d`) do start "" "%%COMMANDER_EXE%%" /O /S /L="%%~ff\:" & exit"
C:\Tools\Wincmd\Icons\Down-Blue.ico
Newest File

1
-1
Windows 10 Home x64 November 2019 Update, Version 1909 (OS Build 18363.657)
Intel(R) Core(TM) i7-4770 CPU @ 3.40GH, 16GB RAM
TC 9.51 RC2 x64 / x86, Everything 1.4.1.965 (x64)

User avatar
tuska
Power Member
Power Member
Posts: 1852
Joined: 2007-05-21, 12:17 UTC

Re: Colorize onnly last edited file

Post by *tuska »

You need the following for this:
1. Plugin Age 1.04
    Double click on file "wdx_age_1.04.zip" to install this plugin.
2. Saved search, e.g. Modified_within-last-3-minutes
    Plugin: age | Property: Changed | OP: < | Value: 3 | Minutes* --> adjustable!
3. Colour definition
    Configuration > Options... > Color > Define colors by file type... > Add... > click on "Modified_within-last-3-minutes", OK
    Choose a colour, e.g. blue > OK > OK > OK - FINISHED!

See also:
https://ghisler.ch/board/viewtopic.php?t=50011
Refreshing a panel doesn't reset 'age' highlight colouring
I use a button with command: cm_GotoPreviousDir,cm_GotoNextDir,cm_RereadSource for this.

It is not exactly what you want, but also very helpful.


*EDIT: I'm sorry, I forgot to specify the parameter "Minutes".
Last edited by tuska on 2020-01-18, 19:03 UTC, edited 1 time in total.

bogordo
Junior Member
Junior Member
Posts: 74
Joined: 2019-12-06, 09:07 UTC

Re: Colorize onnly last edited file

Post by *bogordo »

Thank you, first method is working really nice with files (not dirs).

The plugin method is working, but the color i define is overwritten but another color filter by extension, even that the plugin color is at the top...

EDITED: my fault, plugin is working fine, i thought the "3" value were minutes but looking into the .ini i saw are seconds :)

Best regards,
Last edited by bogordo on 2020-01-18, 16:23 UTC, edited 1 time in total.

User avatar
Usher
Power Member
Power Member
Posts: 772
Joined: 2011-03-11, 10:11 UTC

Re: Colorize onnly last edited file

Post by *Usher »

2bogordo
If you don't need high time precision, you can use "Define colors by file type…" and define selection for files/dirs not older then 0 (zero) days. It works properly when put on the top of the color list.
Regards from Poland
Andrzej P. Wozniak

bogordo
Junior Member
Junior Member
Posts: 74
Joined: 2019-12-06, 09:07 UTC

Re: Colorize onnly last edited file

Post by *bogordo »

Thanks Usher, nice option too!! :)

User avatar
petermad
Power Member
Power Member
Posts: 9360
Joined: 2003-02-05, 20:24 UTC
Location: Valsted, Denmark
Contact:

Re: Colorize onnly last edited file

Post by *petermad »

Here is what I use to mark files younger than 1 day and younger than 1 hour:

Code: Select all

[Searches]
Age < 1 hour_SearchFor=
Age < 1 hour_SearchIn=
Age < 1 hour_SearchText=
Age < 1 hour_SearchFlags=0|000002000020|||1|0|||||0000|
Age < 1 day_SearchFor=
Age < 1 day_SearchIn=
Age < 1 day_SearchText=
Age < 1 day_SearchFlags=0|000002000020|||1|1|||||0000|


[Colors]
ColorFilter1=>Age < 1 hour
ColorFilter1Color=16744576
ColorFilter1ColorDark=16744576,16744576
ColorFilter2=>Age < 1 day
ColorFilter2Color=16711808
ColorFilter2ColorDark=16744448,16711808
License #524 (1994)
Danish Total Commander Translator
TC 9.5b10 32+64bit on Win XP 32bit, Win 7, 8.1 & 10 (1909) 64bit, 'Everything' 1.4.1.960 (x64)
TC 3.0b16 on Android 6.0
Get: Extended Total Commander Menus | TC Languagebar | PHSM-Calendar

bogordo
Junior Member
Junior Member
Posts: 74
Joined: 2019-12-06, 09:07 UTC

Re: Colorize onnly last edited file

Post by *bogordo »

Thank you Peter, there you aren't using Age plugin, are you?

You forgot to put the "< 1 day" color right...?
(my coding language is terrible so not sure)

User avatar
petermad
Power Member
Power Member
Posts: 9360
Joined: 2003-02-05, 20:24 UTC
Location: Valsted, Denmark
Contact:

Re: Colorize onnly last edited file

Post by *petermad »

there you aren't using Age plugin, are you
Correct - no plugin - just the featrures in the "Advanced" tab of "Find Files"
You forgot to put the "< 1 day" color right...?
I don't think I forgot - that would be the: ColorFilter2Color=16711808
License #524 (1994)
Danish Total Commander Translator
TC 9.5b10 32+64bit on Win XP 32bit, Win 7, 8.1 & 10 (1909) 64bit, 'Everything' 1.4.1.960 (x64)
TC 3.0b16 on Android 6.0
Get: Extended Total Commander Menus | TC Languagebar | PHSM-Calendar

User avatar
Usher
Power Member
Power Member
Posts: 772
Joined: 2011-03-11, 10:11 UTC

Re: Colorize onnly last edited file

Post by *Usher »

Note that such a coloring is valid also for files/folders dated in the future (that is, with age less than zero).
Regards from Poland
Andrzej P. Wozniak

Post Reply