[TC 11.00b3] There is no description of OPENBARMENU in the help

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

Moderators: white, Hacker, petermad, Stefan2

Post Reply
Fla$her
Power Member
Power Member
Posts: 2244
Joined: 2020-01-18, 04:03 UTC

[TC 11.00b3] There is no description of OPENBARMENU in the help

Post by *Fla$her »

Dialog box: Configuration - Change button bar
There is no description to OPENBARMENU (using .\%N, %P%N etc.).
Overquoting is evil! 👎
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.00b3] There is no description of OPENBARMENU in the help

Post by *ghisler(Author) »

OK, I will add it.
Author of Total Commander
https://www.ghisler.com
Fla$her
Power Member
Power Member
Posts: 2244
Joined: 2020-01-18, 04:03 UTC

Re: [TC 11.00b3] There is no description of OPENBARMENU in the help

Post by *Fla$her »

24. OPENBARMENU saved_bar loads an existing button bar as a dropdown menu.
It is worth pointing to the syntax with the name without the path: .\name.bar, otherwise the user himself will not guess.
Overquoting is evil! 👎
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.00b3] There is no description of OPENBARMENU in the help

Post by *ghisler(Author) »

The same wording is used for OPENBAR. I'm implying a full path name. Sorry, I will move that to "will not be changed".
Author of Total Commander
https://www.ghisler.com
Fla$her
Power Member
Power Member
Posts: 2244
Joined: 2020-01-18, 04:03 UTC

Re: [TC 11.00b3] There is no description of OPENBARMENU in the help

Post by *Fla$her »

2ghisler(Author)
I disagree. This specificity with ".\" you came up with yourself:
ghisler(Author) wrote: 2023-05-03, 19:07 UTC Sorry, the syntax for using the file from the current directory is different:
OPENBARMENU .\barfile.bar
Note the dot in front of the backslash!
It was possible not to add this prefix at all, so that there was access to %N instead of .\%N in the current panel, then you wouldn't have to add a refinement.

Leave this feature undocumented for OPENBAR and OPENBARMENU? What for?
Overquoting is evil! 👎
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.00b3] There is no description of OPENBARMENU in the help

Post by *ghisler(Author) »

That prefix is just for taking the bar file from the current directory! OPENBARMENU isn't limited to that, it can take a full path or environment variables.
Author of Total Commander
https://www.ghisler.com
Fla$her
Power Member
Power Member
Posts: 2244
Joined: 2020-01-18, 04:03 UTC

Re: [TC 11.00b3] There is no description of OPENBARMENU in the help

Post by *Fla$her »

I understand. igarny's request was to open the bars as menus, which are located in the active panel directory.
But you could do it without ".\", as it usually works with any programs that support the name as an argument.

And since this prefix is the only way, it looks like an undocumented necessity that users themselves will not guess.
Therefore, it's logical either to remove such a condition, or to add to the description of commands about such a possibility.
Overquoting is evil! 👎
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.00b3] There is no description of OPENBARMENU in the help

Post by *ghisler(Author) »

OK I will add a note on how to use .bar files from the current directory:
OPENBARMENU saved_bar loads an existing button bar as a dropdown menu. To open a .bar file from the current directory, the name must be provided in the following way: .\filename.bar
Author of Total Commander
https://www.ghisler.com
Fla$her
Power Member
Power Member
Posts: 2244
Joined: 2020-01-18, 04:03 UTC

Re: [TC 11.00b3] There is no description of OPENBARMENU in the help

Post by *Fla$her »

Fixed in TC 11.00 b5.
Overquoting is evil! 👎
User avatar
white
Power Member
Power Member
Posts: 4593
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: [TC 11.00b3] There is no description of OPENBARMENU in the help

Post by *white »

Moderator message from: white » 2023-05-31, 17:33 UTC

Moved to Fixed bugs.
Post Reply