Tk Source Code

View Ticket
Login
Ticket UUID: d62ee2a05e52939d3eab4fd27ecfad69e91cd447
Title: tk console manual errors and undocumented bindings
Type: Support Version: 8.6 and 9.x
Submitter: anonymous Created on: 2026-07-31 18:31:32
Subsystem: 54. [console] Assigned To: nobody
Priority: 5 Medium Severity: Minor
Status: Closed Last Modified: 2026-08-08 11:43:16
Resolution: Fixed Closed By: nemethi
    Closed on: 2026-08-08 11:43:16
Description:
   Binding 1 needs a new wording, entering tab does not insert a tab:



    1.  Pressing tab or escape attempts to complete the text immediately before
        the cursor. The console tries, in order, a file name in the current
        directory, then a command name, then a variable name, stopping at the
        first type that produces any match at all.

        Only that type is then used - if more than one match is found within
        it, the longest common match is filled in; the full list is not shown
        until completion is attempted again with nothing left to extend.
    
        Specific completion bindings for files, commands, and variables are
        listed below 

    12. Pressing Control+Shift+F completes only against file names in the
        current directory, regardless of what tab/escape would otherwise try
        first.
    
    13. Pressing Control+Shift+P completes only against command names (referred
        to internally as "proc" completion, though it matches any command, not
        only user-defined procs).
    
    14. Pressing Control+Shift+V completes only against variable names. If the
        text being completed looks like an array reference (name(partial)), it
        completes against that array's element names instead of variable names
        generally.
User Comments: nemethi (claiming to be Csaba Nemethi) added on 2026-08-08 11:43:16:

Fixed by commits [32f1e34f], [7a9c07d4], and [6ee0dcf6] for main, core-9-0-branch, and core-8-6-branch.