Is there a way to find the name of an internal command based on its shortcut and vice versa?

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
Jorge24
Junior Member
Junior Member
Posts: 53
Joined: 2016-11-06, 18:14 UTC
Location: USA

Is there a way to find the name of an internal command based on its shortcut and vice versa?

Post by *Jorge24 »

Recently I spent a long while trying to find out which internal command was the one used when you press TAB.
Eventually I found it by trial and error but I was wondering if there's a better way to find out the name of an internal command if you only know the default shortcut assigned to it.

Similarly, if I'm looking at an internal command, is there a way to easily find what's the default shortcut assigned to it?
User avatar
Stefan2
Power Member
Power Member
Posts: 4281
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: Is there a way to find the name of an internal command based on its shortcut and vice versa?

Post by *Stefan2 »

 

Read the text file "TOTALCMD.INC" for internal commands:
cm_FocusRight=4002;Focus on right file list
cm_FocusSrc=4005;Focus on source file list
cm_FocusTrg=4006;Focus on target file list
cm_FocusCmdLine=4003;Focus on command line

(the usercmd.ini for your own created User Defined em_ Commands)



and the "KEYBOARD.TXT" in the e-folder for the default set keyboard shortcuts:
CTRL+F3 Sort by name
CTRL+F4 Sort by extension
CTRL+F5 Sort by date/time
CTRL+F12 Show user defined files
TAB Switch between left and right file list
SHIFT+TAB Switch between current file list and separate tree (if enabled)
Letter Redirected to command line, cursor jumps to command line
INSERT Select file or directory





and the text file "wincmd.ini" for your own created keyboard shortcuts:
[Shortcuts]
;Use 'F2'-key for cm_RenameOnly to start inline-rename mode, additional to origin 'Shift+F6'
F2=cm_RenameOnly
C+P=cm_CopyNamesToClip
CS+P=cm_CopyFullNamesToClip
;Use 'Ctrl+F' for cm_SearchFor to start find-files, additional to origin 'Alt+F7'
C+F=cm_SearchFor
;Use 'Ctrl+O' to launch DOS-Box in current path
C+o=cm_ExecuteDOS

[ShortcutsWin]
F7=cm_SrcQuickView
That are those you are seeing too, if you are follow petermad 's description:
petermad wrote: 2024-06-05, 12:12 UTC ....you can also see a list of user-assigned shortcuts by going
to "Configuration" - >"Misc."and click on the button with a down arrow
in the "Redefine hotkeys (keyboard remapping)" section.
In this list you can click on any entry to open the shortcut for changing (or resetting).



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

Re: Is there a way to find the name of an internal command based on its shortcut and vice versa?

Post by *petermad »

In addition to what Stefan2 wrote, you can also see a list of user-assigned shortcuts by going to "Configuration" - >"Misc."and click on the button with a down arrow in the "Redefine hotkeys (keyboard remapping)" section. In this list you can click on any entry to open the shortcut for changing (or resetting).

Alternatively you can use the Hotkeys Editor from Ultra TC Editors https://ghisler.ch/board/viewtopic.php?t=4914. You will need to update some data files for the program, that you can find here: https://ghisler.ch/board/viewtopic.php?p=450828#p450828
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
Jorge24
Junior Member
Junior Member
Posts: 53
Joined: 2016-11-06, 18:14 UTC
Location: USA

Re: Is there a way to find the name of an internal command based on its shortcut and vice versa?

Post by *Jorge24 »

Thanks both! that hotkeys editor sounds interesting, I'm gonna check it out!

Is there a way to know which key does a code correspond to?
For example with

Code: Select all

cm_FocusTrg=4006;Focus on target file list
how do I know what key is 4006?
User avatar
tuska
Power Member
Power Member
Posts: 4046
Joined: 2007-05-21, 12:17 UTC

Re: Is there a way to find the name of an internal command based on its shortcut and vice versa?

Post by *tuska »

Jorge24 wrote: 2024-06-07, 02:50 UTC how do I know what key is 4006?
  1. BUTTON: CommandBrowser

    Code: Select all

    TOTALCMD#BAR#DATA
    cm_CommandBrowser
    
    wcmicons.dll,82
    cm_CommandBrowser || CommandBrowser|Browse internal commands || cm_ and em_ - commands|Shift+click+OK (Command -> Clipboard)|CTRL+Shift+C/Shift+double-click (Line -> Clipboard)
    
    0
    2924
    
  2. Filter: 4006
  3. Notes
    1. The CommandBrowser can also be called up via the Total Commander command line:
      cm_CommandBrowser <enter>
    2. Alternatively, you can create an Alias as follows and enter it in the TC command line and press <ENTER>:
      Menu "Configuration" > Options... > Misc. > ◉ Alias: ... e.g. cmb > command: cm_CommandBrowser > Click on 🔎... >
      Filter: cm_CommandBrowser > OK > Click on the green check mark(!) > OK.
Create a Button in the Buttonbar (copy/paste CODE)
  1. Click on "SELECT ALL" (to the right of CODE:), then press CTRL+C (copy to clipboard).
  2. Right-click on any place in the button bar, then click on "Paste".
     ⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺
  3. Option1: Point to the new button (slightly longer): 'Tooltip' is shown (-> description to the button).
                  A maximum of 259 characters is allowed for the tooltip. | = create line break, || = create | as separator character.
  4. Option2: Button bar - "Tooltip" field: A single space deactivates the display of the tooltip.
                  If the "Tooltip" field is empty, the content of the "Command" field is displayed.
  5. Option3: See FAQs and explanation: Button-code (TOTALCMD#BAR#DATA)  <-- <Ctrl+click on the link...>
Jorge24
Junior Member
Junior Member
Posts: 53
Joined: 2016-11-06, 18:14 UTC
Location: USA

Re: Is there a way to find the name of an internal command based on its shortcut and vice versa?

Post by *Jorge24 »

thanks!
User avatar
Stefan2
Power Member
Power Member
Posts: 4281
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: Is there a way to find the name of an internal command based on its shortcut and vice versa?

Post by *Stefan2 »

 
Question:
Jorge24 wrote: 2024-06-07, 02:50 UTC Is there a way to know which key (((command))) does a code correspond to?
For example with

Code: Select all

cm_FocusTrg=4006;Focus on target file list
how do I know what key (((command))) is 4006?


Answer:
Stefan2 wrote: 2024-06-05, 06:11 UTC Read the text file "TOTALCMD.INC" for internal commands:
cm_FocusRight=4002;Focus on right file list
cm_FocusSrc=4005;Focus on source file list
cm_FocusTrg=4006;Focus on target file list
cm_FocusCmdLine=4003;Focus on command line
Just open the "TOTALCMD.INC" in your text editor and use the find-function to search for '4006'.






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

Re: Is there a way to find the name of an internal command based on its shortcut and vice versa?

Post by *petermad »

Here is my revised list of Default Hotkeys (used with UltraTC)

Code: Select all

69=Ctrl + Shift + F1
70=Shift + F1
100=Ctrl + Shift + F2
101=Ctrl + F1
102=Ctrl + F2
103=Ctrl + F8
104=Ctrl + Q
107=Ctrl + Q
111=Ctrl + F11
112=Ctrl + F10
114=Ctrl + F12
121=Ctrl + F3
122=Ctrl + F4
123=Ctrl + F6
124=Ctrl + F5
125=Ctrl + F7
131=Alt + F1
132=Alt + F11
2034=Ctrl + B
2047=Ctrl + Shift + B
5517=Ctrl + Shift + A

169=Ctrl + Shift + F1
170=Shift + F1
200=Ctrl + Shift + F2
201=Ctrl + F1
202=Ctrl + F2
203=Ctrl + F8
204=Ctrl + Q
207=Ctrl + Q
211=Ctrl + F11
212=Ctrl + F10
214=Ctrl + F12
221=Ctrl + F3
222=Ctrl + F4
223=Ctrl + F6
224=Ctrl + F5
225=Ctrl + F7
231=Alt + F2
232=Alt + F12
2035=Ctrl + B
2048=Ctrl + Shift + B
5518=Ctrl + Shift + A

269=Ctrl + Shift + F1
270=Shift + F1
300=Ctrl + Shift + F2
301=Ctrl + F1
302=Ctrl + F2
303=Ctrl + F8
304=Ctrl + Q
307=Ctrl + Q
311=Ctrl + F11
312=Ctrl + F10
314=Ctrl + F12
321=Ctrl + F3
322=Ctrl + F4
323=Ctrl + F6
324=Ctrl + F5
325=Ctrl + F7
331=Alt + F1 = Alt + F2
332=Alt + F11 = Alt + F12
2026=Ctrl + B
2046=Ctrl + Shift + B
5515=Ctrl + Shift + A

500=Alt + F10
501=Alt + F7
503=Ctrl + L
504=Ctrl + F9
508=Alt + F5
509=Alt + F9 = Alt + F6
510=Alt + Enter
518=Alt + Shift + F9 = Alt + Shift + F6
521=Num +
522=Num -
523=Ctrl + A = Ctrl + Num +
524=Ctrl + Num -
525=Num *
526=Ctrl + D
527=Alt + Num +
528=Alt + Num -
529=Num /
531=Ctrl + U
533=Shift + F2
535=Ctrl + Shift + U
540=F2 = Ctrl + R
545=Alt + Shift + F7
550=Ctrl + F
551=Ctrl + N
552=Ctrl + Shift + F
556=Ctrl + Shift + M
570=Alt + Left
571=Alt + Right
572=Alt + Down
575=Alt + Shift + Down
610=F1
903=F3
904=F4
905=F5
906=F6
907=F7
908=F8 = Del = Shift + F8 = Shift + Del
911=Shift + F7
1001=Enter
1002=Shift + F6
1004=Ctrl + Shift + F5
1006=Alt + Shift + F3
2000=Shift + Esc
2001=Ctrl + \
2002=Ctrl + PgUp = Back
2003=Ctrl + PgDn
2004=Ctrl + Y
2006=Ctrl + E
2007=Ctrl + X = Shift + Ins
2008=Ctrl + C = Ctrl + Ins
2009=Ctrl + V
2014=Alt + Shift + Enter
2019=Ctrl + P
2024=Ctrl + Left
2025=Ctrl + Right
2055=Down
2056=Up
2057=End
2938=Ins
2953=Ctrl + WheelUp
2954=Ctrl + WheelDown
2956=Alt + Shift + F5
2400=Ctrl + M
2500=Shift + F10 = Shift + F9
2700=Ctrl + Z
3019=Ctrl + S = Ctrl + Shift + S
2931=Shift + F4
2941=Ctrl + Shift + Q
3001=Ctrl + T
3002=Ctrl + Shift + T
3003=Ctrl + Up
3004=Ctrl + Shift + Up
3005=Ctrl + Tab
3006=Ctrl + Shift + Tab
3007=Ctrl + W
3008=Ctrl + Shift + W
3021=Ctrl + Enter
3022=Ctrl + Shift + Enter
3023=Alt + F8
3100=Shift + F5
3203=Ctrl + Shift + F8
3304=Ctrl + Shift + Num -
3314=Shift + Num -
4003=Shift + Left = Shift + Right
4004=Alt + Shift + F11
4006=Tab = Ctrl + I
4009=Shift + Tab
4011=Alt = F10
4012=Alt + Shift + F12

24340=Alt + F4
Use that in combination with totalcmd.inc to get the command names for the shortcuts.
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
Jorge24
Junior Member
Junior Member
Posts: 53
Joined: 2016-11-06, 18:14 UTC
Location: USA

Re: Is there a way to find the name of an internal command based on its shortcut and vice versa?

Post by *Jorge24 »

thanks!
Post Reply