Page 1 of 1
Auto-complete path and paths with spaces
Posted: 2006-11-01, 00:56 UTC
by djk
It's great we can use auto-complete function in command line (and not only). But it's a pity it doesn't add quotation marks when it suggests path with spaces as it's done when you use this option in eg. cmd.exe
Posted: 2006-11-01, 02:04 UTC
by KyleK
Support+
Posted: 2006-11-01, 11:03 UTC
by ghisler(Author)
Unfortunately that's not possible. Auto-complete is actually a function of Windows itself, and it doesn't allow to insert characters before the typed text.
Posted: 2006-11-07, 12:57 UTC
by astrotzky
Isn't the control returned to Total Commander after pressing ENTER ?
If that's the case, it's then it should check if the path contains spaces. If so, the autocompleted path should be enclosed in double quotes.
Please note that only the autocompleted path must be enclosed in double quote, not the entire command line (one can type cd C:\Program Files, and the result should be after pressing ENTER: cd "C:\Program Files").
Posted: 2006-11-07, 13:17 UTC
by m^2
What about program parameters? When you add quotes over everythin from one point, you can't pass them.
Posted: 2006-11-07, 15:53 UTC
by astrotzky
If it's done how I said (quoting only the auto-completed path) then the cursor should be outside the quotes (at the end) after you press ENTER, so adding parameters is trivial.
Posted: 2006-11-07, 20:17 UTC
by icfu
What happens if you want to do autocompletions in a row?
Example:
You are in c:\ and wanna go to C:\path with spaces\another path with spaces\ in one go.
If spaces are automatically inserted whenever you autocomplete a string that contains spaces, you get nonsense like that:
cd "C:\section with spaces\"another section with spaces""
I think it's much easier to enter the quote manually when needed.
The command line is not used only to change paths, it's also needed for entering commands that contain paths, so for me entering quotes automatically is counterproductive.
Icfu