zsh-users / zsh-autosuggestions

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

Option for less specific suggestions #705

Open oiiiiiiii opened 1 year ago

oiiiiiiii commented 1 year ago

Is your feature request related to a problem? Please describe.

Suggestions are too specific sometimes.

Describe the solution you'd like

I would like an option, that doesn't suggest as much. So for example when I often run commands like git checkout -b 'branch-x' git checkout -b 'different-branch-y' git checkout -b 'another-one-z' I would prefer the suggestion git checkout -b ' instead of git checkout -b 'another-one-z'. I think it would be good to have a completion strategy that searches for similarities among commands that have been executed that match everything that has been entered into the terminal so far. Because otherwise the suggestion is not as usefule, when I have to delete parts again. I think it would be better if the rest is only inserted after a second tab.