zsh like completion in cmd.exe
when I input "some" and hit TAB
if only one match (e.g. "some-folder"), complete this match.
else if they have common prefix (e.g. "some-folder" and "some-other" have common prefix "some-")
and longer than original text ("some"), complete to the common prefix ("some-")
else show all options just like clink-completion-shim
but in this case, when you hit TAB again, cycle in the list (with current selection highlight)
> ls
some-folder some-other
# Case 1
> some-f # hit <TAB>
=> some-folder
# Case 2
> some # hit <TAB>
=> some-
# Case 3
> some- # hit <TAB>
=> some- # hit <TAB> again
some-folder some-other
=> some-folder # hit <TAB> again
**some-folder** some-other
=> some-other
some-folder **some-other**
could this been implement?
I was also looking for this behaviour for a while. Directly adding completion without showing the candidate list is sometimes not ideal.
For folders with a large number of files that have a similar prefix, the current completion will take a long time to get what I want.
I need to ls first then do commands with the filename...
@clouds56 Found a solution here: https://unix.stackexchange.com/questions/24419/terminal-autocomplete-cycle-through-suggestions
Not exactly what ZSH has, but almost the same.
Good enough for me.
The fork at chrisant996/clink has zsh-like / PowerShell-like interactive completion.
Bind the clink-select-complete command to tab to use it.