History cleaner for the wincmd.ini

Here you can propose new features, make suggestions etc.

Moderators: Hacker, petermad, Stefan2, white

mrbeeye
Junior Member
Junior Member
Posts: 79
Joined: 2004-05-03, 02:56 UTC

History cleaner for the wincmd.ini

Post by *mrbeeye »

It is high time TC had its own builtin history cleaner.
Something like internet browsers have - invoked on-demand and clean whatever you wish by choosing respective checkboxes.
User avatar
jbcb
Junior Member
Junior Member
Posts: 31
Joined: 2013-08-30, 06:43 UTC

Re: History cleaner

Post by *jbcb »

I like the idea.

Similar to the browser, options could be available for what to delete and in what time period when deleting.
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6537
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: History cleaner

Post by *Horst.Epp »

There is already a button "Delete now" in the Configuration / History
Windows 11 Home x64 Version 23H2 (OS Build 22631.3737)
TC 11.03 x64 / x86
Everything 1.5.0.1383a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.78
QAP 11.6.3.3 x64
mrbeeye
Junior Member
Junior Member
Posts: 79
Joined: 2004-05-03, 02:56 UTC

Re: History cleaner

Post by *mrbeeye »

Horst.Epp wrote: 2024-02-14, 08:00 UTC There is already a button "Delete now" in the Configuration / History
it omits deleting many history entries (searches, command line,...)
User avatar
Sir_SiLvA
Power Member
Power Member
Posts: 3312
Joined: 2003-05-06, 11:46 UTC

Re: History cleaner

Post by *Sir_SiLvA »

Just put all stuff you want to delete in an extra ini with RedirectSection= and you have the ability to delete history whenever you want.

for example:

Code: Select all

[Command Line History]
RedirectSection=<path>\history.ini
[LeftHistory]
RedirectSection=<path>\history.ini
[MkDirHistory]
RedirectSection=<path>\history.ini
[NewFileHistory]
RedirectSection=<path>\history.ini
[OldConnections]
RedirectSection=<path>\history.ini
[RenameSearchFind]
RedirectSection=<path>\history.ini
[RenameSearchReplace]
RedirectSection=<path>\history.ini
[RenameTemplates]
RedirectSection=<path>\history.ini
[RightHistory]
RedirectSection=<path>\history.ini
[Searches]
RedirectSection=<path>\history.ini
[SearchIn]
RedirectSection=<path>\history.ini
[SearchName]
RedirectSection=<path>\history.ini
[SearchText]
RedirectSection=<path>\history.ini
[Selection]
RedirectSection=<path>\history.ini
[TargetList]
RedirectSection=<path>\history.ini
Hoecker sie sind raus!
User avatar
petermad
Power Member
Power Member
Posts: 14928
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: History cleaner

Post by *petermad »

Not that I am against the idea, but I can foresee a huge discussion about which history elements should be deleted with such a function.

Currently I redirect all wincmd.ini sections that I consider to be history to a wincmd_history.ini file - then I can easily just delete that file.

here is my list of what I consider history, hence redirect:

Code: Select all

[rename]
RedirectSection=wincmd_history.ini

[SyncOptions]
RedirectSection=wincmd_history.ini

[Selection]
RedirectSection=wincmd_history.ini

[SearchName]
RedirectSection=wincmd_history.ini

[SearchIn]
RedirectSection=wincmd_history.ini

[SearchText]
RedirectSection=wincmd_history.ini

[RenameTemplates]
RedirectSection=wincmd_history.ini

[RenameSearchFind]
RedirectSection=wincmd_history.ini

[RenameSearchReplace]
RedirectSection=wincmd_history.ini

[left]
RedirectSection=wincmd_history.ini

[right]
RedirectSection=wincmd_history.ini

[lefttabs]
RedirectSection=wincmd_history.ini

[righttabs]
RedirectSection=wincmd_history.ini

[Command line history]
RedirectSection=wincmd_history.ini

[RightHistory]
RedirectSection=wincmd_history.ini

[LeftHistory]
RedirectSection=wincmd_history.ini

[MkDirHistory]
RedirectSection=wincmd_history.ini

[NewFileHistory]
RedirectSection=wincmd_history.ini

[TargetList]
RedirectSection=wincmd_history.ini

[PluginDuplicates]
RedirectSection=wincmd_history.ini

[DirSelection]
RedirectSection=wincmd_history.ini

[LastTracks]
RedirectSection=wincmd_history.ini

[ButtonbarCache]
RedirectSection=wincmd_history.ini
I myself could debate whether [SyncOptions], [rename] and [ButtonbarCache] should be there.
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
jbcb
Junior Member
Junior Member
Posts: 31
Joined: 2013-08-30, 06:43 UTC

Re: History cleaner

Post by *jbcb »

Advanced history handling should be a built-in feature.
User avatar
petermad
Power Member
Power Member
Posts: 14928
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: History cleaner

Post by *petermad »

jbcb wrote: 2024-02-14, 10:57 UTC Advanced history handling should be a built-in feature.
Then let's see your suggestions as to which of TC's many histories that should be included.
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
Sir_SiLvA
Power Member
Power Member
Posts: 3312
Joined: 2003-05-06, 11:46 UTC

Re: History cleaner

Post by *Sir_SiLvA »

jbcb wrote: 2024-02-14, 10:57 UTC Advanced history handling should be a built-in feature.
It is possible allready as I pointed out, you are just not willing to use it...
Hoecker sie sind raus!
User avatar
AntonyD
Power Member
Power Member
Posts: 1256
Joined: 2006-11-04, 15:30 UTC
Location: Russian Federation

Re: History cleaner

Post by *AntonyD »

2petermad
HOW in this approach I can redirect ALL current and ALL FUTURE possible sections regarding screen resolutions?
Like [800x600 (8x16)], [1024x768 (8x16)], [1152x864 (8x16)]
and so on....
#146217 personal license
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48241
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: History cleaner

Post by *ghisler(Author) »

Use AlternateUserIni in the [Configuration] section. It redirects all sections except [Configuration], [Layout], [Packer], [Confirmation], [Extensions], [Associations], [Shortcuts], [ShortcutsWin], [PackerPlugins], [FileSystemPlugins], [ListerPlugins], [ContentPlugins].

It also doesn't redirect sections containing RedirectSection=0.
Author of Total Commander
https://www.ghisler.com
User avatar
jbcb
Junior Member
Junior Member
Posts: 31
Joined: 2013-08-30, 06:43 UTC

Re: History cleaner

Post by *jbcb »

Sir_SiLvA wrote: 2024-02-14, 11:15 UTC
jbcb wrote: 2024-02-14, 10:57 UTC Advanced history handling should be a built-in feature.
It is possible allready as I pointed out, you are just not willing to use it...
But I'm talking about the built-in functionality available from the UI. I'm not talking about manually editing settings files.
Fla$her
Power Member
Power Member
Posts: 2398
Joined: 2020-01-18, 04:03 UTC

Re: History cleaner

Post by *Fla$her »

cm_ClearHistoryConfig — support.

We know the external cleaning methods, even without redirecting sections. But if you compare TC with browsers, then I think that a separate settings page will be quite appropriate here.
Overquoting is evil! 👎
User avatar
petermad
Power Member
Power Member
Posts: 14928
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: History cleaner

Post by *petermad »

Sir_SiLvA wrote: 2024-02-14, 10:47 UTC for example:

Code: Select all

[OldConnections]
RedirectSection=<path>\history.ini
[OldConnections] is a wcx_ftp.ini section - sections in wcx_ftp.ini cannot be redirected.
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
Sir_SiLvA
Power Member
Power Member
Posts: 3312
Joined: 2003-05-06, 11:46 UTC

Re: History cleaner

Post by *Sir_SiLvA »

petermad wrote: 2024-02-14, 17:53 UTC [OldConnections] is a wcx_ftp.ini section - sections in wcx_ftp.ini cannot be redirected.
I know, I just copy & pasted the names from my TC Inis History folder and I once tried to redirect that section.
PS: Has there ever been a reason given why sections in wcx_ftp cant be redirected (yet)?
Hoecker sie sind raus!
Post Reply