Auto-complete path and paths with spaces
Moderators: Hacker, petermad, Stefan2, white
Auto-complete path and paths with spaces
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
- ghisler(Author)
- Site Admin
- Posts: 50386
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
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.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
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").
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").
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
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
This account is for sale