1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Tab completion?

Discussion in 'Support' started by vefatica, Jun 26, 2015.

  1. vefatica

    Joined:
    May 20, 2008
    Messages:
    7,972
    Likes Received:
    30
    I may just never have tried this before, but ...
    Before pressing <tab>

    Code:
    do d in /s /d"c:\prog
    (cursor at end).

    After pressing <tab>

    Code:
    c:\> "Documents and Settings"\ d in /s /d"c:\prog
    (cursor after "...ings"\)
     
  2. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,870
    Likes Received:
    83
    WAD. TCC doesn't know where you want your single double quote to match up - to the beginning of the line, or to the end of the line.

    Add another quote at the end before pressing tab, and everything will work as you expect.
     
  3. vefatica

    Joined:
    May 20, 2008
    Messages:
    7,972
    Likes Received:
    30
    OK, thanks. But if it so completes c:\programdata (as desired) if removes the quotes needed by DO's "/D". No big deal.
     
  4. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,870
    Likes Received:
    83
    It's behaved that way since LFNs first appeared. You could upgrade to the DWIM parser, or you could help out the parser and add the second ".
     
  5. vefatica

    Joined:
    May 20, 2008
    Messages:
    7,972
    Likes Received:
    30
    Yes, that works. AS often as I do it, it really doesn't matter.

    But I still enjoy the enhancement to tab completion made a few versions ago ... that the thing you want to complete doesn't require a space before it.
    Code:
    %FUNCTION[bla<tab >
    is very convenient.
    So is the added space after completing the first word in a command line.
     

Share This Page