Zsh-autosuggestions: ZSH_AUTOSUGGEST_STRATEGY=completion doesn't work

Created on 3 Mar 2020  路  2Comments  路  Source: zsh-users/zsh-autosuggestions

Describe the bug

Setting suggestion strategy to completion or (completion) doesn't show tab completions as suggestions.

To Reproduce

Steps to reproduce the behavior:

image

Expected behavior

Auto-suggestion is shown with data coming from tab-completion.

Desktop

  • OS + distribution: macOS 10.14.6
  • Zsh version: 5.8
  • Plugin version: v0.6.4 (ae315de)

Additional context

Didn't use (completion) previously, just the default (history), and history works perfectly fine.

bug

Most helpful comment

As of right now, you need to run compinit for the completion suggestions to work:

autoload compinit && compinit

I'll look into making the strategy work without it- I think it should be possible.

All 2 comments

As of right now, you need to run compinit for the completion suggestions to work:

autoload compinit && compinit

I'll look into making the strategy work without it- I think it should be possible.

Worked flawlessly. Thanks a lot for the hint!
Do you want me to send a pull request to explicitly mention this gotcha in the documentation?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mindyourlifeguide picture mindyourlifeguide  路  6Comments

daniele-orlando picture daniele-orlando  路  6Comments

mehedi-sharif picture mehedi-sharif  路  6Comments

Kenmmm picture Kenmmm  路  4Comments

dipam7 picture dipam7  路  3Comments