Page 1 of 1

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

Posted: 2022-04-14, 20:33 UTC
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.

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

Posted: 2022-04-15, 10:23 UTC
by ghisler(Author)
*.%S is not supported either, sorry.

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

Posted: 2022-04-15, 16:33 UTC
by petermad
ghisler(Author) wrote: 2022-04-15, 10:23 UTC *.%S is not supported either, sorry.
Could it be ?

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

Posted: 2022-04-17, 08:59 UTC
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.

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

Posted: 2022-04-17, 14:26 UTC
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

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

Posted: 2022-04-17, 18:05 UTC
by Fla$her
2petermad
It is logical to ask in your topic of suggestions. No?

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

Posted: 2024-10-09, 17:16 UTC
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)

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

Posted: 2024-10-10, 00:08 UTC
by petermad
2ghisler(Author)

Thanks for implementing beforename%S :-)