File completion change

Charles Dye

Super Moderator
Staff member
May 20, 2008
4,462
88
Albuquerque, NM
prospero.unm.edu
I have in my .INI file:
FileCompletion=unzip oz zipdir:zip dirs; rd rmdir cd chdir cdd pushd:dirs; upx:com exe dirs;

It doesn't seem to work the same in v19 (32 bit, if it matters.) After UNZIP, for example, Tab completes names of .ZIP files, but not subdirectories. After UPX, Tab doesn't seem to want to complete anything....

The same directive does work as expected in v18.
 

Charles Dye

Super Moderator
Staff member
May 20, 2008
4,462
88
Albuquerque, NM
prospero.unm.edu
I'm still seeing issues. If I type e.g.
Code:
unzip c:\wi
and press Tab, I would expect TCC to fill in "Windows"; instead I get an error sound. My FileCompletion directive is
Code:
filecompletion=unzip oz zipdir:zip dirs; rd rmdir cd chdir cdd pushd:dirs; upx:com exe dirs;

This is in TCC 19.02.34, x86, running on Windows 10 build 10240, if that makes any difference.
 

Charles Dye

Super Moderator
Staff member
May 20, 2008
4,462
88
Albuquerque, NM
prospero.unm.edu
Better.... But now I've found a new (?) oddity. ZIP files appear in the file-completion list twice. I even see this in the F7 popup window:

File-completion-oddity.png
 

Charles Dye

Super Moderator
Staff member
May 20, 2008
4,462
88
Albuquerque, NM
prospero.unm.edu
That's a different (and old) issue (include lists returning multiple matches). For build 36 (already uploaded) I added a check for this situation; let me know if it solves your problem.

I do still see it:

File-completion-oddity.png


I don't know that this constitutes an actual problem. It is a little surprising, though, and different from previous versions.
 
May 20, 2008
11,402
99
Syracuse, NY, USA
With Charles's INI directive, and CWD = v:\, the zip files appear twice if I specify "unzip v:\*" and only once if I specify "unzip *"
 

Charles Dye

Super Moderator
Staff member
May 20, 2008
4,462
88
Albuquerque, NM
prospero.unm.edu
Build 37 acts much more like previous versions: completes all the stuff I expect it to, nothing I don't, doesn't include anything twice.

Yet still another peculiarity I've found: When completing with Tab, files appear first, then subdirectories; but when backtracking through the list with Shift-Tab, everything is sorted into Unicode order, as in the F7 dialog. I don't know whether you'd consider this a bug or not -- I'm not calling it that -- just another oddity I've found.

I assume all these little nits I've found reflect some major internal rewrite to support completion scripts, completion plugins, etc.
 

rconn

Administrator
Staff member
May 14, 2008
12,346
150
Build 37 acts much more like previous versions: completes all the stuff I expect it to, nothing I don't, doesn't include anything twice.

Yet still another peculiarity I've found: When completing with Tab, files appear first, then subdirectories; but when backtracking through the list with Shift-Tab, everything is sorted into Unicode order, as in the F7 dialog. I don't know whether you'd consider this a bug or not -- I'm not calling it that -- just another oddity I've found.

WAD - that one is not "fixable" without discarding the completion ordering.

I assume all these little nits I've found reflect some major internal rewrite to support completion scripts, completion plugins, etc.

No, it was a major internal rewrite to support completion order.
 
Similar threads
Thread starter Title Forum Replies Date
vefatica LIBRARY and file name completion? Support 4
H file name completion on tcc21.01.61 Support 4
R How to? How to prevent filename completion for some file types? Support 3
W File completion without space/executable extensions Support 3
L File completion window saws long paths Support 3
J History file load hangs if file has complete garbage in it... Support 1
jdanielp Cannot step into and/or call another .bat file when debugging .bat file Support 2
thorntonpg file explorer - short cut keys Support 1
JohnQSmith New online help file wrong logo Support 7
Jay Sage WAD Possible Bug With OPTION Command With @FILE Support 5
samintz How to? swap endianness in a binary file Support 12
vefatica `Back quotes` - command line vs. batch file Support 5
fpefpe How to? batch file size Support 2
Jay Sage Issues With TCMD File Explorer Support 0
FreezerBurnt Help making a CMD and TCC compatible batch file Support 7
Joe Caverly @FILESIZE and NTFS File Stream Support 1
Joe Caverly Embedding an .EXE (or other file) into a .BTM Support 8
U Command help on file names Support 5
S Concatenate all playlists into 1 file Support 22
Joe Caverly Set a batch variable (%1 - %n) when TCC is executing a batch file Support 5
Joe Caverly Rename file that begins with Emoji Support 7
Joe Caverly PSHELL and NTFS File Streams Support 2
P Kill all other instances of tcc from a btm batch file Support 2
D ffind hangs on large file Support 18
Alpengreis Documentation Minor issue in help file for view /E Support 1
fpefpe batch file ending early Support 18
J Licesne file location Support 1
K robocopy cancelling batch file processing Support 28
Jay Sage TCMD Crashes with "tctoolbar /c /r file" Support 5
A Unable to pass batch file arguments unaltered Support 18
MikeBaas How to...extract a string from a .json-file? Support 10
D What does the file "..\Everything\Run history.csv" store? Support 5
H Takecommand.pdf failed not a pdf file Support 6
Joe Caverly DIRectory Colorization in v25 Help File Support 0
C show file description? with dir? Support 8
D When copying/moving, appending " (2)" to filename when the target file already exist. Support 7
R How to? Dir specific file search patterns with spaces in the pathnames? Support 6
Joe Caverly _EXPANSION in help file Support 0
Stefan Hassel Installation file TC 24.02 Build 47 is actually version 25.00.1 Support 10
vefatica Are @FILEDATE[file] and @FILEDATE[file,u] ever different? Support 2
K_Meinhard Help file error Support 1
Joe Caverly JOBMONITOR in Help File Support 1
D btm file command line augments comparing for string or math. Support 12
A Documentation [Help file] OPTION "//" synopsis formatting issue Support 0
vefatica Can TCC complete this file name? Support 5
G tcedit ist not run in tc 24 file explorer Support 10
M How to set Path variable for non-executable file extensions in 4DOS Support 8
I zip /M fails to delete file after adding to zip file Support 2
Charles Dye Is the "File Associations" installer dialog working? Support 4
J File explorer handling from command line? Support 2

Similar threads