How to generate a valid .tab file from wincmd.ini

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
Balderstrom
Power Member
Power Member
Posts: 2148
Joined: 2005-10-11, 10:10 UTC

How to generate a valid .tab file from wincmd.ini

Post by *Balderstrom »

I'm trying to break down the current left/right tab that is stored in a different format than all of the others.

Code: Select all

[left]
path=c:\
ShowAllDetails=2
SpecialView=0
show=1
negative Sortorder=0
userspec=>LargeFiles
sortorder=0

Code: Select all

[lefttabs]
0_path=::{20D04FE0-3AEA-1069-A2D8-08002B30309D}
0_caption=$
0_options=6|0|0|0|0|1|0
I figured the first options flag is related to the current view:
0: Brief Mode
1: Details Mode
2: Tree Folder
3: ????
4: Comments (also sets SpecialView=1)
5: Thumbnail (also sets Specialview=2)
6: The first CustomColumn View
The second options field, appears to be which tabstop is being sorted.
The third options flag: whether the tabstop is reversed order.

Questions:
1) What are the option flags 4 thru 7.
2) Are there key names that are related to fields 4 thru 7?
3) Can the first position of the options key have a value of 3? and if so what would cause it?
User avatar
ZoSTeR
Power Member
Power Member
Posts: 1050
Joined: 2004-07-29, 11:00 UTC

Post by *ZoSTeR »

Option 6 is the locked status:
1 locked
2 locked with dir change

Setting the other options to 1 didn't result in any obvious change...

Value 3 in option 1 seems to let you keep the current view. If this is intended no idea.
User avatar
ts4242
Power Member
Power Member
Posts: 2081
Joined: 2004-02-02, 20:08 UTC
Contact:

Post by *ts4242 »

2Balderstrom

Read this topic
I faced this question when start coding History Editor
User avatar
ts4242
Power Member
Power Member
Posts: 2081
Joined: 2004-02-02, 20:08 UTC
Contact:

Post by *ts4242 »

2Balderstrom
Here are more details from a comment in my source code

Code: Select all

' 0|0|0|0|0|0|0
' d|s|n|?|?|L|C

' d=Disply mode:
'    0=Brief,
'    1=Full,
'    2=Tree, 
'    4= comment,
'    5= Thumbinal view
'    6= Custom view colmun 1,
'    7= Custom view colmun 2,
'    8= Custom view colmun 3, etc...

' s= Sort mode:
'    0= by name,
'    1= by ext,
'    2= by size,
'    3= by date,
'    4= not sorted

' n= Sort order:
'    0= Ascending,
'    1= Descending

' L=Locked mode:
'    0= not locked,
'    1= locked,
'    2= locked, but change directory allowed

' C= Custom sort order
User avatar
Flint
Power Member
Power Member
Posts: 3506
Joined: 2003-10-27, 09:25 UTC
Location: Belgrade, Serbia
Contact:

Post by *Flint »

Balderstrom
And to conclude, fields 4 and 5 are used for tabs that display archive contents only. Field 4 contains the number of symbols in the full path to the archive (e.g. 11 if c:\test.zip is opened); field 5 is the archive format (1: zip, 2: arj, etc.).
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 11.03 / Win10 x64
Post Reply