Support of parameters in appended text for parameters %S and %R

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:

Support of parameters in appended text for parameters %S and %R

Post by *petermad »

The history txt says:
history wrote:29.04.21 Added: Parameters %S, %R, %P%S and %T%R now support appended text for each file. The parameter must be in double quotes, e.g. "%P%S.bak" would append .bak to each name (32/64)

09.08.23 Added: Button bar, start menu, parameters field: Better handling of parameters %S, %R, %P%S and %T%R in double quotes with appended text: "%Sbeforeext%Eafterext" inserts string beforeext before extension, and string afterext after. Supports env vars in the form %|variablename| (32/64)
It would be convenient if other TC parameters could be used for the appended text - so that a construction like for example this this: "%P%S%N" would append the output of %N instead if just appending the string %N
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: Support of parameters in appended text for parameters %S and %R

Post by *Fla$her »

I'm wondering, why not treat this as a bug?
Overquoting is evil! 👎
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50386
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Support of parameters in appended text for parameters %S and %R

Post by *ghisler(Author) »

This is unfortunately unfeasible to add. I would either add the entire code again inside of itself to handle variables within variables, or somehow call it recursively, which would lead to lots of problems with double quotes etc.
Author of Total Commander
https://www.ghisler.com
Post Reply