[implemented] [TC 10,50b1] "*.%S:~-0,-255" does not work as expected

Here you can propose new features, make suggestions etc.

Moderators: Hacker, petermad, Stefan2, white

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

[implemented] [TC 10,50b1] "*.%S:~-0,-255" does not work as expected

Post by *petermad »

After the fix of this bug: viewtopic.php?t=75396 this button works fine:

Code: Select all

TOTALCMD#BAR#DATA
SELECTFILESS
"%S:~-0,255.*"
wcmicons.dll,39
Select all items with same base names as selected items - hold Shift down to also select folders


-1
It would be nice if this could also work:

Code: Select all

TOTALCMD#BAR#DATA
SELECTFILESS
"*.%S:~-0,-255"
wcmicons.dll,39
Select all items with same extensions as selected items - hold Shift down to also select folders


-1
It works when I select one file, but not with more than that - the *. prefix is only appended to the first selected filetype - not like with the first button where the postfix .* is appended to all selected filenames.
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
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50386
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 10,50b1] "*.%S:~-0,-255" does not work as expected

Post by *ghisler(Author) »

*.%S is not supported either, sorry.
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 15997
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC 10,50b1] "*.%S:~-0,-255" does not work as expected

Post by *petermad »

ghisler(Author) wrote: 2022-04-15, 10:23 UTC *.%S is not supported either, sorry.
Could it be ?
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
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50386
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 10,50b1] "*.%S:~-0,-255" does not work as expected

Post by *ghisler(Author) »

It would be very difficult, because it would not be clear which parts before %S would have to be combined with each name, and which would have to be added only once. Currently only 4 placeholders in front of %S are recognized: %P, %p, %T, %t.
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 15997
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC 10,50b1] "*.%S:~-0,-255" does not work as expected

Post by *petermad »

Couild it maybe be made to work with "prefix%S" that is - if no %P, %p, %T, %t is used and there is "" around it
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: 2981
Joined: 2020-01-18, 04:03 UTC

Re: [TC 10,50b1] "*.%S:~-0,-255" does not work as expected

Post by *Fla$her »

2petermad
It is logical to ask in your topic of suggestions. No?
Overquoting is evil! 👎
Fla$her
Power Member
Power Member
Posts: 2981
Joined: 2020-01-18, 04:03 UTC

Re: [TC 10,50b1] "*.%S:~-0,-255" does not work as expected

Post by *Fla$her »

2petermad
Implemented in TC 11.50 b1:
29.04.24 Added: Button bar, start menu, parameters field: Better handling of parameters %S, %R, %P%S and %T%R in double quotes with prefix text: "beforename%Sbeforeext%Eafterext" inserts string 'beforename' before the name, 'beforeext' before the last dot and extension, and 'afterext' after. (32/64)
Overquoting is evil! 👎
User avatar
petermad
Power Member
Power Member
Posts: 15997
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC 10,50b1] "*.%S:~-0,-255" does not work as expected

Post by *petermad »

2ghisler(Author)

Thanks for implementing beforename%S :-)
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