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

How to? return to completion mask after auto-completion

Discussion in 'Support' started by Avi Shmidman, Mar 16, 2012.

  1. Avi Shmidman

    Joined:
    Feb 23, 2012
    Messages:
    238
    Likes Received:
    3
    I love using TCC's auto-completion together with specific masks. For instance, in order to locate a file within a directory of several hundred files I'll type:
    copy *avi*.doc
    Then I'll hit TAB to quickly cycle through all those doc files that contain "avi" in the filename.
    However, sometimes, after cycling through a few files, I'll realize that I erred slightly in specifying the mask. Is there any key that can return me to my original mask (*avi*.doc) so that I can edit it and try again?
    (Hitting ESC clears the entire line - but perhaps there is some key like shift-ESC that can cancel just the auto-completion and bring back the mask)
     
    Steve Pitts and JohnQSmith like this.
  2. Charles Dye

    Charles Dye Super Moderator
    Staff Member

    Joined:
    May 20, 2008
    Messages:
    3,307
    Likes Received:
    39
    I don't believe that there is any way to do that.
     
  3. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,859
    Likes Received:
    83
    No, there isn't a key for that. (Not a bad idea, but nobody had ever suggested it before.)
     
  4. samintz

    samintz Scott Mintz

    Joined:
    May 20, 2008
    Messages:
    1,190
    Likes Received:
    11
    Wow. An Attaboy from Rex. Those are very rare.
     
  5. WavSlave

    Joined:
    May 29, 2008
    Messages:
    47
    Likes Received:
    0
    Indeed, Scott. ;)

    Nevertheless, maybe I'm being shortsighted but I fail to see how this could be significantly more efficient and/or useful than the current method of <Esc to clear the current line> <up arrow to recall the previous command> prior to editing. Any new keystroke that Rex might add to accomplish this would still probably require a minimum of two key presses (e.g., Shift-Esc) so where's the gain? Well, I suppose there's the argument that it could be done with one hand rather than two so maybe it could be slightly more efficient.
     
  6. thedave

    Joined:
    Nov 13, 2008
    Messages:
    253
    Likes Received:
    2
    Esc loses the entire command, and <up> will return the last command which may or may not have anything at all to do with the current command. Neither will get you close to returning to command you typed with the original mask.
     
  7. WavSlave

    Joined:
    May 29, 2008
    Messages:
    47
    Likes Received:
    0
    Heh, I was thinking of commands that were already in the history. This is why you don't post to fora with only two hours of sleep under your belt.
     
  8. dcantor

    Joined:
    May 29, 2008
    Messages:
    507
    Likes Received:
    3
    You can use Ctrl_K before you hit TAB the first time to write the command with the original mask to the command history, and then use UP to recall it.
    Code:
    REN  Partial*{ctrl_K}
    {UP}
    
     
  9. Steve Pitts

    Joined:
    Jul 7, 2008
    Messages:
    159
    Likes Received:
    0
    Kudos to Avi. That is a situation that I find myself in regularly, and one that - especially when dealing with paths that contain spaces, and thus have to be quoted - takes a bit of fiddling to undo manually, but I've never thought to ask for a 'revert' key. Dave's Ctrl-K suggestion is a neat one but requires anticipating the problem, in which case I'd probably choose the correct mask in the first place.

    @Rex, I know this sounds silly, but apropos of previous discussions about killer features that trigger an upgrade, this one on its own would save me enough time and aggravation to make it worth paying fifty bucks to upgrade (and to go through the hassle of persuading my employer to upgrade my work copy despite TC not being on their list of 'standard software')
     
  10. Avi Shmidman

    Joined:
    Feb 23, 2012
    Messages:
    238
    Likes Received:
    3
  11. mfarah

    Joined:
    Nov 2, 2009
    Messages:
    226
    Likes Received:
    5
  12. David Marcus

    Joined:
    Jun 4, 2008
    Messages:
    648
    Likes Received:
    1
    You can move your votes from something else.
     
  13. JohnQSmith

    Joined:
    Jan 19, 2011
    Messages:
    559
    Likes Received:
    7
    But, I wanna vote for those too! And I wanna have a cookie! And I wanna... Sorry, went to the store yesterday and apparently some of the screaming children affected me more than I originally thought.
     
  14. mfarah

    Joined:
    Nov 2, 2009
    Messages:
    226
    Likes Received:
    5
    I know, but I didn't want to take votes away from other proposals I also like. :-( In Spanish, this is called "Desvestir a un santo para vestir a otro." (I believe the equivalent English phrase is "Robbing Peter to pay Paul.").

    I'll have to have a look at all my votes tonight to see who gets the shaft.
     
  15. mfarah

    Joined:
    Nov 2, 2009
    Messages:
    226
    Likes Received:
    5
    Come to think of it, *who* came up with F12 name completion? I owe him a rather belated "Thank you!".
     

Share This Page