chrisant996 / clink

Bash's powerful command line editing in cmd.exe
https://chrisant996.github.io/clink/
GNU General Public License v3.0
3.44k stars 135 forks source link

the default ocmmand line experience allows wildcard based autocompletion on hitting tab key but after installing clink it doesn't #656

Closed amithegde closed 1 month ago

amithegde commented 1 month ago

I usually use wildcard to autocomplete for example *.zip and hit tab to auto complete and then iterate over avaiable matches. After installing clink, this doesn't work any more. Please help look into.

chrisant996 commented 1 month ago

Refer to How Completion Works.

hutcho commented 1 month ago

I usually use wildcard to autocomplete for example *.zip and hit tab to auto complete and then iterate over avaiable matches. After installing clink, this doesn't work any more. Please help look into.

Yeah the clink default is a very different to how windows does tab. To return it back to normal, you have to manually turn off the clink "executable completion" behavior by running clink set exec.enable false

chrisant996 commented 1 month ago

I usually use wildcard to autocomplete for example *.zip and hit tab to auto complete and then iterate over avaiable matches. After installing clink, this doesn't work any more. Please help look into.

Yeah the clink default is a very different to how windows does tab. To return it back to normal, you have to manually turn off the clink "executable completion" behavior by running clink set exec.enable false

It sounded like the OP installed Clink without Enhanced Defaults (maybe via winget or scoop), and wants menu-complete style of completion that works with wildcards and cycles through matches, instead of the bash style completion.

It didn't sound to me like the question was about executable completion (which most Linux shells have as well).

amithegde commented 1 month ago

It sounded like the OP installed Clink without Enhanced Defaults (maybe via winget or scoop)

I installed via winget. wildcard based autocomplete works well for my workflow because the project I work on has many .sln files and hard to remember names. I just go to the directory enter *.sln, hit tab and then enter to open it.

chrisant996 commented 1 month ago

It sounded like the OP installed Clink without Enhanced Defaults (maybe via winget or scoop)

I installed via winget. wildcard based autocomplete works well for my workflow because the project I work on has many .sln files and hard to remember names. I just go to the directory enter *.sln, hit tab and then enter to open it.

Yes. The documentation link I shared covers the topic.

It says how to get the behavior you want.