I noticed, that often after restart in history menu I have less items than in previous TC session.
Yes, after restart TC shouldn't show in history some paths, like some locantions in virtual folders that TC doesn't save because the path can't be represented by GUIDs.
But I see often removes just several oldest paths, even if before closing TC history menu items count has less items than allowed by HistoryLen (default=26), and TC removed oldest history recodrs with normal file system paths like c:\.
Sample case:
after closing TC it's possible to get following content in wincmd.ini:
Code: Select all
[Configuration]
DeviceChange=0
UseNewDefFont=1
SetEncoding=дц.do.not.remove
firstmnu=3195
FirstTimeIconLib=0
FirstTime=0
FirstTimeUnpack=0
QuickSearchAutoFilter=1
SeparateTree=0
PanelsVertical=0
test=58
onlyonce=0
TrayIcon=0
UseRightButton=1
Savepath=1
Savepanels=1
MarkDirectories=1
AlwaysToRoot=0
SingleClickStart=0
RenameSelOnlyName=0
AutoComplete=3
SaveCommands=1
SaveHistory=1
EverythingForSize=0
CountSpace=1
CountMarked=1
1hourdif=0
CopyComments=6
CommentPreferredFormat=4
IconClickSelection=1
noreread=:
noreread2=
WatchDirs=0
TabDir=C:\totalcmd\test\
FirstTimeZIP=0
Aligned extension=1
[left]
path=c:\
ViewMode=0
activepanelcolor=-1
activepanelcolor2=-1
ShowAllDetails=1
SpecialView=0
show=1
sortorder=0
negative Sortorder=0
[right]
path=C:\
ViewMode=0
activepanelcolor=-1
activepanelcolor2=-1
ShowAllDetails=1
SpecialView=0
show=1
sortorder=3
negative Sortorder=1
[Command line history]
0=cm_unloadplugins
1=cd %tmp%
[1024x768 (8x16)]
CmdSelX=190
CmdSelY=160
CmdSelDX=637
CmdSelDY=371
CmdSelMax=0
maximized=0
x=50
y=35
dx=924
dy=668
Divider=500
DividerQuickView=500
DividerComments=500
Tabstops=181,184,235,130,528,103
[Buttonbar]
Buttonheight=29
FlatIcons=1
SmallIcons=1
SmallIconSize=16
XPstyle=1
[ButtonbarCache]
IconDll_vertical.bar=
[ViewModes]
0_name=<default>
0_icon=
0_options=-1|-1|0||-1|-1|-1
[MkDirHistory]
0=28
1=3\4\5\6\7\8\9\10\11\12\13\14\15\16\17\18\19\20\21\22\23\24\25\26\27\
2=1
[Tabstops]
0=181
1=184
3=235
4=130
6=528
5=103
AdjustWidth=1
[lefttabs]
0_path=e:\2\3\4\5\6\7\8\9\10\11\12\13\14\
0_options=1|3|1|0|0|0|0|
activetab=1
activelocked=2
activecaption=c:
[righttabs]
[RightHistory]
[LeftHistory]
0=c:\
1=e:\2\3\4\5\6\7\8\9\10\11\12\13\14\
2=e:\2\3\4\5\6\7\8\9\10\11\12\13\ #1,14
3=e:\2\3\4\5\6\7\8\9\10\11\12\13\
4=c:\ #0,2
5=c:\2\3\4\5\6\7\8\9\10\11\12\13\
6=c:\2\3\4\5\6\7\8\9\10\11\12\ #1,13
7=c:\2\3\4\5\6\7\8\9\10\11\ #1,12
8=c:\2\3\4\5\6\7\8\9\10\ #1,11
9=c:\2\3\4\5\6\7\8\9\ #1,10
10=c:\2\3\4\5\6\7\8\ #1,9
11=c:\2\3\4\5\6\7\ #1,8
12=c:\2\3\4\5\6\ #1,7
13=c:\2\3\4\5\ #1,6
14=c:\2\3\4\ #1,5
15=c:\2\3\ #1,4
16=c:\2\ #1,3
17=e:\2\3\4\5\6\7\8\9\10\11\12\ #1,13
18=e:\2\3\4\5\6\7\8\9\10\11\ #1,12
19=e:\2\3\4\5\6\7\8\9\10\ #1,11
20=e:\2\3\4\5\6\7\8\9\ #1,10
21=e:\2\3\4\5\6\7\8\ #1,9
22=e:\2\3\4\5\6\7\ #1,8
23=e:\2\3\4\5\6\ #1,7
24=e:\2\3\4\5\ #1,6
25=e:\2\3\4\ #1,5
which means Total Commander has max 26 history items.
In [LeftHistory], you can see 26 records, 0...25.
Now start Total Commander with this wincmd.ini and count intems in left panel history menu:
you'll count 24!
Then, in this TC session in left panel enter to some 2 subfolders to get history menu items count 26.
Now restart TC again:
you'll see 24 items in history menu again, with oldest 2 paths from previous session being removed, although wincmd.ini will still have 0...25 records.
I don't know what's the logic behind such TC behavior, but I think that both on exit and on start, TC should check the history and remove from [LeftHistory]/[RightHistory] the items it really isn't going to show in menu, not just oldest items.
So visible history menu items count should match 0...25 records in [LeftHistory]/[RightHistory], and if such count is already have less records, TC on start/exit shouldn't then remove anything.