Filename completion with forward slashes

Apr 7, 2010
42
0
I use mingw and several unix-based utilities, many of which expect paths to use forward slashes. However, for filename completion, TCMD does not seem to accept strings with forward slashes.

REQUEST: It would be great if TCMD had an option or a hotkey that would allow filename completion on strings that contain either forward or back slashes.

If a way already exists, please let me know. Thanks.
 

Charles Dye

Super Moderator
Staff member
May 20, 2008
4,466
88
Albuquerque, NM
prospero.unm.edu
I use mingw and several unix-based utilities, many of which expect paths to use forward slashes. However, for filename completion, TCMD does not seem to accept strings with forward slashes.

REQUEST: It would be great if TCMD had an option or a hotkey that would allow filename completion on strings that contain either forward or back slashes.

If a way already exists, please let me know. Thanks.

It works fine for me, with UnixPaths=Yes.

In fact, with UnixPaths and AppendToDir both set, not only does TCC accept forward slashes, but tab completion actually inserts forward slashes instead of backslashes when completing directory names.
 
Apr 7, 2010
42
0
Thank you. I checked under "Filename Completion" in the help file and did not see any option. Now that you told me what to look for, it seems obvious. I should have known it would already be covered. I just wished I had asked much sooner. Thanks for a great product.
 
Dec 7, 2009
238
2
Left Coast, USA
The directory-name completion routine is smart about this. I have a SupportFiles subdirectory of C:\TakeCommand. If I go to C:\TakeCommand and type "dir suppo", then press Tab, this appears: "dir SupportFiles\".

But if I type "dir ./suppo" and press Tab, I get: "dir ./SupportFiles/". Nice touch, that.

I'm very glad not to be plagued by case-sensitivity in these situations. For some bizarre reason known only to some dev who's probably still locked up in chains somewhere in the basement parking-lot of Building 42, cmd.exe couldn't care less about matching case except when it comes time to do filename or directory name completion with the Tab key. Get the capitalization wrong, and <beep>. Makes no sense at all.
 
Dec 7, 2009
238
2
Left Coast, USA
I was thinking of a building 42 at a tiny software company somewhere north of Oregon and west of Idaho. But it could have been a different building #. :--)
 
May 20, 2008
3,515
4
Elkridge, MD, USA
Possibly associated with the name adoption I suggested in another thread recently? But the OP is oriented toward Unix and its derivatives, which originated in New Jersey, and are epitomes of intentional case sensitivity.
 
Dec 7, 2009
238
2
Left Coast, USA
Re: intentional case sensitivity: understood. I'm referring in a somewhat snide vein to some unintentional and unnecessary case-sensitivity that was never fixed. Or else it was entirely intentional, and therefore completely irrational.
 
Last edited:
May 20, 2008
11,414
99
Syracuse, NY, USA
cmd.exe couldn't care less about matching case except when it comes time to do filename or directory name completion with the Tab key. Get the capitalization wrong, and <beep>. Makes no sense at all.
What are you referring to here, mikea? I find no problem with CMD's tab completion.
 
Dec 7, 2009
238
2
Left Coast, USA
> what are you referring to here

To my chagrin I just realized I've been mis-speaking (argh) -- mixing up one cmd.exe problem with another. It isn't the filename completion feature that's case-sensitive. It's the retrieval of history items. If I type "dir" and then "Dir /w" (capital "D" in the second case)...later, if I type "d" alone and press F8, the only command cmd.exe retrieves is "dir" -- it can't find "Dir /w" in its command history. If instead I type "D" alone and press F8, cmd.exe retrieves the "Dir /w" command but not "dir" (without the switch). 4NT/TCC have never had this limitation. I suppose there must be some tiny registry hack to overcome it, but expending much effort to improve the behavior of cmd.exe is mostly an exercise in futility.
 
Similar threads
Thread starter Title Forum Replies Date
M Is bash-like filename completion possible? Support 3
gworley Virtual network drive filename completion doesn’t get directories Support 0
D Exclude extension from filename completion Support 1
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
R How to? How to prevent filename completion for some file types? Support 3
James Miller How to? filename completion question Support 1
J Fixed Filename completion does not quote filenames containing ^ Support 1
Jay Sage Filename Completion in Take Command vs. TCC Support 1
J Filename Completion Window Support 1
vefatica Filename completion anomaly Support 2
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
Joe Caverly CMD.EXE and filename(1).ext Support 3
C How to? @replace[a comma,_,filename] Support 5
rfaquino How to? Display filename being copied on a single line Support 2
C How to? tell is @full[filename] contains any special JPSosft special chars 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
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