WAD issue with filename completion with system and hidden files

May 20, 2009
293
5
57
ITALY
I use TCC 15.01.56 32 bit.
I have set the filename completion with this line: "TYPE:!EXE *;LIST:!EXE *;".
In this way I do not risk to type an executable file.
But I have found that this setting changes the behavior of filename completion.
For example, I create three files and change their attributes.

[C:\work\8888]> 1a.txt
[C:\work\8888]> 1h.txt
[C:\work\8888]> 1s.txt
[C:\work\8888]attrib 1h.txt -a +h
___A___________ -> _H_____________ C:\work\8888\1h.txt
[C:\work\8888]attrib 1s.txt -a +s
___A___________ -> __S____________ C:\work\8888\1s.txt
[C:\work\8888]attrib
___A___________ C:\work\8888\1a.txt
_H_____________ C:\work\8888\1h.txt
__S____________ C:\work\8888\1s.txt

Now, if I type "type 1" and then press the tab key two times it shows 1a.txt and then beeps.
The same for "list 1".
Instead, if I type "copy 1" when I press tab three times, it shows all filenames.
So, it seems that the syntax "command !EXE *;" changes the behavior of filename completion for that command and prevents it to find hidden and/or system files.


Regards

Rodolfo Giovanninetti
 
May 20, 2008
11,437
99
Syracuse, NY, USA
It does work somewhat awkwardly; I don't know if there's a bug. This seems to work:
Code:
type:!exe hidden system *
 
May 20, 2009
293
5
57
ITALY
It does work somewhat awkwardly; I don't know if there's a bug. This seems to work:
Code:
type:!exe hidden system *

Thank You, it works!
I consider it a bug since there is already an option that says "Complete hidden files".


Regards

Rodolfo Giovanninetti
 
May 20, 2008
11,437
99
Syracuse, NY, USA
Thank You, it works!
I consider it a bug since there is already an option that says "Complete hidden files".
It appears that entering anything in the "Options" box defeats those check-boxes. I don't know if it's a bug but it certainly is inconvenient (for example, not to be able to customize completion after saying, once and for all time, to complete hidden and system filenames).
 
May 29, 2008
47
0
Orion Arm, MWG
Just as an aside, my assumption from the original post is that the exclamation mark means to exclude the specified extension(s). This is definitely news to me if true. I thought I had scoured the help pretty thoroughly on this topic but could find no mention of that at all. If this is documented in the help (meaning the .chm file), where is it?

-- Dan McMullin
 
May 29, 2008
47
0
Orion Arm, MWG
I'm certainly familiar with the /[!...] exclusion syntax for internal commands. I've read those help pages many times, not just in the past but also immediately prior to and after my previous post. However, I've yet to see any documentation on using the exclamation mark in the FILECOMPLETION directive and/or variable. I'm not saying it's not in there somewhere -- I know not be certain of anything anymore -- only that I haven't seemed to notice it up to now. I'm plenty capable of being oblivious, seemingly more and more so all the time. If it is indeed somewhere in the .chm file, I'd really like to know exactly where. If it's not in there, it really should be added to the FILECOMPLETION-related pages since it's a potentially useful feature.

And if it's undocumented functionality, kudos to the OP for somehow learning of its existence. As complex and feature-rich as TCC is, I depend on the help to shine a light into its darker corners. I'm not sure I ever would have learned about this were it not for this thread.
 

rconn

Administrator
Staff member
May 14, 2008
12,369
150
I use TCC 15.01.56 32 bit.
I have set the filename completion with this line: "TYPE:!EXE *;LIST:!EXE *;".
In this way I do not risk to type an executable file.
But I have found that this setting changes the behavior of filename completion.

WAD -- TCC is assuming that if you have customized filename completion for the specified command, then you've entered the complete set. It doesn't combine the custom completion with the default completion.
 
May 20, 2009
293
5
57
ITALY
WAD -- TCC is assuming that if you have customized filename completion for the specified command, then you've entered the complete set. It doesn't combine the custom completion with the default completion.
Understood. Are there other options I should be aware of? I just want to prevent me from typing some files.
I do believe You should add these examples and descriptions to the help.

Thank You and regards

Rodolfo Giovanninetti
 
Similar threads
Thread starter Title Forum Replies Date
cgunhouse TCToolBar /W Issue Support 2
G v28 Display Issue Support 7
Jay Sage Issue with CD_ENTER Alias Support 37
Jay Sage Issue with CD_LEAVE Alias Support 3
fpefpe How to? issue with % and evaluation Support 5
cgunhouse Standard User Account Issue Support 2
samintz WAD Display wrapping issue Support 5
M TCC color issue in ConEmu Support 4
samintz Timer issue Support 4
Alpengreis Documentation Minor issue in help file for view /E Support 1
samintz WAD ANSI issue Support 3
D TCSTART issue after reinstallation Support 14
A Documentation [Help file] OPTION "//" synopsis formatting issue Support 0
Chen Touboul Overtyping issue - i press the Insert key, help till press enter for new line in TCC Support 2
Y TCC and Cmder imcompatibility issue Support 7
M Another possibly strange remote registry issue Support 5
T WAD bpokestr issue Support 5
D High-DPI Scaling issue Support 1
S CMDebug 22 issue with del command Support 1
cgunhouse Foldermonitor Issue Support 7
samintz Build 38 Install issue Support 5
rps WAD Setlocal issue Support 4
Luiz Rodrigues Issue with Maven Support 1
Seven Update / install issue with 20.0.20.10.32 take command Support 7
Fross WebDav Drive Mapping Issue Support 19
D Upgrade issue Support 3
Fross V20b8 Everything Issue Support 5
T TCC display issue Support 1
cgunhouse _logfile Issue Support 5
T Fixed Querybox issue Support 1
cgunhouse Fixed Share Memory Issue Support 5
cgunhouse Foldermonitor with "/E" Option Issue Support 6
Fross TabComplete Argument Issue Support 1
fpefpe How to? Stange start up issue Support 1
C cosmetic issue with LIST's (I) Support 9
jbarnes1967 TC 18.00 x64 issue with lua io.popen() Support 2
D How to? Wildcards as sets - looping issue with FOR and REN Support 7
T WAD Free issue Support 6
R Fixed v17.0.54 Tab->COMSPEC Dialog Box Issue Support 2
R Minor Cosmetic Issue in Take Command Window Support 2
cgunhouse One line IFF ... Then ... Else ... EndIFF Statement issue in V17 Support 13
cgunhouse IFTP Path Issue in V17 - Fixed Support 7
S BDEBUGGER issue Support 9
cgunhouse @ISPROC Issue Support 15
cgunhouse TCMD.INI Issue Support 7
T Fixed multi-line alias issue Support 13
D Strange issue with FOR loop Support 15
C Install Issue with 3rd Party Privelege Escalation Support 2
W Button command issue Support 5
S XenForo issue Support 8

Similar threads