wish: filename and directory completion in the command line

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
serjayes
Junior Member
Junior Member
Posts: 56
Joined: 2004-01-19, 16:53 UTC

wish: filename and directory completion in the command line

Post by *serjayes »

During typing the command, if the tab is pressed during writing some parameter, it would be very nice to have the filename completion functioning like in the command prompt (see example). The trick would be for the command line editor to activate this only if there's non-whitespace character before cursor, otherwise to perform file list switch like it is now.

Example:

I'm in c:\ folder and start typing

cd Pr

then I press tab and get

cd "Program files".

Additional tabs get the other possibilities, just like in Command prompt in windows (on win2k it's activated with:
[HKEY_CURRENT_USER\Software\Microsoft\Command Processor]
"CompletionChar"=dword:09
"PathCompletionChar"=dword:09) Especially nice thing is that this way a navigation can proceed further -- if I delete the " after program files and continue with \a than it will cycle through all folders starting with a in the program files folder etc.
(user licence #64081)
User avatar
djk
Power Member
Power Member
Posts: 1651
Joined: 2003-03-17, 11:33 UTC
Location: Poland
Contact:

Post by *djk »

There was already a poll about it:
http://www.ghisler.ch/board/viewtopic.php?t=385
DJK
Totally addicted to Total Commander
totalcmd.pl
en.totalcmd.pl
Post Reply