Page 1 of 1

[Implemented] Missing info in TC's Help for em_ and cm_ commands

Posted: 2020-09-05, 11:36 UTC
by petermad
Regarding the use of user-defined commands (AKA extended commands, external commands or em_commands) there is a lack of information about this in the Help.

The use of em_commands should be added at least in the following places.

dlg_configbuttonbar.htm
Dialog box: Configuration - Change button bar
Command:

2. You can also place one or more of Total Commander's internal menu commands here comma-separated. Just click on the button with the magnifying glass and choose a command from the dialog box "Choose command".
Example for multiple commands: cm_SelectAll,cm_Copy
cm_wait x adds a delay of x milliseconds, e.g. cm_SelectAll,cm_wait 1000,cm_Copy
You can open a virtual folder with one of the following commands:
cm_OpenDesktop, cm_OpenDrives, cm_OpenControls, cm_OpenFonts, cm_OpenNetwork, cm_OpenPrinters, cm_OpenRecycled
in this help page it should also be mentioned that the numbers given in totalcmd.inc for cm_commands can be used - either in decimal or hexadecimal.


dlg_mainmenu.htm
Menu file layout
Identifiers:

All identifiers start with the letters cm_ (abbr. for command). Identifiers which start with cm_src act upon the source directory. Identifiers with cm_left act on the left, with cm_right on the right directory window.

Only identifiers which are in totalcmd.inc can be used! You can also directly specify the numbers given in totalcmd.inc. However, the file totalcmd.inc must be present at runtime if you want to use an external menu.
it is not true that only identifiers which are in totalcmd.inc can be used - em_commands are also valid


dlg_configconfirmation.htm
Configuration - Misc.
Redefine hotkeys (keyboard remapping)

Command: Assign an internal command to the hotkey/alias. Click on the magnifying glass button to open the dialog box "Choose command"...
it should say "Assign an internal or external command to the hotkey/alias."

Re: Missing info in TC's Help for em_ and cm_ commands

Posted: 2021-03-15, 10:56 UTC
by petermad
The first item: Dialog box: Configuration - Change button bar (dlg_configbuttonbar.htm) is updated in TC 10 b1a - the two latter are not yet changed.

Re: Missing info in TC's Help for em_ and cm_ commands

Posted: 2021-05-29, 18:52 UTC
by petermad
Bump*

dlg_mainmenu.htm and dlg_configconfirmation.htm are still not updated with reference to em_commands (see above)

Re: Missing info in TC's Help for em_ and cm_ commands

Posted: 2021-05-30, 08:13 UTC
by ghisler(Author)
dlg_mainmenu has already been updated to show this text:
Only identifiers which are in totalcmd.inc can be used (plus user-defined em_commands)!
I will change the sentence
All identifiers start with the letters cm_ (abbr. for command).
to
All identifiers start with the letters cm_ (abbr. for command) or em_ (user-defined commands).

dlg_configconfirmation has also been updated to this text:
Redefine hotkeys (keyboard remapping)
Assign an internal or external command (cm_command or em_command) to unused or already used shortcut keys, or define an alias for the command line.

Re: Missing info in TC's Help for em_ and cm_ commands

Posted: 2021-05-30, 11:17 UTC
by petermad
2ghisler(Author)
In dlg_configconfirmation there is still this line (further down):
Command: Assign an internal command to the hotkey/alias.
should be sometning like:
Command: Assign an internal or external command to the hotkey/alias.

Re: Missing info in TC's Help for em_ and cm_ commands

Posted: 2021-05-31, 13:38 UTC
by ghisler(Author)
Ah, I see, I can change that.

Re: Missing info in TC's Help for em_ and cm_ commands

Posted: 2022-06-10, 23:33 UTC
by petermad
Confirmed changed in TC 10.00 :-)