mridgers / clink

Bash's powerful command line editing in cmd.exe
mridgers.github.io/clink
GNU General Public License v3.0
3.21k stars 283 forks source link

Executable completion includes relative path directories ("." and "..") #305

Open t3hz0rak opened 9 years ago

t3hz0rak commented 9 years ago

Suppose I'm here:

C:\SomeDirectory> The executable I want is here: C:\SomeDirectory\One\Two\Three\Program.exe. One has only the directory "Two" inside it. Two has only the directory "Three" inside it. Three has only the program "Program.exe" inside it.

I type On<TAB>, it completes to "One\" I hit <TAB> again because I just want it to auto-complete the only directory inside, but instead I get a choice of ".", ".." and "Two".

Somehow "cd" completion filters out those relative path directories.. seems like a good thing to do for exe completion, too.

nazikus commented 9 years ago

Try "menu-complete" as described in #190