[implemented in Tc11b8] Please extend the Directory Hotlist (Ctrl+D) to 1500 entries in Tc11b6.

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

JOUBE
Power Member
Power Member
Posts: 1474
Joined: 2004-07-08, 08:58 UTC

[implemented in Tc11b8] Please extend the Directory Hotlist (Ctrl+D) to 1500 entries in Tc11b6.

Post by *JOUBE »

Can you please add more entries to the Directory Hotlist (Ctrl+D). Currently 1000 entries are possible. Can you please add 500 entries already in Tc11B6. Would that be possible, please? Background: Because there aren't that many entries possible in the starter menu anyway, you can very well go to the directory hotlist (of which here only a few are real directory entries and almost all entries as they are in the starter menu). If you use sub menus down to some depth there, you quickly reach the 1000 limit.

Please extend the Directory Hotlist (Ctrl+D) to 1500 entries in Tc11b6. Thanks.

Joube
Last edited by JOUBE on 2023-06-21, 18:35 UTC, edited 1 time in total.
monarch-lfv
Junior Member
Junior Member
Posts: 73
Joined: 2022-06-16, 23:37 UTC

Re: Please extend the Directory Hotlist (Ctrl+D) to 1500 entries in Tc11b6.

Post by *monarch-lfv »

2JOUBE
WOW
It may be to use LNK files in a specific folder?
JOUBE
Power Member
Power Member
Posts: 1474
Joined: 2004-07-08, 08:58 UTC

Re: Please extend the Directory Hotlist (Ctrl+D) to 1500 entries in Tc11b6.

Post by *JOUBE »

monarch-lfv wrote: 2023-06-02, 06:52 UTC It may be to use LNK files in a specific folder?
No. behind it are normal internal commands (cm_), user-defined commands (em_), batches, scripts, etc, just like in the starter menu. it is a replacement/supplement for the starter menu, because not many entries are possible there. Just simply the administration for many many systems.

Startermenue-Begrenzung auf 100 Einträge ;-(
ghisler(Author) wrote: 2010-10-07, 16:27 UTC OK, mal sehen ob das machbar ist. Für einfache Programmstarts ohne komplexe Parameter kann sonst auch die Verzeichnisliste (Strg+D) verwendet werden, die wurde schon auf ~1000 Einträge erweitert.
Joube
JOUBE
Power Member
Power Member
Posts: 1474
Joined: 2004-07-08, 08:58 UTC

Re: Please extend the Directory Hotlist (Ctrl+D) to 1500 entries in Tc11b6.

Post by *JOUBE »

JOUBE wrote: 2023-06-02, 06:34 UTCPlease extend the Directory Hotlist (Ctrl+D) to 1500 entries in Tc11b6.
Unfortunately still not implemented in Tc11b7. Please add it.

It should be easy: just increase the number from 998 to 1498.

Or are there problems elsewhere than? It can't really be due to the number of digits: one-digit and two-digit numbers are also supported in the [DirMenu] section, which I have of course redirected to an external file.

Thank you

Joube
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48077
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Please extend the Directory Hotlist (Ctrl+D) to 1500 entries in Tc11b6.

Post by *ghisler(Author) »

Yes, the problem is that each section in an ini file can only hold up to 64k characters (64kBytes ANSI, 128kBytes Unicode). This leaves only 64 characters per entry when there are 998 entries, including all the headers, line breaks etc.
Author of Total Commander
https://www.ghisler.com
User avatar
nsp
Power Member
Power Member
Posts: 1804
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Re: Please extend the Directory Hotlist (Ctrl+D) to 1500 entries in Tc11b6.

Post by *nsp »

ghisler(Author) wrote: 2023-06-16, 14:35 UTC Yes, the problem is that each section in an ini file can only hold up to 64k characters (64kBytes ANSI, 128kBytes Unicode). This leaves only 64 characters per entry when there are 998 entries, including all the headers, line breaks etc.
If you redirect to leftHistory.ini and rightHistory.ini and add L/RHistory_ext section this limitation should not be an issue . You could check/force separate ini files with extended list for history in order to increase this number of saved path. AS search is possible from the history this make the request/suggestion more accurate than ever.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48077
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Please extend the Directory Hotlist (Ctrl+D) to 1500 entries in Tc11b6.

Post by *ghisler(Author) »

The limit is per section, e.g. [LeftHistory] is limit to 64k and [RightHistory] is limited to 64k too, so redirecting each section makes no difference.
Author of Total Commander
https://www.ghisler.com
JOUBE
Power Member
Power Member
Posts: 1474
Joined: 2004-07-08, 08:58 UTC

Re: Please extend the Directory Hotlist (Ctrl+D) to 1500 entries in Tc11b6.

Post by *JOUBE »

ghisler(Author) wrote: 2023-06-16, 14:35 UTC Yes, the problem is that each section in an ini file can only hold up to 64k characters (64kBytes ANSI, 128kBytes Unicode). This leaves only 64 characters per entry when there are 998 entries, including all the headers, line breaks etc.
Ah, damn, I just saw the answer now and hope it's not too late:

My redirected file with the [DirMenu] section (with 998 points) has a file size of exactly 55,212 bytes. So there is still a lot of space up to 64k.

And in the case reaching 64k limit it's my job to shorten the matter (texts, etc. *) ) so that it fits in 64k with 1500 points.

Please expand points to 1500 (minimum: 1200 points) in TC11. Thanks.

Joube

*) for example converting very long pathnames of scripts/batches into short user defined commands (em_...) and so on... **)

**) until reaching the limit of usercmd.ini (...a joke ;-) )
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48077
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Please extend the Directory Hotlist (Ctrl+D) to 1500 entries in Tc11b6.

Post by *ghisler(Author) »

998 entries usually fit in the 64k section. But as you can see, it's not far from that limit, so it would still be impossible to have more than about 1200 entries.
Author of Total Commander
https://www.ghisler.com
JOUBE
Power Member
Power Member
Posts: 1474
Joined: 2004-07-08, 08:58 UTC

Re: Please extend the Directory Hotlist (Ctrl+D) to 1500 entries in Tc11b6.

Post by *JOUBE »

ghisler(Author) wrote: 2023-06-20, 10:06 UTC 1200 entries.
Yes, that is okay. Very obliging. Thanks.

Joube
JOUBE
Power Member
Power Member
Posts: 1474
Joined: 2004-07-08, 08:58 UTC

Re: Please extend the Directory Hotlist (Ctrl+D) to 1500 entries in Tc11b6.

Post by *JOUBE »

Tc11b8: history.txt

Code: Select all

21.06.23 Added: Directory hotlist: Increased maximum to 2000 entries, max 128k per section, show error if there isn't enough space to save list (32/64)
Thanks for that, and: it works (only tested up to 1006 ;-))

Thead marked as [implemented in Tc11b8].

Joube
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48077
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [implemented in Tc11b8] Please extend the Directory Hotlist (Ctrl+D) to 1500 entries in Tc11b6.

Post by *ghisler(Author) »

It's really odd, the description of the function WritePrivateProfileSection says that the lpString parameter is limited to 64k characters:
[in] lpString
The new key names and associated values that are to be written to the named section. This string is limited to 65,535 bytes.
However, I have now tried with 128k and it works just fine! In fact it seems to work with even larger buffers, but 128k seem to be enough for most use cases. For now, you will get an error if the section is larger.
Author of Total Commander
https://www.ghisler.com
JOUBE
Power Member
Power Member
Posts: 1474
Joined: 2004-07-08, 08:58 UTC

Re: [implemented in Tc11b8] Please extend the Directory Hotlist (Ctrl+D) to 1500 entries in Tc11b6.

Post by *JOUBE »

ghisler(Author) wrote: 2023-06-22, 09:31 UTC...function WritePrivateProfileSection says that the lpString parameter is limited to 64k characters
...
However, I have now tried with 128k and it works just fine!
Oh, oh, there's probably no guarantee that Microsoft (with some monthly update maybe) won't suddenly play by its own rules again at this point. Therefore I will try to stay below the 64k limit.

Thanks again.

Joube
Last edited by JOUBE on 2023-06-22, 11:20 UTC, edited 1 time in total.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48077
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [implemented in Tc11b8] Please extend the Directory Hotlist (Ctrl+D) to 1500 entries in Tc11b6.

Post by *ghisler(Author) »

I tried from Windows XP up to Windows 11 and it always worked.
Author of Total Commander
https://www.ghisler.com
User avatar
Dalai
Power Member
Power Member
Posts: 9387
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: [implemented in Tc11b8] Please extend the Directory Hotlist (Ctrl+D) to 1500 entries in Tc11b6.

Post by *Dalai »

I wouldn't bet that it works on Win9x. The 64k value must have come from somewhere.

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Post Reply