Limitation and improvement of templates search

English support forum

Moderators: Hacker, Stefan2, white

Post Reply
User avatar
Andrey_A
Junior Member
Junior Member
Posts: 12
Joined: 2010-06-02, 21:44 UTC
Contact:

Limitation and improvement of templates search

Post by *Andrey_A »

(translation google)
Dear author of Total Commander!
There are a few suggestions to improve the template search.

1. The most important thing. It is necessary to remove the restriction on the number of templates.
Over the years, the patterns increase, now the limit is 335 template (maybe it depends on the KB section, I can not say exactly)
The situation is such that if there are 500 configured templates, then in all the dialogues: "Search", "Selection", "Copy" ... displays the names of only the first 335 and there is no possibility to choose the latter.
But there is an interesting situation: if you enter manually the name of the last template in the dialogues, it is loaded and works, then the problem is not the restriction section, but the problem is limiting the display of names in the dialogue.
When saving a new template, it of course does not appear in the list of names, but stored in the section [Searches]
I propose to increase the number of templates to 2000

2. I propose to extend the capabilities of the command SELECTFILES so that you can immediately apply the template
SELECTFILES >Name_Search_Pattern

3. I propose to extend the capabilities of the CD command so that you can immediately apply the template
CD >Name_Search_Pattern

4. I propose to create several commands with parameters SELECTFILES like :

COPY >Name_Search_Pattern - to automatically copy the template settings

MOVE >Name_Search_Pattern - to automatically move to the settings of the template

Image: http://tc-image.3dn.ru/Image/Others/0/searches.png
------------
Attached is a file section [Searches] for testing and message in Russian WinSearch
Last edited by Andrey_A on 2016-05-18, 17:44 UTC, edited 1 time in total.
Autor TCIMG
User avatar
MVV
Power Member
Power Member
Posts: 8658
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

1. Perhaps this is because of buffer size for getting names of INI keys in section. Number of keys doesn't matter, only total length of names.
2. Google still sucks to translate 'команда' as 'command' and translates it as a 'team' (completely different meaning). :lol:
3. It is hard to imagine original sense of 'download' verb for me (I can guess that it was 'загрузить' and it would be better to use 'apply' verb here). The simpler language you use, the better machine translation you get...
User avatar
Andrey_A
Junior Member
Junior Member
Posts: 12
Joined: 2010-06-02, 21:44 UTC
Contact:

Post by *Andrey_A »

Ghisler(Author), Вы отвечаете на другие вопросы, почему нет ответа в этой теме?

Ghisler(Author), You answer the other questions, why there is no answer in this thread?
Autor TCIMG
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 43749
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

The limitation is the Windows ini file, it support a maximum of 64kByte per section (a section starts with [section title]).
Author of Total Commander
https://www.ghisler.com
User avatar
Andrey_A
Junior Member
Junior Member
Posts: 12
Joined: 2010-06-02, 21:44 UTC
Contact:

Post by *Andrey_A »

ghisler(Author)
And unless you can not get around this?
Regular expressions are easy to deal with it.
Here is an example of regular expressions Autoit

1. We read the file (Wincmd.ini ...) - get text
2. So we get the contents of the section [NAMESECTION] :

Code: Select all

(?mi)^\Q[NAMESECTION]\E[\r\n]+((?:[^[\r\n].*(?:[\r\n]+|$))*)
3. So we get the key names:

Code: Select all

(.*)_SearchFlags=
And what about the items: 2, 3 ,4 ?
Autor TCIMG
Post Reply