Internal command to toggle "Define colors by file type"

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

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

Internal command to toggle "Define colors by file type"

Post by *Horst.Epp »

I have a lot of file type based coloring defined
but sometimes I want a clear display without all this colors.
Please provide a new internal command to toggle this function.
I propose
cm_ToggleDefineColorsbyFileType
Windows 11 Home x64 Version 23H2 (OS Build 22631.3374)
TC 11.03 x64 / x86
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69
QAP 11.6.3.2 x64
User avatar
tuska
Power Member
Power Member
Posts: 3741
Joined: 2007-05-21, 12:17 UTC

Re: Internal command to toggle "Define colors by file type"

Post by *tuska »

I guess taking into account the dark mode... cm_SwitchDarkmode ...
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6450
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Internal command to toggle "Define colors by file type"

Post by *Horst.Epp »

tuska wrote: 2022-01-13, 17:22 UTC I guess taking into account the dark mode... cm_SwitchDarkmode ...
Of course, the new toggle has nothing to do with dark mode.
Each mode has its default, so this should not be an additional problem.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3374)
TC 11.03 x64 / x86
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69
QAP 11.6.3.2 x64
User avatar
petermad
Power Member
Power Member
Posts: 14741
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Internal command to toggle "Define colors by file type"

Post by *petermad »

Support+++
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Mjolnir
Member
Member
Posts: 132
Joined: 2005-10-08, 21:03 UTC

Re: Internal command to toggle "Define colors by file type"

Post by *Mjolnir »

Support+++++

And more ?:
There also should be an internal command that, based on actual file under cursor, add/remove the file type (or file/folder name ?) to list of types <-> color
Something like : cm_ToggleAssociateColorbyFileTypeFromSelectedFile + as parameter, the "Define color by file type" saved name
- If already set, remove the file type to associated color
- If not set, associate the file type to color

(I'm used to set (add/remove) my file types/names via the Load/Save Searches, and then assign a color to it... but it's quite not an easy way to do it)
Longue vie a TC... déjà + de 20 ans de bons et loyaux services chez moi !
User avatar
nsp
Power Member
Power Member
Posts: 1804
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Re: Internal command to toggle "Define colors by file type"

Post by *nsp »

Support++

Temporary solutions:
I have a wdx script winscriptadv not_colorized.vbs the script just check the existence of a file in %USERPROFILE%. You can Addapt as you which..

Code: Select all

Set fso = CreateObject("Scripting.FileSystemObject")
content = fso.FileExists( "C:\Users\<UserID>\stop_colorize.txt" )
I have made on top of color definition an expression that use the wdx script and set default color ! (it capture and stop all subsequent colors definitions)
Then i have a batch script to create/rename or delete/rename this file. I call this batch in a em_command that do the toggle and refresh panel.

You can also use same technique to disable coloring on specific folders using the file path inside wdx...
User avatar
jinsight
Senior Member
Senior Member
Posts: 299
Joined: 2003-02-25, 19:47 UTC
Location: Wooster, Ohio, USA

Re: Internal command to toggle "Define colors by file type"

Post by *jinsight »

Support++
License #1945
Windows 10 Pro x64
Version 22H2 (OS Build 19045.3930)
TC 11.00 x64 and x86, Everything 1.5.0.1366a x64, QAP 11.6.3.1 x64
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Internal command to toggle "Define colors by file type"

Post by *ghisler(Author) »

Added, thanks for the suggestion!
Author of Total Commander
https://www.ghisler.com
Fla$her
Power Member
Power Member
Posts: 2244
Joined: 2020-01-18, 04:03 UTC

Re: Internal command to toggle "Define colors by file type"

Post by *Fla$her »

2ghisler(Author), thanks for adding! :)
This is much better than scripting solutions.
Overquoting is evil! 👎
Post Reply