Solved [TC 10 b1a] inconsistancy in LOADSEARCH with autostart

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

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
petermad
Power Member
Power Member
Posts: 16031
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Solved [TC 10 b1a] inconsistancy in LOADSEARCH with autostart

Post by *petermad »

history.txt wrote:12.08.20 Added: Command LOADSEARCH <saved name> (e.g. on button): Put one equal sign = in front of name to start searching immediately, two == to start and feed to listbox after search (32/64)
This new feature does not work well with parameter in an em_command

I compare it with an automatic synchronization start with SYNCOPEN= in a em_command like this:

Code: Select all

[em_ext_sync_auto]
cmd=SYNCOPEN=
param=?<default>
menu=Synchronize directories - autostart with default/saved settings
button=wcmicons.dll,48
it works well - and the user can enter the name of the saved sync.


But the equivalent LOADSEARCH em_command does not work:

Code: Select all

[em_ext_search_user]
cmd=LOADSEARCH=
param=?<default>
menu=Find files - autostart with default/saved settings
button=wcmicons.dll,47
It just gives an error message.


If I change it to:

Code: Select all

[em_ext_search_user]
cmd=LOADSEARCH =
param=?<default>
menu=Find files - autostart with default/saved settings
button=wcmicons.dll,47
with a space after LOADSEARCH - it does autostart a search, but not the one stated at the input field.

Could LOADSEARCH= please be supported like SYNCOPEN= is.
Last edited by petermad on 2021-03-18, 22:18 UTC, edited 1 time in total.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Fla$her
Power Member
Power Member
Posts: 2998
Joined: 2020-01-18, 04:03 UTC

Re: [TC 10 b1a] inconsistancy in LOADSEARCH with autostart

Post by *Fla$her »

2petermad
12.08.20 Added: Command LOADSEARCH <saved name> (e.g. on button): Put one equal sign = in front of name to start searching immediately, two == to start and feed to listbox after search (32/64)
But not after LOADSEARCH.
In order to avoid unnecessary actions, it's logical to offer button codes.

Code: Select all

TOTALCMD#BAR#DATA
LOADSEARCH
?==<default>
wcmicons.dll,47
Find files - autostart with default/saved settings and feed to listbox
Overquoting is evil! 👎
User avatar
petermad
Power Member
Power Member
Posts: 16031
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC 10 b1a] inconsistancy in LOADSEARCH with autostart

Post by *petermad »

2Fla$her

Yes that will work, but it will look peculiar in the prompt and it is easier to delete the whole field and write the name of a saved search, than it is to delete everything but == or =
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Fla$her
Power Member
Power Member
Posts: 2998
Joined: 2020-01-18, 04:03 UTC

Re: [TC 10 b1a] inconsistancy in LOADSEARCH with autostart

Post by *Fla$her »

2petermad
<default> also looks so-so. But I agree. Although it is better to choose from a large list (em_AutoSearch: LOADSEARCH/==%A > AskParam + TCFS2 /ef "tem(`em_AutoSearch %var%`)").
Overquoting is evil! 👎
User avatar
petermad
Power Member
Power Member
Posts: 16031
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC 10 b1a] inconsistancy in LOADSEARCH with autostart

Post by *petermad »

history.txt wrote:15.03.21 Fixed: New command LOADSEARCH=saved_search didn't work with "=" directly appended to LOADSEARCH, or with double quotes around the search name (32/64)
Confirmed fixed in TC 10 b2 :-)
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Post Reply