romkatv / powerlevel10k

A Zsh theme
MIT License
46.52k stars 2.19k forks source link

Transient prompt breaks if used alongside zsh-autcomplete #1229

Closed yrammos closed 3 years ago

yrammos commented 3 years ago

The "transient prompt" feature of Powerlevel10k works only for the first command, and then stops, if marlonrichert/zsh-autocomplete is included in the shell configuration.

Reproduction:

> cd "$(mktemp -d)"
> ZDOTDIR=$PWD HOME=$PWD zsh -f 
> source absolute/path/to/zsh-autocomplete.plugin.zsh; source absolute/path/to/powerlevel10k.zsh-theme; source path/to/.p10k.zsh

Am not implying this is a bug on either side. Widget handling (zle) by the two plugins may be fundamentally incompatible, for instance. (This is clearly a low-level issue and diagnosis requires familiarity with both code bases.) Anyhow a warning in the p10k config script might be useful in case of incompatibility.

Thank you @romkatv for this extraordinary piece of work.

romkatv commented 3 years ago

This is a bug in zsh-autocomplete. See https://github.com/marlonrichert/zsh-autocomplete/issues/173#issuecomment-762182789.

yrammos commented 3 years ago

Thank you, @romkatv!

yrammos commented 3 years ago

@romkatv just a heads up that the latest zsh-autocomplete revision, while promising, did not resolve the issue, neither does a solution seem imminent. To prevent confusion, you may want to add an incompatibility warning in your config script.