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

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
Sombra
Power Member
Power Member
Posts: 811
Joined: 2005-12-27, 22:23 UTC
Location: Zaragoza, Spain

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

Post 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.
I can read English, but... I write like Tarzan. (sorry)
User avatar
m^2
Power Member
Power Member
Posts: 1413
Joined: 2006-07-12, 10:02 UTC
Location: Poland
Contact:

Post 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"
)
User avatar
Sombra
Power Member
Power Member
Posts: 811
Joined: 2005-12-27, 22:23 UTC
Location: Zaragoza, Spain

Post 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.
I can read English, but... I write like Tarzan. (sorry)
Post Reply