zsh-users / zsh-autosuggestions

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

background initialization #481

Open grigorii-horos opened 4 years ago

grigorii-horos commented 4 years ago

Describe the bug

I load this plugin in the background, after precmd hook. This plugin runs _zsh_autosuggest_start after precmd. So, first prompt will be without autosuggestions.

To Reproduce

Steps to reproduce the behavior:

TMOUT=1

TRAPALRM() {
  source $PATH_TO_PLUGIN/zsh-autosuggestions.plugin.zsh
}

Expected behavior

After initialization, the plugin must run _zsh_autosuggest_bind_widgets directly

ericfreese commented 4 years ago

Hi, thanks for reporting this. Please try branch features/background-initialization from PR #506 and let me know if it solves your issue.

grigorii-horos commented 4 years ago

@ericfreese Hi, thank you very much. It works!

grigorii-horos commented 4 years ago

@ericfreese Hi, why was this branch not merged?

ericfreese commented 4 years ago

Simple answer is I just haven't had time to get to it. I'll try to get it merged soon 👍