Increase contents of history sections

Here you can propose new features, make suggestions etc.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
ts4242
Power Member
Power Member
Posts: 2081
Joined: 2004-02-02, 20:08 UTC
Contact:

Increase contents of history sections

Post by *ts4242 »

Currently all history sections are limited to 20 items only (from 0 to 19), it will be great if this can configured via global setting that apply for all history sections.
User avatar
sqa_wizard
Power Member
Power Member
Posts: 3893
Joined: 2003-02-06, 11:41 UTC
Location: Germany

Post by *sqa_wizard »

Sounds reasonable, but you may take in account that INI files have a 64K file size limit.

By using a increased limit, you are forced to use a redirection for each section, otherwise it gets unusable after a short time.

To overcome this drawback a (often discussed) design change is needed to write the "dynamic" entries to a separate file, while the "static" options remain at wincmd.ini ...
#5767 Personal license
User avatar
Clo
Moderator
Moderator
Posts: 5731
Joined: 2003-12-02, 19:01 UTC
Location: Bordeaux, France
Contact:

Not quite true

Post by *Clo »

2sqa_wizard

:) Hello !
Sounds reasonable, but you may take in account that INI files have a 64K file size limit. …
• That is true with FAT32 only. With NTFS, there is no limit about the file size, only each [Section] is limited to 64 KiB (65,536 Bytes).

• I support an enhancement of the current items number, that might not make so big files… 8)

:mrgreen: VG
Claude
Clo
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
User avatar
sqa_wizard
Power Member
Power Member
Posts: 3893
Joined: 2003-02-06, 11:41 UTC
Location: Germany

Post by *sqa_wizard »

each [Section] is limited to 64 KiB
... resulting in a maximum number of 64 at 1024 Bytes for each entry (1022 name + CR + LF)

But just half of it regarding unicode notation => 32

Hey stop. is the filename is limited to 1022 Byte or character ?
#5767 Personal license
User avatar
Hacker
Moderator
Moderator
Posts: 13142
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

Clo,
That is true with FAT32 only. With NTFS, there is no limit about the file size
That does not really sound true.

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
ts4242
Power Member
Power Member
Posts: 2081
Joined: 2004-02-02, 20:08 UTC
Contact:

Post by *ts4242 »

INI file limits are depend on operating system not file system

Win9x based system
File size: 64 KB
Section size: 32 KB

NT based system
File size: unlimited
Section size: 32 KB

Therefore the suggested setting could be applied on NT based system only
User avatar
Boofo
Power Member
Power Member
Posts: 1431
Joined: 2003-02-11, 00:29 UTC
Location: Des Moines, IA (USA)
Contact:

Post by *Boofo »

2ts4242,

Fat32 is limited to 4 GB, no matter what the OS is, I believe.
chmod a+x /bin/laden -- Allows anyone the permission to execute /bin/laden

How do I un-overwrite all my data?

User of Total Commander
#60471 Single user license
User avatar
ts4242
Power Member
Power Member
Posts: 2081
Joined: 2004-02-02, 20:08 UTC
Contact:

Post by *ts4242 »

Boofo wrote:2ts4242,

Fat32 is limited to 4 GB, no matter what the OS is, I believe.
That is true but here I'm talking about the INI file limitation not the file system limitation, in other word the Win9x API's cannot handle INI file greater than 64 KB
User avatar
Balderstrom
Power Member
Power Member
Posts: 2148
Joined: 2005-10-11, 10:10 UTC

Post by *Balderstrom »

sqa_wizard wrote:To overcome this drawback a (often discussed) design change is needed to write the "dynamic" entries to a separate file, while the "static" options remain at wincmd.ini ...
I'd rather see a .css like approach wherein you can define (i.e.) maxhistory=100 item that would be applied to any history section that tracks via numeric items (1=foo\n 2=bar\n 3=foobar\n). But each section could in turn put an alternate (i.e.) maxhistory=10

It would be nice if this setting had to be within wincmd.ini, much like the redirect line has to be within the wincmd.INI.

--> Like css as it allows a global setting that can be further customized for each child item, or child-of-child...

I have since redirected all of the following to wincmdHistory.ini
[left]
[right]
[Command line history]
[MkDirHistory]
[RenameTemplates]
[SearchText]
[Selection]
[RenameSearchReplace]
[SearchName]
[SearchIn]
[RenameSearchFind]
[lefttabs]
[righttabs]
[RightHistory]
[LeftHistory]
For ease of non-SAVY users it would be nice if redirecting ALL history-related .ini sections could be accomplished from TC's config GUI with a simple editBox
--> AlternateHistoryFile: [ wincmdHistory.ini ]

That would internally do the "work" of inserting the redirect-lines into each related wincmd.ini section. And move the contents of the sections to said file.
Post Reply