[implemented] New % parameter for button bar and em_commands

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

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

[implemented] New % parameter for button bar and em_commands

Post by *petermad »

It is sometimes NOT wanted that TC automatically sets quotation marks around file and paths when using parameters like %P%N, %P%S and %Cn - espically when you want to test the parameters using DOS.

I would like to suggest two new parameters %y and %Y that should work a little like %x and %X, but %Y should mean that AFTER this point don't set any quotation marks, and %y should mean set quotation marks as usual after this point.
Last edited by petermad on 2023-05-25, 13:46 UTC, edited 1 time in total.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

I would request third mode: always quote, I know that it will be useful. And I would name it %Q<x>, where <x> is mode (letter or number, no matter, e.g. %Q to reset, %QA to always quote and %QN to don't quote).
User avatar
petermad
Power Member
Power Member
Posts: 14793
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

2MVV

You can to a certain degree do an Aways Quote with my suggestion - just use %Y and then put the Quotes yo want yourself - like %Y "%P%N" "%C1".

But I can see the benifit of your request for lists like %L %F %UL and %WL so that for example &QA "%L" means that all items in the list should be surrounded by quotes. Also for %S an alway quote function could be usefull.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Yes, it is mainly for multi-file selections, not for single files.
User avatar
Balderstrom
Power Member
Power Member
Posts: 2148
Joined: 2005-10-11, 10:10 UTC

Post by *Balderstrom »

I agree, Button Parameter "%Q" (Posted: 07/25/2010)


Although, I would say that I would find it more useful (
today) if TC could pass lists of files|folders|paths with an alternate delimiter -- instead of space. I would set the delimiter to \r\n. One might also choose to set it to any one of the obvious illegal characters under windows
  • *"<>|
Of which, any of the alternate delimiters would be very easy to parse with a pre-processor|handler.
Last edited by Balderstrom on 2016-08-01, 01:47 UTC, edited 4 times in total.
*BLINK* TC9 Added WM_COPYDATA and WM_USER queries for scripting.
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

:D
User avatar
petermad
Power Member
Power Member
Posts: 14793
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: New % parameter for button bar and em_commands

Post by *petermad »

Implemented as %Q in TC 10.51rc 1 :-)
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Post Reply