This plugin assumes that whatever is written to $POSTDISPLAY is an auto-suggestion, and the right arrow key action treats it as such.
To Reproduce
Steps to reproduce the behavior:
Write any function that writes to $POSTDISPLAY outside of zsh-autosuggestions, then press the right arrow key. zsh-autosuggestions fills it in as a suggestion despite not having generated it itself.
Expected behavior
Pressing the right arrow key should not insert the contents of $POSTDISPLAY onto the buffer
Screenshots
Desktop
OS + distribution: Arch Linux (linux 5.16.1)
Zsh version: 5.8
Plugin version: a411ef3
Additional context
This interferes with the possibility of other plugins making use of $POSTDISPLAY. A fix would be to store the suggestion in a secondary variable as well, and use that variable in the right arrow key action.
Describe the bug
This plugin assumes that whatever is written to
$POSTDISPLAY
is an auto-suggestion, and the right arrow key action treats it as such.To Reproduce
Steps to reproduce the behavior:
Write any function that writes to
$POSTDISPLAY
outside ofzsh-autosuggestions
, then press the right arrow key.zsh-autosuggestions
fills it in as a suggestion despite not having generated it itself.Expected behavior
Pressing the right arrow key should not insert the contents of
$POSTDISPLAY
onto the bufferScreenshots
Desktop
a411ef3
Additional context
This interferes with the possibility of other plugins making use of
$POSTDISPLAY
. A fix would be to store the suggestion in a secondary variable as well, and use that variable in the right arrow key action.