Zsh-autosuggestions: Unexpected suggestion completion after pasting

Created on 21 Feb 2020  路  1Comment  路  Source: zsh-users/zsh-autosuggestions

Describe the bug

When pasting a path or other text, the suggestion is not updated in the background. That means, that after pasting a text and pressing the right arrow to go to the end of inserted text, the previous suggestion is inserted. An example of this is shown in the screencast below.

To Reproduce

Steps to reproduce the behavior:

  • Type until a suggestion is shown.
  • Paste a path or similar from clipboard.
  • Press right key to go to end of inserted selection.
  • See that the suggestion previous to pasting text is inserted.

Expected behavior

The suggestion should be updated after insertion, or not responding to right arrow presses when text is selection if possible.

Screenshots

asciicast

Desktop

  • OS + distribution: macOS Catalina (10.15.3)
  • Zsh version: 5.7.1
  • Plugin version: 0.6.4

Additional context

bug

Most helpful comment

This issue can be resolved by disabling highlight on paste in .zshrc:

zle_bracketed_paste=()

As mentioned in in this issue. Since this seems to be more related to the ohmyzsh setting of highlighting pasted text, this issue may be closed.

>All comments

This issue can be resolved by disabling highlight on paste in .zshrc:

zle_bracketed_paste=()

As mentioned in in this issue. Since this seems to be more related to the ohmyzsh setting of highlighting pasted text, this issue may be closed.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sebw picture sebw  路  6Comments

silverneko picture silverneko  路  5Comments

NikKovIos picture NikKovIos  路  4Comments

fgr0 picture fgr0  路  3Comments

dragonxlwang picture dragonxlwang  路  3Comments