Just because it also still fits the topic...
Video (approx. 5 min.)
It is possible to set filters in both windows to tabs and there is a solution but with a
restriction:
You can switch between tabs with filters, but
*per TC window* you ALWAYS have to switch to a tab without filter in between! *)
If you mistakenly click on two tabs with filters one after the other, the filter is removed from the second tab with filter
and you can/must restore the filter by clicking on the respective button.
*) (Reason: After leaving the 'View mode', the filter must be switched off -> cm_SrcAllFiles).
Requirement:
3 buttons (per button: Filter ON/OFF switch), 3 em_commands and 3 View modes.
The buttons can be applied to any directories and not only to the respective tab.
Code: Select all
TOTALCMD#BAR#DATA
cm_SrcViewModeList Pictures
wciconex.dll,25
cm_SrcViewModeList Pictures|em_Pictures||cm_SrcAllFiles,cm_RereadSource 2|cd *.ani *.bmp *.gif *.ico *.jpe *.jpeg *.jpg *.pcx *.png *.psd *.tga *.tif *.tiff *.wmf
0
-1
Code: Select all
TOTALCMD#BAR#DATA
cm_SrcViewModeList Java
wciconex.dll,25
cm_SrcViewModeList Java|em_Java||cm_SrcAllFiles,cm_RereadSource 2|cd *.java
0
-1
Code: Select all
TOTALCMD#BAR#DATA
cm_SrcViewModeList Executable
wciconex.dll,25
cm_SrcViewModeList Executable|em_Executable||cm_SrcAllFiles,cm_RereadSource 2|cd *.bat *.cmd *.exe *.msi *.msp *.msu *.scr
0
-1
Code: Select all
[em_Pictures]
button=
cmd=cd *.ani *.bmp *.gif *.ico *.jpe *.jpeg *.jpg *.pcx *.png *.psd *.tga *.tif *.tiff *.wmf
menu=cd *.ani *.bmp *.gif *.ico *.jpe *.jpeg *.jpg *.pcx *.png *.psd *.tga *.tif *.tiff *.wmf
[em_Java]
button=
cmd=cd *.java
menu=cd *.java
[em_Executable]
button=
cmd=cd *.bat *.cmd *.exe *.msi *.msp *.msu *.scr
menu=cd *.bat *.cmd *.exe *.msi *.msp *.msu *.scr
wincmd.ini - Section [ViewModes]
Code: Select all
55_name=Pictures
55_icon=
55_commands=em_Pictures|cm_50percent,cm_SrcAllFiles,cm_RereadSource 2
55_options=-1|-1|0||-1|-1|-1|16384|16384
56_name=Java
56_icon=
56_commands=em_Java|cm_50percent,cm_SrcAllFiles,cm_RereadSource 2
56_options=-1|-1|0||-1|-1|-1|1908024|1908024
57_name=Executable
57_icon=
57_commands=em_Executable|cm_50percent,cm_SrcAllFiles,cm_RereadSource 2
57_options=-1|-1|0||-1|-1|-1|8388608|8388608
Code: Select all
cm_RereadSource 2
18.12.19 Release Total Commander 9.50 beta 10
13.12.19 Added: cm_rereadsource 2 re-applies automatic view mode change to current directory
(cm_rereadsource 3 also forces a refresh if nothing has changed) (32/64)
... CTRL+T is not included in this example. ...
(The filter would also be present on the new tab)
... The "Show" menu always shows the last filter used in the respective TC window. ...
(e.g. *.txt ... OR ... *.bat *.cmd *.exe *.msi *.msp *.msu *.scr)