regolith-linux / regolith-st

Suckless simple terminal (st) for Regolith Linux
6 stars 2 forks source link

ZSH-autosuggestions does not work in St #5

Closed waltsims closed 4 years ago

waltsims commented 5 years ago

Describe the bug

ZSH only autosuggests one character when used with st terminal emulator.

To Reproduce

In St terminal emulator with the default config from regolith-linux, the autocomplete only works for the character under the cursor. With the gnome-terminal on the same machine the plugin works.

Expected behavior

I expect the behaviour between st and gnome-terminal to be the same.

Screenshots

Screenshot from 2019-08-28 10-03-46

Desktop

Note

moved from https://github.com/zsh-users/zsh-autosuggestions/issues/469

kgilmer commented 5 years ago

Hi @waltsims , I am unable to reproduce this. I installed zsh, and then started a new st terminal w/ the zsh shell: $ /usr/bin/st /usr/bin/zsh. I went through the configuration wizards and basically accepted the defaults. When I tab complete directories I am able to see the entire line.

However, I notice I'm not seeing colors as I would in bash. Any idea what the difference between your configuration and mine is?

waltsims commented 5 years ago

I can also tab complete directories but the shadowed text does not show up. This can be seen in the right and side of image). Maybe auto-complete was the wrong wording.

Tabbed auto-complete works. The auto-suggestions (see right hand side of image above) does not.

kgilmer commented 5 years ago

Hmm, how do I enable autosuggestions in zsh?

$ zsh --version
zsh 5.5.1 (x86_64-ubuntu-linux-gnu)
waltsims commented 5 years ago

it's a package. There are a few installation methods. I used the oh-my-zsh method.

I think this is an issue with colors as experienced with https://github.com/regolith-linux/regolith-st/issues/1. I'm seeing similar symptoms.

waltsims commented 4 years ago

This is soved with https://github.com/zsh-users/zsh-autosuggestions/issues/469.

I set the value to:

ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=6"