How to? How to prevent filename completion for some file types?

May 20, 2009
293
5
57
ITALY
I would like to know if there is a way to prevent filename completion, for example to prevent type command on executable files. Something like "set filecompletion=cd:dirs; type:!exe". So that if I use the
command "type saver" and then I press the tab key, it finds "saver.log" but not "saver.exe".

Thank You and regards

Rodolfo Giovanninetti
 

rconn

Administrator
Staff member
May 14, 2008
12,312
147
I would like to know if there is a way to prevent filename completion, for example to prevent type command on executable files. Something like "set filecompletion=cd:dirs; type:!exe". So that if I use the command "type saver" and then I press the tab key, it finds "saver.log" but not "saver.exe".

Yes, by using "!exe".

However, you can't just tell it what not to match, you have to provide something *to* match. For example:

Code:
set filecompletion=type:!exe *

Which will match everything except exe's.
 
May 20, 2009
293
5
57
ITALY
Also, You might want to add this description, with a complete example, to the help, at least I could not find anything.


Thank You again and regards

Rodolfo Giovanninetti
 
Similar threads
Thread starter Title Forum Replies Date
noahcoad How to? Prevent web url from opening after silent install Support 0
A WAD function return values with parentheses prevent evaluation of additional functions Support 31
M Is bash-like filename completion possible? Support 3
K Fixed Prompt display will be shifted after use dir to display a filename with Chinese. (v25.00.28 x64) Support 18
vefatica PDIR with fixed-width unqualified filename? Support 2
D When copying/moving, appending " (2)" to filename when the target file already exist. Support 7
gworley Virtual network drive filename completion doesn’t get directories Support 0
Joe Caverly CMD.EXE and filename(1).ext Support 3
C How to? @replace[a comma,_,filename] Support 5
D Exclude extension from filename completion Support 1
rfaquino How to? Display filename being copied on a single line Support 2
yjchung Filename completion broken?? Support 1
JohnQSmith Filename completion Support 8
S 16.00.41 - filename completion locks up TCC Support 14
R WAD issue with filename completion with system and hidden files Support 8
M Filename completion with forward slashes Support 10
C How to? tell is @full[filename] contains any special JPSosft special chars Support 1
James Miller How to? filename completion question Support 1
J Fixed Filename completion does not quote filenames containing ^ Support 1
A How to? Filter a list by numeric number within filename Support 28
newbie Change percent-sign to anything-else in filename Support 24
Jay Sage Filename Completion in Take Command vs. TCC Support 1
J Filename Completion Window Support 1
vefatica Filename completion anomaly Support 2
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
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
vefatica Tab completion? Support 4
I tab completion with directory commands Support 7
rps Command Input Window tab completion broken Support 7
N Command completion and PATH Support 0
T Tab completion annoyances Support 37
A How to? return to completion mask after auto-completion Support 14
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
J Command line completion in the "Command Input" Window Support 3
L File completion window saws long paths Support 3
S TCC 9.02 vs 4NT 8.02 TAB completion on FTP Support 7
nickles Stream completion Support 2

Similar threads