zsh-users / zsh-autosuggestions

Fish-like autosuggestions for zsh
MIT License
30.95k stars 1.86k forks source link

completion based on ssh config bug? #549

Open TarSzator opened 4 years ago

TarSzator commented 4 years ago

Disclaimer

I am not sure if I am right here or if I should create an issue in oh-my-zsh or if I just have a thought-process-error ;-). I use zsh with oh-my-zsh and zsh-autosuggestions as oh-my-zsh plugin

Premise

Host test-1
  Hostname test-1.stuff.com
  User aUser
  IdentityFile ~/.ssh/id_rsa

And in your .ssh/known_hosts file is an entry for

test-x.otherstuff.com

Describe the bug

When I type ssh test then press TAB I do not get all suggestion for that, but he prompt will be extended to ssh test.otherstuff.com The cursor is right at the first . When I then press TAB again the suggestion include everything that is fitting kind of the pattern test*.otherstuff.com So all the configs in my ssh configs are basically skipped from the suggestions

To Reproduce

The "Premise" and the "Description" should make the reproduction possible

Expected behavior

If it is unclear it should not auto-complete in the prompt but show the list right away

Desktop