zsh-users / zsh-autosuggestions

Fish-like autosuggestions for zsh
MIT License
30.43k stars 1.85k forks source link

zsh Auto-suggestions/history messed up on wsl terminal #681

Closed prathikshetty2002 closed 2 years ago

prathikshetty2002 commented 2 years ago

Describe the bug

When i write the initials of my desired command the zsh auto-suggestions don't make it. I pressed tab but still it doesn't remember my history. It shows a list of options. The options are not that precise . For eg: in the below video i just wanted to autocomplete cat but it was rather displaying complex commands on top and pushing the much closer ones below , it was difficult to spot them outright. Also the zsh history suggestions are not up to mark, it seems tidy process rather than using an autocomplete we can type it instead saving time! something must be done to make it better for user experience. I appreciate the constant efforts of my fellow open source contributors for improving the zsh features. It might be that i didin't understand the purpose of this plugin maybe, but auto-suggestions are meant to be time saving and short-precise right. I have labelled this as a bug since it pertains to nullify the autocomplete purpose. Any solutions peeps?

To Reproduce

Steps to reproduce the behavior:

You can try it for yourself check out most used commands and check the suggestions , count it as a metric see for yourself.

I tried this :

https://user-images.githubusercontent.com/63772910/162265138-fda1c585-7728-4e6c-a271-136817fe76d8.mp4

Expected behavior

I expected it to autocomplete as in like the code editors or IDE'S everywhere we use the autocomplete feature . But it turned out not so well or maybe it was not meant to be used like this!

Screenshots

Screenshot 2022-04-07 221837

Screenshot 2022-04-07 230449

here it worked perfectly fine: Screenshot 2022-04-07 230725

Desktop

Additional context

Here is my .zshrc config file for my zsh

I have added the zsh autosuggestions plugin this way. Is there any problem with this or the issue is with the plugin itself?

Screenshot 2022-04-07 231019

prathikshetty2002 commented 2 years ago

I read through some documenation , i figured out how to use zsh auto-completes. It does work well for the history part where it fetches the most appropriate match to command from the history.

docs : https://zsh.sourceforge.io/Doc/Release/

I am closing this issue , since i think i need to explore the features of zsh more before raising issues on them, devs really worked hard to make this amazing shell. ZSH <3