File completion change

Charles Dye

Super Moderator
Staff member
May 20, 2008
3,555
46
Albuquerque, NM
prospero.unm.edu
#1
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
3,555
46
Albuquerque, NM
prospero.unm.edu
#3
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
3,555
46
Albuquerque, NM
prospero.unm.edu
#7
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.
 

Charles Dye

Super Moderator
Staff member
May 20, 2008
3,555
46
Albuquerque, NM
prospero.unm.edu
#11
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
10,423
95
#12
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.