2ts4242
This is intentional: When automatic view mode switching is enabled, TC will reload the view mode of the two active tabs when TC is launched, and of the inactive tabs which you switch to them.
I have applied some view modes to my locked tabs, i want these view modes to be permanent (for locked tabs) but with this bug these view modes will be lost one by one on each TC startup
Sorry, that's not how auto view mode switching works. If you want permanent view modes for these tabs, just add view mode switch rules for them. I did that for one directory which I keep locked (with directory changes allowed) and which needs to be sorted by name. The advantage is that the view mode will change to your default view mode when you change directory on that tab, but will revert to the locked view mode when you return to the locked root.
I agree with Christian here. The view isn't lost - it's just set to default view - which isn't easily recognizable in your sample ini.
2ghisler(Author)
For me the question here is if locked tabs should get a special treatment concerning the rules. I have a few locked tabs that have a specific icon (view mode defined) so I can recognize them faster. They all display their icon when I enter the tab root folder or one of its subfolders. But when I go a few level up the tab icon is gone. This is not a real problem as I'm still aware that I changed the path in this locked tab. The trouble starts when I move to another tab. In this case only the tab title helps but the icon (if any) is more confusing than it helps.
So maybe locking a tab could mean 'lock the current view mode'. What do you think? Other ideas to solve the mentioned problem?
Another advantage of this would be that I don't need to create an auto-switch rule.
What about saving switch mode per tab, i suggest adding new entry to tab's context menu (under "Configure view modes") labeled e.g. "Auto switch mode", when opening new tab, inherit its state (checked/unchecked) from the global setting and save it with the other tab options in Wincmd.ini.
The global setting is still useful for those don't use tabs.
Advantages
- No need to define rule for each locked tab
- Simple and clean rules list.
This is what I did based on your step by step instructions above.
1. Start TC with this ini file.
2. In the current tab navigate to a folder that matches the name 'Total Commander'. The view mode 'New files' should be applied to this tab automatically.
3. Lock the tab (with or without directory changes allowed)
4. Change the view mode manually to 'Multimedia'
5. Close TC
6. Reopen TC