Page 1 of 1

Internal command to toggle "Define colors by file type"

Posted: 2022-01-13, 16:32 UTC
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

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

Posted: 2022-01-13, 17:22 UTC
by tuska
I guess taking into account the dark mode... cm_SwitchDarkmode ...

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

Posted: 2022-01-13, 17:26 UTC
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.

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

Posted: 2022-01-14, 18:37 UTC
by petermad
Support+++

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

Posted: 2022-03-06, 20:59 UTC
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)

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

Posted: 2022-03-07, 06:43 UTC
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...

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

Posted: 2022-03-07, 20:04 UTC
by jinsight
Support++

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

Posted: 2022-03-10, 15:28 UTC
by ghisler(Author)
Added, thanks for the suggestion!

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

Posted: 2022-04-17, 17:36 UTC
by Fla$her
2ghisler(Author), thanks for adding! :)
This is much better than scripting solutions.