+HistoryLen=0 still saves 1 history item

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

Moderators: Hacker, petermad, Stefan2, white

Post Reply
sweetsour
Junior Member
Junior Member
Posts: 18
Joined: 2007-10-04, 18:06 UTC

+HistoryLen=0 still saves 1 history item

Post by *sweetsour »

Hello,

Was happy to see that you could disable history now.

However, it seems like HistoryLen=0 still saves one item instead of none in wincmd.ini in [RightHistory] [LeftHistory], with the index 0.

Not sure about OldCmdLineCount and MaxItemsInComboBox.
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6975
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: HistoryLen=0 still saves 1 history item

Post by *Horst.Epp »

sweetsour wrote:Hello,

Was happy to see that you could disable history now.

However, it seems like HistoryLen=0 still saves one item instead of none in wincmd.ini in [RightHistory] [LeftHistory], with the index 0.

Not sure about OldCmdLineCount and MaxItemsInComboBox.
Whats the reason for disabling the history ?
Security is not impacted in any way by having the history.
sweetsour
Junior Member
Junior Member
Posts: 18
Joined: 2007-10-04, 18:06 UTC

Post by *sweetsour »

Privacy. In a scenario where other people can access your user too, but you don't want them to know which directories you browsed. Similar to private browsing mode in browsers. :)
User avatar
white
Power Member
Power Member
Posts: 5815
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Post by *white »

sweetsour wrote:Privacy. In a scenario where other people can access your user too, but you don't want them to know which directories you browsed. Similar to private browsing mode in browsers. :)
Total Commander does not support private operation. There are many more histories, for example search history and create folder history, etc.

So if you want private operation you will have to accomplish this yourself. The easiest way is to make your configuration files read only. You can also make parts of wincmd.ini readonly by redirecting sections to separate files and make these read only.

Directory history also shows current folder. So when HistoryLen=1 history is already disabled. The current folder is also stored in [left] and [right] sections.

Saving of history can be disabled in Options/Operation/Save on exit (SaveHistory=0).
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

HistoryLen wasn't meant to turn off the history, there is SaveHistory for this as white has pointed out. But I will still try to add it, for consistency reasons.
Author of Total Commander
https://www.ghisler.com
User avatar
white
Power Member
Power Member
Posts: 5815
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Post by *white »

Tested OK using TC8.51b3 32bit.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Thanks!
Author of Total Commander
https://www.ghisler.com
Post Reply