[TC10.00] Help about %Y wrong

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

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
white
Power Member
Power Member
Posts: 5785
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

[TC10.00] Help about %Y wrong

Post by *white »

Total Commander - Help: 'Dialog box: Configuration - Change button bar' wrote:%Y anywhere in the parameters: Pass empty list to program when using one of the List parameters like %L. Otherwise, the file under the cursor would be passed.
Something is missing..
HISTORY.TXT wrote:04.04.18 Added: New button bar parameter %Y anywhere in the parameter list: Allow empty lists when nothing is selected for parameters %S, %R, %L, %l, %F, %f, %D, %d, %WL, %WF, %UL and %UF (32/64)
User avatar
white
Power Member
Power Member
Posts: 5785
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: [TC10.00] Help about %Y wrong

Post by *white »

Partly fixed in TC10.50b1. It's still not clear that %Y also effects parameters %S and %R.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50475
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC10.00] Help about %Y wrong

Post by *ghisler(Author) »

Well, it says "one of the List parameters like %L". %S and %R are also list parameters internally, they just put that list on the command line itself instead of putting it in a file...
Author of Total Commander
https://www.ghisler.com
User avatar
white
Power Member
Power Member
Posts: 5785
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: [TC10.00] Help about %Y wrong

Post by *white »

ghisler(Author) wrote: 2022-04-12, 21:11 UTC Well, it says "one of the List parameters like %L". %S and %R are also list parameters internally, they just put that list on the command line itself instead of putting it in a file...
Exactly, so they are not list parameters like %L and the user will never know from looking in the Help.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50475
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC10.00] Help about %Y wrong

Post by *ghisler(Author) »

I don't want to list all parameters here, next time I add one I will surely forget to list it here too. Maybe something like this:

%Y anywhere in the parameters: Pass empty list to program when using one of the List parameters like %L, or multi-file parameters like %S. Otherwise, the file under the cursor would be passed.
Author of Total Commander
https://www.ghisler.com
User avatar
white
Power Member
Power Member
Posts: 5785
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: [TC10.00] Help about %Y wrong

Post by *white »

ghisler(Author) wrote: 2022-04-13, 07:04 UTC ... Maybe something like this:

%Y anywhere in the parameters: Pass empty list to program when using one of the List parameters like %L, or multi-file parameters like %S. Otherwise, the file under the cursor would be passed.
Yes but now you leave out the most important "when nothing is selected" again, which is what %Y is all about..
Furthermore, parameters like %L are list file parameters (add the word "file").
And finally, it is perhaps better to mention the %S like parameters before the %L like parameters because that is the order in which they are listed in the Help file.
May I suggest:
%Y anywhere in the parameters effects the multi-file parameters like %S and the list file parameters like %L in the following way: When nothing is selected, pass an empty list to the program instead of the file under the cursor.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50475
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC10.00] Help about %Y wrong

Post by *ghisler(Author) »

Ah, I took the wrong string for my modification - %Y is explained in both "Change start menu" and "Change button bar", and only one of them had the additional "when nothing is selected".
Author of Total Commander
https://www.ghisler.com
Max33Verstappen
Junior Member
Junior Member
Posts: 28
Joined: 2019-10-21, 18:19 UTC

Re: [TC10.00] Help about %Y wrong

Post by *Max33Verstappen »

It'd be clearer to say something like "When nothing is selected, make %S an empty string and %L an empty list file instead of making them take the file under the cursor."
User avatar
white
Power Member
Power Member
Posts: 5785
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: [TC10.00] Help about %Y wrong

Post by *white »

"when nothing is selected" and parameters like %S are now included in b2.

But parameters is spelled wrong ("paramers like %S"). And one page says "when using one of" while the other says "while using one of".
Help Dialog box: Change start menu wrote:%Y anywhere in the parameters: Pass empty list to program when nothing is selected when using one of the List parameters like %L, or multi-file paramers like %S. Otherwise, the file under the cursor would be passed.
Help Dialog box: Configuration - Change button bar wrote:%Y anywhere in the parameters: Pass empty list to program when nothing is selected while using one of the List parameters like %L, or multi-file paramers like %S. Otherwise, the file under the cursor would be passed.
User avatar
white
Power Member
Power Member
Posts: 5785
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: [TC10.00] Help about %Y wrong

Post by *white »

Tested OK using TC10.50b3.

Moderator message from: white » 2022-04-27, 21:53 UTC

Moved to Fixed bugs
Post Reply