How to? return to completion mask after auto-completion

Feb 23, 2012
240
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)
 
May 29, 2008
47
0
Orion Arm, MWG
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.
 
Nov 13, 2008
255
3
www.thedave.me
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.
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.
 
May 29, 2008
571
4
Groton, CT
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}
 
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')
 
Nov 2, 2009
294
6
Chile
www.farah.cl
Jan 19, 2011
604
14
Norman, OK
You can move your votes from something else.

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.
 
Nov 2, 2009
294
6
Chile
www.farah.cl
You can move your votes from something else.

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.
 
Similar threads
Thread starter Title Forum Replies Date
vefatica Is EOF an implied RETURN? Support 3
Joe Caverly Why does TCCRT return VIEW as an internal command? Support 6
D Can the argument to RETURN be a function expansion? Support 3
A Inconsistent return code for TCC scripts Support 4
J How to? Speedup of gosub/return Support 8
vefatica Can a subroutine return a 64-bit integer? Support 4
S Return of FTP copy bug in 16.02.48 Support 12
M How to? Get the return code from an external program... Support 8
A WAD function return values with parentheses prevent evaluation of additional functions Support 31
Stefano Piccardi How to? return values from @python Support 2
ehab aboudaya How to? 2 GUI questions and return HWND using TakeCommandIPC Support 3
M echo %@index[1234,.,-1] return -21 in new version Support 3
Jay Sage Function to Return Selected Text Support 2
rconn Do NOT request return receipt! Support 7
rconn No return receipt!! Support 10
M Is bash-like filename completion possible? Support 3
P How to enable \ with tab completion Support 4
vefatica LIBRARY and file name completion? Support 4
vefatica Completion of stream names on network share? Support 2
gworley Virtual network drive filename completion doesn’t get directories Support 0
H file name completion on tcc21.01.61 Support 4
Charles Dye File completion change Support 11
D Tab completion differences with cmd.exe Support 3
R How to? Name completion only of directories? Support 3
D Exclude extension from filename completion Support 1
vefatica Tab completion? Support 4
I tab completion with directory commands Support 7
rps Command Input Window tab completion broken Support 7
yjchung Filename completion broken?? Support 1
JohnQSmith Filename completion Support 8
S 16.00.41 - filename completion locks up TCC Support 14
N Command completion and PATH Support 0
R WAD issue with filename completion with system and hidden files Support 8
R How to? How to prevent filename completion for some file types? Support 3
M Filename completion with forward slashes Support 10
James Miller How to? filename completion question Support 1
T Tab completion annoyances Support 37
J Fixed Filename completion does not quote filenames containing ^ Support 1
W File completion without space/executable extensions Support 3
R One character alias prevents completion? Support 8
S Weird tab completion in command line Support 2
nickles Tab completion Support 9
Jay Sage Filename Completion in Take Command vs. TCC Support 1
J Command line completion in the "Command Input" Window Support 3
L File completion window saws long paths Support 3
J Filename Completion Window Support 1
S TCC 9.02 vs 4NT 8.02 TAB completion on FTP Support 7
nickles Stream completion Support 2
vefatica Filename completion anomaly Support 2

Similar threads