Page 1 of 1

Color coded Drives or directories

Posted: 2019-12-16, 21:10 UTC
by cheeroip
It could be nice to have the possibility to "colorcode" drives or directories. I would love to have a fast feedback if Im somewhere dangerous, or setting a different color for different computers shares over the network.

Example:
https://imgur.com/a/DJTRda3

Re: Color coded Drives or directories

Posted: 2019-12-17, 00:59 UTC
by petermad
You can already do that with "View Mode" combined with "Auto Switch Mode".

Re: Color coded Drives or directories

Posted: 2019-12-17, 15:23 UTC
by cheeroip
I'm going to investigate. Thanks for the hint.

Re: Color coded Drives or directories

Posted: 2019-12-17, 15:44 UTC
by petermad
Here are some settings for inspiration:
Spoiler
Show

Code: Select all

[ViewModes]
0_name=<default>
0_icon=%COMMANDER_EXE%,6
0_options=-1|-1|0||-1|-1|-1|-1|-1
1_name=Folder
1_icon=%COMMANDER_EXE%,6
1_commands=*cm_SrcAllFiles
1_options=-1|-1|0||-1|-1|-1|-1|-1
2_name=Archive
2_icon=*%COMMANDER_EXE%,7
2_commands=*cm_SrcAllFiles
2_options=-1|-1|0||-1|13434828|-1|25088|-1
3_name=FTP
3_icon=wcmicons.dll,16
3_options=-1|-1|0||-1|16769535|-1|5570645|-1
4_name=Search result
4_icon=wcmicons.dll,47
4_options=-1|-1|0||-1|13303807|-1|31097|-1
5_name=Share
5_icon=%COMMANDER_EXE%,5
5_commands=*cm_SrcAllFiles
5_options=-1|-1|0||-1|13295103|-1|15003|-1
6_name=Virtual Panel
6_icon=
6_commands=*cm_SrcAllFiles
6_options=-1|-1|0||-1|16768477|-1|6684672|-1
7_name=Dropbox
7_icon=*shell32.dll,13
7_options=-1|-1|0||-1|16768477|-1|6684672|-1
8_name=OneDrive
8_icon=*shell32.dll,17
8_options=-1|-1|0||-1|16768477|-1|6684672|-1
9_name=Google Drive
9_icon=*shell32.dll,15
9_options=-1|-1|0||-1|16768477|-1|6684672|-1
10_name=Box
10_icon=*shell32.dll,18
10_options=-1|-1|0||-1|16768477|-1|6684672|-1
11_name=Total Commander
11_icon=%COMMANDER_EXE%
11_options=-1|-1|0||-1|-1|-1|-1|-1

[ViewModeSwitch]
Enabled=1
0_rules=A
0_mode=2
1_rules=+%COMMANDER_PATH%\
1_mode=11
2_rules=+\\\Cloud\Google Drive\*\
2_mode=9
3_rules=+\\\Cloud\Dropbox\*\
3_mode=7
4_rules=+\\\Cloud\Box\*\
4_mode=10
5_rules=+\\\Cloud\OneDrive\*\
5_mode=8
6_rules=S
6_mode=4
7_rules=F
7_mode=3
8_rules=V
8_mode=6
9_rules=P
9_mode=6
10_rules=U
10_mode=5
11_rules=L1235
11_mode=1
12_rules=D
12_mode=5
Click the red button Show here above and put the code in your wincmd.ini file and restart TC. Then go to "Configuration" -> "Options..." -> "View Mode" and "Auto Switch Mode" - to see how it works.

Re: Color coded Drives or directories

Posted: 2019-12-17, 16:08 UTC
by tuska
There is also additional information here.

Re: Color coded Drives or directories

Posted: 2019-12-17, 16:56 UTC
by cheeroip
This is exactly what I was looking for...
I apologize for not having search the forum ( or you know, open the settings dialog... ) before posting and wasting people time...
I love how the tabs "remember" the color.

But since we are in suggestions... "
I hate that I have to configure the "Background 2 color" to match "background" and I miss the rest of the "Color" options.
Would be nice to be able to create multiple "Color" profiles (Themes?) and just being able to select them under View Mode.
Same thing with custom columns probably.

I would like to be able to switch the a different button bar (and maybe being able to set Button bars background color.

The Tab icon is a bit broke.
Image: https://i.imgur.com/DsfMxbO.png

...Please make those dialog resizable...

Re: Color coded Drives or directories

Posted: 2019-12-18, 00:00 UTC
by petermad
I hate that I have to configure the "Background 2 color" to match "background"
You could also consider to use "Background 2" color in the "Color" configuration (I recommend rgb: 240 240 240.

If you the set "Background 2" color in all View Modes to "Default", then the setting from the "Color" configuration will be used.


I would like to be able to switch the a different button bar
It is possible to switch the buttonbar with a "View Mode". You have to make an em_command that uses the OPENBAR <barfile) command, and then use that em_command in the "Auto-run comands:" field of the View Mode.

Re: Color coded Drives or directories

Posted: 2019-12-18, 15:09 UTC
by cheeroip
petermad wrote:
2019-12-18, 00:00 UTC
You could also consider to use "Background 2" color in the "Color" configuration (I recommend rgb: 240 240 240.
Not an option. I usually have the selection bar to white and the whole b/b2 just get super confusing most of the time.
petermad wrote:
2019-12-18, 00:00 UTC
If you the set "Background 2" color in all View Modes to "Default", then the setting from the "Color" configuration will be used.
the color management just behave differently between [Color] and [View Mode]. I assume it is still a work in progress.
But as [Vievmode] is now is already excellent and it exceed my expectation!
I would like to be able to switch the a different button bar
It is possible to switch the buttonbar with a "View Mode". You have to make an em_command that uses the OPENBAR <barfile) command, and then use that em_command in the "Auto-run comands:" field of the View Mode.
[/quote]
Ok, this time I checked before asking for the feature and the "cm_openbar" isn't there (9.22a). :)
No big deal. Thanks again for the suggestions

Re: Color coded Drives or directories

Posted: 2019-12-18, 21:26 UTC
by petermad
Ok, this time I checked before asking for the feature and the "cm_openbar" isn't there
No it is not cm_openbar but OPENBAR, you find it in the section "Commands with parameters" near the bottom of the list when you run cm_CommandBrowser - and since it is not a cm_command, you have to use it in and em_command, which you can then use in the View Mode.

Re: Color coded Drives or directories

Posted: 2019-12-19, 16:18 UTC
by cheeroip
petermad wrote:
2019-12-18, 21:26 UTC
No it is not cm_openbar but OPENBAR, you find it in the section "Commands with parameters" near the bottom of the list when you run cm_CommandBrowser - and since it is not a cm_command, you have to use it in and em_command, which you can then use in the View Mode.
Yeah you assume I had any idea that was possible to create new CM commands selecting usercmd.ini and those extra commands only show up when you actually create a new command... you made me browse a lot around sir.
At least I learned something new.
Image: https://i.imgur.com/ja4V7TE.png

Re: Color coded Drives or directories

Posted: 2019-12-19, 17:40 UTC
by petermad
you made me browse a lot around sir.
Sorry for that, but I did give you the direct command for the Command Browser/Editor: cm_CommandBrowser

You could just have run cm_CommandBrowser from TC's command line (or put it in a button on the buttonbar).

Re: Color coded Drives or directories

Posted: 2019-12-20, 15:14 UTC
by Phred
(I think he was thanking you for inducing him to delve deeper into the exigencies of TC's wonder, peter)
(I also think that it would be possible to do a PhD on Total Commander... :) )