Inconsistencies between keyboard.txt and totalcmd.hlp/chm

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

Moderators: white, Hacker, petermad, Stefan2

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

Inconsistencies between keyboard.txt and totalcmd.hlp/chm

Post by *petermad »

Missing in totalcmd.hlp but present in keyboard.txt:
F8 or DEL (only F8 in .hlp file)
Alt+F6

Missing in keyboard.txt but present in totalcmd.hlp:
CTRL+SHIFT+NUM +
CTRL+SHIFT+NUM -
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
ghisler(Author)
Site Admin
Site Admin
Posts: 48093
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Sorry, I don't currently have the time to check these for differences. So if you find any others, please post them here.
Author of Total Commander
https://www.ghisler.com
gmb
Junior Member
Junior Member
Posts: 60
Joined: 2009-04-15, 19:42 UTC

Post by *gmb »

CTRL+J is missing in keyboard.txt and in totalcmd.hlp
User avatar
petermad
Power Member
Power Member
Posts: 14812
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Missing in totalcmd.hlp but present in keyboard.txt:
F8 or DEL (only F8 in .hlp file)
Alt+F6
Not yet corrected in totalcmd.chm of TC 7.50rc1 :(
Missing in keyboard.txt but present in totalcmd.hlp:
CTRL+SHIFT+NUM +
CTRL+SHIFT+NUM -
Corrected in keyboard.txt of TC 7.50rc1 :D
CTRL+J is missing in keyboard.txt and in totalcmd.hlp
Not yet corrected in totalcmd.chm and keyboard.txt of TC 7.50rc1 :(
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
ghisler(Author)
Site Admin
Site Admin
Posts: 48093
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Sorry, I haven't decided whether I will remove the reference to Alt+F6 or not, since the official hotkey is Alt+F9.
Author of Total Commander
https://www.ghisler.com
User avatar
karlchen
Power Member
Power Member
Posts: 4603
Joined: 2003-02-06, 22:23 UTC
Location: Germany

Post by *karlchen »

Hi, folks.

Starting Point:

+ English keyboard.txt
+ Section "Keyboard Layout" in the totalcmd.chm file
both comming with the current T.C. 7.50 RC1

Steps Taken:

+ Extracted the section "Keyboard Layout" from totalcmd.chm to the pure ANSI file named Keyboard_chm.txt.
+ Compared Keyboard_chm.txt and Keyboard.txt and merged them into the file Keyboard.txt. (Used the little known (?) T.C. function "Compare by content ..." for this purpose)

Result:

Here is the completed keyboard.txt:

Code: Select all

Keyboard Layout of Total Commander
==================================

Key                    Action
~~~                    ~~~~~~

F1                     Help
F2                     Reread source window
F3                     List files
F4                     Edit files
F5                     Copy files
F6                     Rename or move files 
F7                     Create directory
F8 or DEL              Delete files
F9                     Activate menu above source window (left or right)
F10                    Activate left menu or leave menu
ALT+F1                 Change left drive
ALT+F2                 Change right drive
ALT+F3                 Use alternate (external or internal) viewer 
ALT+SHIFT+F3           Start Lister and load file with internal viewer (no plugins or multimedia)
ALT+F4                 Exit
ALT+F5                 Pack selected files
ALT+SHIFT+F5           Move to archive
ALT+F6                 Unpack all files from archive under cursor (not working on Windows 95!)
ALT+F7                 Find
ALT+F8                 Opens the history list of the command line
ALT+F9                 Same as ALT+F6 (because ALT+F6 is broken on Windows 95)
                       Unpack all files from archive under cursor (not working on Windows 95!)  
ALT+SHIFT+F9           Test archives for integrity
ALT+F10                Opens a dialog box with the current directory tree 
ALT+F11                Opens left current directory bar (breadcrumb bar)
ALT+F12                Opens right current directory bar (breadcrumb bar)
ALT+SHIFT+F11          Focus the button bar to use it with the keyboard
ALT+left or right      Open previous/next directory in list of already visited dirs
ALT+down               Open list of already visited dirs
SHIFT+F1               Choose custom columns view
SHIFT+F2               Compare file lists
SHIFT+F3               List only file under cursor, when multiple files selected
SHIFT+F4               Create new text file and load into editor
SHIFT+F5               Copy files (with rename) in the same directory
SHIFT+CTRL+F5          Create shortcut of files in target directory
SHIFT+F6               Rename files in the same directory
SHIFT+F10              Show context menu
SHIFT+ESC              Minimizes Total Commander to an icon 
ALT+left/right         Go to previous/next dir of already visited dirs 
ALT+down               Open history list of already visited dirs (like the history list in a WWW browser) 
NUM +                  expand selection (configurable: just files or files and folders) 
NUM -                  Shrink selection
NUM *                  Invert selection (also with shift, see link) 
NUM /                  Restore selection
SHIFT+NUM +            Like NUM +, but files and folders if NUM + selects just files (and vice versa)
SHIFT+NUM -            Always removes the selection just from files (NUM - from files and folders)
SHIFT+NUM *            Like NUM *, but files and folders if NUM * inverts selection of just files (and vice versa)
CTRL+NUM +             Select all (configurable: just files or files and folders) 
CTRL+SHIFT+NUM +       Select all (files and folders if CTRL+NUM + selects only files)
CTRL+NUM -             deselect all (always files and folders) 
CTRL+SHIFT+NUM -       Deselect all (always files, no folders)
ALT+NUM +              Select all files with the same extension
ALT+NUM -              Remove selection from files with the same extension
BACKSPACE or CTRL+PgUp Change to parent directory (corresponds to cd ..)
CTRL+PgDn              Open directory/archive (also self extracting .EXE archives)
CTRL+<                 Jump to the root directory (most European keyboards)
CTRL+\                 Jump to the root directory (US keyboard)
CTRL+left or right     Open directory/archive and display it in the target window.
                       If the cursor is not on a directory name, the current directory is
                       displayed instead.
CTRL+F1                File display 'brief' (only file names)
CTRL+SHIFT+F1          Thumbnails view (preview images)
CTRL+F2                File display 'full' (all file details)
CTRL+SHIFT+F2          Comments view (new comments are created with Ctrl+Z) 
CTRL+F3                Sort by name
CTRL+F4                Sort by extension
CTRL+F5                Sort by date/time
CTRL+F6                Sort by size
CTRL+F7                Unsorted
CTRL+F8                Display directory tree
CTRL+SHIFT+F8          Cycle through separate directory tree states: one tree, two trees, off
CTRL+F9                Print file under cursor using the associated program
CTRL+F10               Show all files
CTRL+F11               Show only programs
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
SPACE                  Select file or directory (as INSERT). If SPACE is used on an unselected
                       directory under the cursor, the contents in this directory are counted
                       and the size is shown in the 'full' view instead of the string <DIR>.
ENTER                  Change directory/run program/run associated program/execute command line
                       if not empty. If the source directory shows the contents of an archive,
                       further information on the packed file is given.
SHIFT+ENTER            1. Run command line/program under cursor with preceding command /c and
                       leave open the program's window. Only works if NOCLOSE.PIF is in your
                       Windows directory!
                       2. With ZIP files: use alternative choice of these (as chosen in Packer
                       config): (Treat archives like directories <-> call associated program,
                       i.e. winzip or quinzip).
ALT+SHIFT+ENTER        The contents of all directories in the current directory are counted.
                       The sizes of the directories are then shown in the 'full' view instead
                       of the string <DIR>.
ALT+ENTER              Show property sheet.
CTRL+A                 Select all
CTRL+B                 Directory branch: show contents of current dir and all subdirs in one list
CTRL+C                 Copy files to clipboard
CTRL+D                 Open directory hotlist ('bookmarks')
CTRL+F                 Connect to FTP server
CTRL+SHIFT+F           Disconnect from FTP server
CTRL+I                 Switch to target directory
CTRL+L                 Calculate occupied space (of the selected files)
CTRL+M                 Multi-Rename-Tool
CTRL+SHIFT+M           Change FTP transfer mode
CTRL+N                 New FTP connection (enter URL or host address)
CTRL+P                 Copy current path to command line
CTRL+Q                 Show Quick View panel instead of a file list
CTRL+R                 Reread source directory
CTRL+S                 Open Quick Filter dialog and activate filter
CTRL+SHIFT+S           Open Quick Filter dialog and reactivate last-used filter
CTRL+T                 Open new folder tab and activate it
CTRL+SHIFT+T           Open new folder tab, but do not activate it
CTRL+U                 Exchange directories
CTRL+SHIFT+U           Exchange directories and tabs
CTRL+V                 Paste from clipboard to current dir
CTRL+W                 Close currently active tab
CTRL+SHIFT+W           Close all open tabs
CTRL+X                 Cut files to clipboard
CTRL+Z                 Edit  file comment
CTRL+UP                Open dir under cursor in new tab
CTRL+SHIFT+UP          Open dir under cursor in other window (new tab)
CTRL+TAB               Jump to next tab
CTRL+SHIFT+TAB         Jump to previous tab
ALTGR+Letter(s) or     Quick search for file name (starting with specified letters) in current
CTRL+ALT+Letter(s)     directory

Command Line: Keys
==================

If Total Commander is active, nearly all keyboard input is directed to the command line.
Here the layout for some keys:

ENTER                  The command line is executed, if it contains at least one character
                       (otherwise, the program under the cursor in the source window is started).
                       If the command is cd, md or rd, it is executed internally. If it is an
                       internal DOS command, DOS will be executed with this command. Otherwise,
                       a program with the given name is executed.
SHIFT-ENTER            Like ENTER, but with preceding command /c. After the called DOS program
                       is terminated, its window is not automatically closed. This will only
                       work if the file noclose.pif is in your windows directory.
CTRL-ENTER             The file under the cursor in the source directory is appended to the
                       command line.
CTRL-SHIFT-ENTER       The file under the cursor including its path is appended to the command
                       line.
CTRL-CURSORDOWN or     A list with the latest command lines (history-list) is opened. Hold down
ALT+F8                 the CTRL key and use the up and down cursor keys to select an entry. By
                       pressing the left or right key, you can edit the command line. This
                       automatically closes the list.
TAB or Cursor Keys     Puts the cursor back to the source directory. Cursor left and cursor
                       right move the cursor through the command line, even if the cursor was
                       in the source directory before. If brief was selected, these keys move
                       the cursor through the source directory. You then have to hold down
                       SHIFT to move it inside the command line. Cursor up and cursor down
                       move the cursor bar inside the source window, even if it was inside
                       the command line.
ESC                    Clears the command line, put cursor back in file window.
CTRL+Y                 Clears the command line, cursor stays in command line.
CTRL+C                 Copy selected text to clipboard
CTRL+X                 Cut selected text to clipboard
CTRL+V                 Paste text from clipboard to command line.
CTRL+E                 Copy previous command to command line
CTRL+K                 Delete to end of line
CTRL+W                 Delete word to the left of the cursor
CTRL+T                 Delete word to the right of the cursor
Suggested Next Step:

Everything starting from F1 down to CTRL+ALT+Letter(s) could be re-imported in the section "Keyboard Layout" inside totalcmd.chm.
Some re-formatting will have to be done, I guess.

The same steps which have been performed for the English keyboard.txt and totalcmd.chm will have to be performed for the German Tasten.txt and totalcmd.chm as well.


Suggestion to keep keyboard.txt and "Keyboard Layout" synchronized in the future:

Make the help file the master source and export the section "Keyboard Layout" to keyboard.txt only. Do not edit this file independently of totalcmd.chm.

Just my irrelevant Mr Wise Guy's approach. :wink:

Kind regards,
Karl
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

Well the general problem of this help text is it keyboard-centered not command-centered. It answers the question which commands are assigned to certain keys or key combinations.
It should answer the question which keys or hotkeys are assigned to a textual grouped list of commands.
User avatar
karlchen
Power Member
Power Member
Posts: 4603
Joined: 2003-02-06, 22:23 UTC
Location: Germany

Post by *karlchen »

Hi, Lefteous.

I see your point. Yet, this thread is only about inconsistencies between TC helpfile section "Keyboard Layout" and the flat file "keyboard.txt".

Kind regards,
Karl
Postkutscher
Power Member
Power Member
Posts: 556
Joined: 2006-04-01, 00:11 UTC

Post by *Postkutscher »

Ctrl+left/right when buttonbar is active.
Postkutscher
Power Member
Power Member
Posts: 556
Joined: 2006-04-01, 00:11 UTC

Post by *Postkutscher »

2karlchen
you have
ALT+left or right Open previous/next directory in list of already visited dirs
ALT+down Open list of already visited dirs
twice in your post.


2ghisler(Author)
Ctrl+left/right when buttonbar is active. Only in history, but not in the help or keyboard.txt .
shift+del, shift+f8 not mentioned at all.
User avatar
petermad
Power Member
Power Member
Posts: 14812
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Ctrl+left/right when buttonbar is active.
I am not sure these should be included - then other keyboard combinations that only work when TC is in a certain state should be mentioned too (like cursor keys when Quick search is active, or repeatedly pressing F6 in inline renaming)
shift+del, shift+f8 not mentioned at all.
These two should definitely be included.
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
Postkutscher
Power Member
Power Member
Posts: 556
Joined: 2006-04-01, 00:11 UTC

Post by *Postkutscher »

petermad wrote:
Ctrl+left/right when buttonbar is active.
I am not sure these should be included - then other keyboard combinations that only work when TC is in a certain state should be mentioned too (like cursor keys when Quick search is active, or repeatedly pressing F6 in inline renaming)
They should, IMHO. Otherwise noone finds it in the middle of history.txt :roll:
And yes, I would like to see such things as cursor keys when Quick search is active, or repeatedly pressing F6 in inline renaming in help(or in keyboard.txt) too, because some tricks may be forgotten, if not used for some time and nobody helps then except forum.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48093
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Sorry, I don't know now what else I should add...
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 14812
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Sorry, I don't know now what else I should add...
Well, as I wrote: Add Shift+Del and Shift+F8 to both totalcmd.chm and keyboard.txt
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
karlchen
Power Member
Power Member
Posts: 4603
Joined: 2003-02-06, 22:23 UTC
Location: Germany

Post by *karlchen »

Hello, Christian.

Following my own steps explained above, I compared the English keyboard.txt and the section Keyboard Layout in the English helpfile.


Conclusion:

Some of the textlines look differently. But in the end the two lists of keyboard shortcuts hold exactly the same details.
So from my point of view, the issue has been resolved.

Total Commander 7.50a

Kind regards,
Karl
Post Reply