Page 1 of 1

[suggestion] Command for enable/disable colors by file type

Posted: 2008-11-30, 20:36 UTC
by Sombra
Some times I switch the schema color off. It is a bit hard the obligation of go to: Configuration > Color > and uncheck "color by file type" and later the same operation for re-enable color by file type.
A new command for turn on/off this feature could be welcome for solve this issue.

For complement this suggestion, would be interesting add a new command with parameters. For example: SwitchColor <type_defined>
This would allow highlight files temporally, i.e.: highlight newer files, highlight pictures, disable colors by certain types of files, etc.

Posted: 2008-11-30, 23:07 UTC
by m^2
You can create a workaround.
IIRC Lefteous' misc plugin has a field "exists". At least sb. made a plugin with such field. ;)
Make the 1st coloring scheme:
Black (ar any other colour) if exists %COMMANDER_PATH%\DUMMY.txt.
As a command assign the following .bat file:

Code: Select all

if exist "%COMMANDER_PATH%\DUMMY.txt" (
    del "%COMMANDER_PATH%\DUMMY.txt"
) else (
    echo.>"%COMMANDER_PATH%\DUMMY.txt"
)

Posted: 2008-12-01, 21:03 UTC
by Sombra
Hello m^2,
Hmm... Still I don't have very clear the way to take, but I will investigate it. ;)
Thank you for the hint.