Auto-complete path and paths with spaces

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
djk
Power Member
Power Member
Posts: 1651
Joined: 2003-03-17, 11:33 UTC
Location: Poland
Contact:

Auto-complete path and paths with spaces

Post 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
DJK
Totally addicted to Total Commander
totalcmd.pl
en.totalcmd.pl
User avatar
KyleK
Junior Member
Junior Member
Posts: 64
Joined: 2003-04-11, 12:33 UTC
Location: Dresden

Post by *KyleK »

Support+
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48075
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post 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.
Author of Total Commander
https://www.ghisler.com
astrotzky
Junior Member
Junior Member
Posts: 48
Joined: 2006-09-18, 10:37 UTC

Post 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").
User avatar
m^2
Power Member
Power Member
Posts: 1413
Joined: 2006-07-12, 10:02 UTC
Location: Poland
Contact:

Post by *m^2 »

What about program parameters? When you add quotes over everythin from one point, you can't pass them.
astrotzky
Junior Member
Junior Member
Posts: 48
Joined: 2006-09-18, 10:37 UTC

Post 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.
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post 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
This account is for sale
Post Reply