Directory history issue: new history doesn't erase the old

Bug reports will be moved here when the described bug has been fixed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
Usher
Power Member
Power Member
Posts: 1675
Joined: 2011-03-11, 10:11 UTC

Re: Directory history issue: new history doesn't erase the old

Post by *Usher »

If you use backspace in your browser, will it delete visited page address from the browser history? No. You can move back and forward. If you move back and then go other way, the browser will remove previous forward part only from the tab history, visited pages will be still present in the global browser history.

TC doesn't provide separate history list per tab (which behaviour you seem to expect), and full history should list all visited dirs (as in global browser history).
TC uses other approach: there are options to decide which dirs are removed by history thinning - they are described in HISTORY.TXT.
Andrzej P. Wozniak
Polish subforum moderator
User avatar
petermad
Power Member
Power Member
Posts: 14787
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Directory history issue: new history doesn't erase the old

Post by *petermad »

2alphonse68
Now, this was not the behavior prior to this version.
Have you tried to disable the new setting: "Configuration" -> "Options..." -> "Operation" ->"Directory history thinning"?

Notice that if you have enabled "Directory history thinning" you can see the full history by pressing Shift+Alt+Down
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
umbra
Power Member
Power Member
Posts: 871
Joined: 2012-01-14, 20:41 UTC

Re: Directory history issue: new history doesn't erase the old

Post by *umbra »

I can confirm it. And while I prefer the new behavior, it is a change when compared to TC 9.22a.
And the "Directory history thinning" setting does not seem to have any effect on this.
Windows 7 Pro x64, Windows 10 Pro x64
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48072
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Directory history issue: new history doesn't erase the old

Post by *ghisler(Author) »

There is an option for that in wincmd.ini:
[Configuration]
HistoryAppend=0

It's 1 by default, so you don't lose any directories from the history when going back.
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 14787
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Directory history issue: new history doesn't erase the old

Post by *petermad »

2alphonse68
I can confirm the difference between v. 9.5b1 and 9.22a except for this:
4. Enter 0 again (or any other directory, for that matter)
I can only reproduce that the history buffer kicks in again from "the top" (4) if I enter another directory than 0, not if I enter 0. I can also only reproduce it when using Alt+Leftarrow not when using backspace.

So what I do is having dirs c:\0\1\2\3\4 and dir c:\a
Start with clean history in c:\
Go to c:\0 then c:\0\1 then to c:\0\1\2 then to c:\0\1\2\3 and finally to c:\0\1\2\3\4
Use Alt+leftarrow to go back to c:\ through c:\0\1\2\3, c:\0\1\2 and c:\0\1 and c:\0
Go into c:\a
Use Alt+leftarrow - and here comes the difference: In TC 9.22a that leads back to c:\ as expected, whereas in TC 9.5b1 it leads to c:\0\1\2\3\4
In TC 9.22a further press on Alt+leftarrow stays in c:\ while in TC 9.5b1 further press on Alt+leftarrow takes you back through through c:\0\1\2\3, c:\0\1\2, c:\0\1 and c:\0 and ends up in c:\ - but with the cursor on c:\a not on c:\0

As you I find the way of TC 9.22a more correct and intuitive.

If the Alt+leftarrow press while in c:\a would lead back to c:\ and a further press would lead to c:\0 og so forth it would be intuitive, and an improvemet to 8.22a, where futrher presses on Alt+leftarrow after goin back from c:\a to c:\ doesn't have any effect.
Last edited by petermad on 2019-10-22, 10:09 UTC, edited 1 time in total.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
umbra
Power Member
Power Member
Posts: 871
Joined: 2012-01-14, 20:41 UTC

Re: Directory history issue: new history doesn't erase the old

Post by *umbra »

The change is maybe related to this:
history950.txt wrote: 14.07.19 Added: Directory history: When going to previous entry via Alt+Left arrow, and then manually changing to a different directory, append that directory to the END of the history (32/64)
AKA, it no longer rewrites the history, as it used to in the previous versions.

2ghisler
Could you please confirm whether it's an intentional change?
Windows 7 Pro x64, Windows 10 Pro x64
User avatar
petermad
Power Member
Power Member
Posts: 14787
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Directory history issue: new history doesn't erase the old

Post by *petermad »

2umbra
The change is maybe related to this:
I looks like that indeed.
Last edited by petermad on 2019-11-02, 17:51 UTC, edited 1 time in total.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
petermad
Power Member
Power Member
Posts: 14787
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Directory history issue: new history doesn't erase the old

Post by *petermad »

ghisler(Author) wrote: 2019-10-21, 15:33 UTC There is an option for that in wincmd.ini:
[Configuration]
HistoryAppend=0

It's 1 by default, so you don't lose any directories from the history when going back.
It doen't change anything whether I use HistoryAppend=1 or HistoryAppend=0 - there is still this change in functinonality between TC 922a and TC 9.5x as described before:
So what I do is having dirs c:\0\1\2\3\4 and dir c:\a
Start with clean history in c:\
Go to c:\0 then c:\0\1 then to c:\0\1\2 then to c:\0\1\2\3 and finally to c:\0\1\2\3\4
Use Alt+leftarrow to go back to c:\ through c:\0\1\2\3, c:\0\1\2 and c:\0\1 and c:\0
Go into c:\a
Use Alt+leftarrow - and here comes the difference: In TC 9.22a that leads back to c:\ as expected, whereas in TC 9.5b1 it leads to c:\0\1\2\3\4
In TC 9.22a further press on Alt+leftarrow stays in c:\ while in TC 9.5b1 further press on Alt+leftarrow takes you back through through c:\0\1\2\3, c:\0\1\2, c:\0\1 and c:\0 and ends up in c:\ - but with the cursor on c:\a not on c:\0
Last edited by petermad on 2019-10-22, 10:09 UTC, edited 1 time in total.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Usher
Power Member
Power Member
Posts: 1675
Joined: 2011-03-11, 10:11 UTC

Re: Directory history issue: new history doesn't erase the old

Post by *Usher »

2alphonse68
You can redirect sections [LeftHistory] and [RightHistory] from wincmd.ini to other file and just delete that file when needed.
Andrzej P. Wozniak
Polish subforum moderator
User avatar
Usher
Power Member
Power Member
Posts: 1675
Joined: 2011-03-11, 10:11 UTC

Re: Directory history issue: new history doesn't erase the old

Post by *Usher »

2alphonse68
HISTORY.TXT wrote: 08.07.19 Added: Directory history thinning: wincmd.ini [Configuration] HistoryThinningDelta=5000 defaults to 5 seconds the user must stay in a directory to keep it in the history (32/64)
What settings for history thinning do you use now? If you switch back and forward faster than in 5 s, the directory may not be counted as last visited and won't be moved to the end of the list, I think.
Andrzej P. Wozniak
Polish subforum moderator
User avatar
Usher
Power Member
Power Member
Posts: 1675
Joined: 2011-03-11, 10:11 UTC

Re: Directory history issue: new history doesn't erase the old

Post by *Usher »

alphonse68 wrote: 2019-10-24, 03:27 UTC HistoryThinningDelta=5000 ; to make sure, I tested with 10,000, but no joy
Make it much smaller, for example 100, and test again.
Andrzej P. Wozniak
Polish subforum moderator
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48072
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Directory history issue: new history doesn't erase the old

Post by *ghisler(Author) »

Please try this new option in beta 3:
wincmd.ini
[Configuration]
HistoryCut=1

It cuts the history below the current entry and then appends the new directory, as it was in TC 9.22a.
Author of Total Commander
https://www.ghisler.com
Post Reply