Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

background initialization #481

Open
grigorii-horos opened this issue Nov 28, 2019 · 4 comments
Open

background initialization #481

grigorii-horos opened this issue Nov 28, 2019 · 4 comments
Labels

Comments

@grigorii-horos
Copy link

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 added a commit that referenced this issue Jan 27, 2020
If zle is already active, just start the widgets and set up the
automatic re-binding (if manual rebind has not been specified).

See GitHub issue #481
ericfreese added a commit that referenced this issue Jan 27, 2020
If zle is already active (plugin has been loaded in the background),
just start the widgets and set up the automatic re-binding (if manual
rebind has not been specified).

See GitHub issue #481
@ericfreese
Copy link
Member

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
Copy link
Author

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

@grigorii-horos
Copy link
Author

@ericfreese Hi, why was this branch not merged?

@ericfreese
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants