Auto Switch Mode not triggering when "opentabs" is used to load a locked tab
Moderators: Hacker, petermad, Stefan2, white
Auto Switch Mode not triggering when "opentabs" is used to load a locked tab
Not sure if this is by design or not.
Re: Auto Switch Mode not triggering when "opentabs" is used to load a locked tab
Hi,
how did you approach the issue?
Can you perhaps give a short description here?
For example, did you use an em_command in View mode -> "Auto-run commands:"-field for OPENTABS?
In case of problems with Auto Switch Mode, it is always advisable to specify relevant sections from the wincmd.ini,
so that with a clean.ini - after inserting these sections - one can better understand the situation:
Overview: View Mode | Auto Switch Mode | Custom columns view
how did you approach the issue?
Can you perhaps give a short description here?
For example, did you use an em_command in View mode -> "Auto-run commands:"-field for OPENTABS?
In case of problems with Auto Switch Mode, it is always advisable to specify relevant sections from the wincmd.ini,
so that with a clean.ini - after inserting these sections - one can better understand the situation:
- sections [ViewModes], [left], [right]
- section [ViewModeSwitch]
Overview: View Mode | Auto Switch Mode | Custom columns view
Re: Auto Switch Mode not triggering when "opentabs" is used to load a locked tab
Rule
Image: https://i.imgur.com/DCmPBtb.png
Buttonbar
opentabs default.tab
default.tab
;tab not locked -> view mode is correctly set
; tab locked -> view mode is not changed
Image: https://i.imgur.com/DCmPBtb.png
Buttonbar
opentabs default.tab
default.tab
;tab not locked -> view mode is correctly set
Code: Select all
[activetabs]
0_path=E:\Downloads\
0_options=1|0|0|0|0|0|0
Code: Select all
[activetabs]
0_path=E:\Downloads\
0_options=1|0|0|0|0|1|0
Re: Auto Switch Mode not triggering when "opentabs" is used to load a locked tab
Section [ViewModes] --> for "Downloads" is missing --- and TC-Version...
It is not clear from the picture what the View mode "Downloads" is supposed to do.
It is not clear from the picture what the View mode "Downloads" is supposed to do.
Re: Auto Switch Mode not triggering when "opentabs" is used to load a locked tab
I have now done the following:Stiltzkin wrote: 2021-01-21, 15:28 UTC ; tab locked -> view mode is not changedCode: Select all
[activetabs] 0_path=E:\Downloads\ 0_options=1|0|0|0|0|1|0
- TC_clean_x64.ini (please see code below...)
- View Mode "Downloads": sorted descending by name + Auto Switch Mode: +: Must match D:\Downloads\
- Tabs for D:\Downloads\ - left panel
- Lock this tab | sorted descending by name
- Unlocked tab | sorted descending by name - Tab for D:\Downloads\ - right panel
- Locked, but directory changes allowed | sorted descending by name - Save tabs on both sides to file ->
Code: Select all
SAVETABS2L %COMMANDER_PATH%\Tests\default.tab
- Files -> Quit Alt+F4
- Restart TC with TC_clean_x64.ini
- Checking the tabs for View Mode -> sorted descending by name
- Focus is in the right TC window with Tab: Locked, but directory changes allowed for D:\Downloads\
and View mode "sorted descending by name" - Button press with command...
Code: Select all
OPENTABSL %COMMANDER_PATH%\Tests\default.tab
- Result: The View mode is retained!
default.tab
Code: Select all
[activetabs]
0_path=d:\Downloads\
0_options=1|0|0|0|0|1|0
;0_options=1|0|0|0|0|1|0 --> does NOT work for you and me!
;0_options=1|0|1|0|0|1|0|||1 --> works! Lock this tab
1_path=d:\Downloads\
1_options=1|0|1|0|0|0|0|||1
;1_options=1|0|1|0|0|0|0|||1 --> works! Unlocked tab
activetab=0
[inactivetabs]
0_path=d:\Downloads\
0_options=1|0|1|0|0|2|0|||1
;0_options=1|0|1|0|0|2|0|||1 --> works! Tab: Locked, but directory changes allowed
activetab=0
TC_clean_x64.ini
Code: Select all
[Configuration]
UseNewDefFont=1
SetEncoding=äö.do.not.remove
firstmnu=3130
FirstTimeIconLib=0
FirstTime=0
SeparateTree=0
PanelsVertical=0
TabDir=%COMMANDER_PATH%\Tests\
test=209
[ButtonbarCache]
IconDll_default.bar=
IconDll_vertical.bar=
[FileSystemPlugins64]
$checksum$=3014672
[left]
path=d:\Downloads\
ViewMode=1
activepanelcolor=-1
activepanelcolor2=-1
activepanelcolordark=-1
activepanelcolordark2=-1
ShowAllDetails=1
SpecialView=0
show=1
sortorder=0
negative Sortorder=1
[right]
path=d:\Downloads\
ViewMode=1
activepanelcolor=-1
activepanelcolor2=-1
activepanelcolordark=-1
activepanelcolordark2=-1
ShowAllDetails=1
SpecialView=0
show=1
sortorder=0
negative Sortorder=1
[ViewModeSwitch]
Enabled=1
0_rules=+D:\Downloads\
0_mode=1
[Buttonbar]
Buttonheight=29
Buttonheight120=29
FlatIcons=1
SmallIcons=1
SmallIconSize=16
SmallIconSize120=16
DefaultDpi=120
XPstyle=1
[ViewModes]
0_name=<default>
0_icon=
0_options=1|0|0||-1|-1|-1|-1|-1
1_name=Downloads
1_icon=
1_options=1|0|1||-1|-1|-1|-1|-1
[lefttabs]
0_path=d:\Downloads\
0_options=1|0|1|0|0|0|0|||1
activetab=0
activelocked=1
[righttabs]
activetab=0
activelocked=2
Code: Select all
0_options=1|0|0|0|0|1|0
after pressing the button with command "OPENTABSL %COMMANDER_PATH%\Tests\default.tab" to ascending sorting.
With the settings "unlocked tab" and "Locked, but directory changes allowed" the View mode is preserved!
However, based on my successful tests, I cannot explain to myself, how it comes to this setting (-> see "default.tab").
Well, maybe you can at least specify the TC version that was used.
Windows 10 Pro (x64) Version 20H2 (OS build 19042.746) | TC 9.51 x64
Re: Auto Switch Mode not triggering when "opentabs" is used to load a locked tab
i'm using 9.51.
but the tab file was last changed in march 2019 (which would date it back to v9.22x).
so my
0_options=1|0|0|0|0|1|0 (tab locked) will load the default view mode and ignore the " [x]automatically switch mode" in the options
if i save the tabs again with a view mode already set, they will be saved as
0_options=1|0|1|0|0|1|0|||1
or
0_options=1|0|0|0|0|1|0||255|2|1 (second test-view mode)
and it will work
so the background color and the number of the view mode preset (current order) gets saved in the tab file, not the name of the view.
guess i can work with that.
thanks for the testing.
funny enough: in my default.tab are 2 more entries which get their icon in the tab without a view mode defined:
1 from the default.ini
and the second gets the default "windows libraries" icon:
but the tab file was last changed in march 2019 (which would date it back to v9.22x).
so my
0_options=1|0|0|0|0|1|0 (tab locked) will load the default view mode and ignore the " [x]automatically switch mode" in the options
if i save the tabs again with a view mode already set, they will be saved as
0_options=1|0|1|0|0|1|0|||1
or
0_options=1|0|0|0|0|1|0||255|2|1 (second test-view mode)
and it will work
so the background color and the number of the view mode preset (current order) gets saved in the tab file, not the name of the view.
guess i can work with that.
thanks for the testing.
funny enough: in my default.tab are 2 more entries which get their icon in the tab without a view mode defined:
1 from the default.ini
Code: Select all
1_path=E:\Documents\
1_options=1|0|0|0|0|1|0|
Code: Select all
1_options=1|0|0|0|0|1|0
2_path=::{031E4825-7B94-4DC3-B131-E946B44C8DD5}
Re: Auto Switch Mode not triggering when "opentabs" is used to load a locked tab
2Stiltzkin
The option "User defined icons (view modes)" has the lowest priority, unless the box "Priority" is checked in the View Mode setting.
There are 6 different ways a tab can get its icon - see Menu: "Configuration" - "Options..." - > "Folder Tabs" -> click on the button [>>] to the right of "Show icons on tabs".n my default.tab are 2 more entries which get their icon in the tab without a view mode defined:
The option "User defined icons (view modes)" has the lowest priority, unless the box "Priority" is checked in the View Mode setting.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar