-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Labels
Description
# .zshrc
export ZSH="$HOME/.oh-my-zsh"
export HOMEBREW_PREFIX="/home/linuxbrew/.linuxbrew"
export PATH="$HOME/go/bin:$HOMEBREW_PREFIX/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"
ZSH_THEME="robbyrussell"
if ! test -d "$ZSH"; then
git clone --depth=1 https://github.com/robbyrussell/oh-my-zsh "$ZSH"
fi
if type brew &>/dev/null; then
eval $(SHELL=zsh brew shellenv)
fi
source $ZSH/oh-my-zsh.sh
source $HOMEBREW_PREFIX/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
When one for example writes docker-comp
, completes it with TAB and then presses TAB to get a completion inserted, it is inserted, but in bold. This does not happen when oh-my-zsh
is not sourced or command is entered manually from start to the end.
As one can see, entering TAB right after command, produces bold completion and when a space is already in place after command the inserted text is not bold as it should be.
Metadata
Metadata
Assignees
Labels
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity
z0rc commentedon Sep 10, 2019
Bold text representation depends on terminal emulator. Look into terminal settings for options like "Draw intense colors with bold font". If this true for you, adjust highlight styles to better match your preference and terminal color palette.
danielshahaf commentedon Sep 10, 2019
Please provide a minimal reproducer using
zsh -f
with no external dependencies.Please confirm that disabling zsh-syntax-highlighting fixes the symptoms.
dawidd6 commentedon Sep 12, 2019
It does not happen when:
zsh
is run with-f
optionzsh-syntax-highlighting
is disabledAlso when I disable
oh-my-zsh
, then only the first completion is bold, later entries that appear by pressing TAB are normal.I'm using
gnome-terminal
onUbuntu 19.04
withzsh 5.7.1
andzsh-syntax-highlighting 0.6.0
(tested latestmaster
and it's the same).@z0rc I don't see any option like this.
Update: just tested
xterm
and it is the same.Out of curiosity I also tried https://github.com/zdharma/fast-syntax-highlighting and the issue is there too.
danielshahaf commentedon Sep 16, 2019
I've been able to reproduce something similar to this.
With z-sy-h master and zsh master (I haven't checked earlier versions of either), if I do:
then after the first
<TAB>
, the filename shown isn't underlined. After subsequent<TAB>
presses the filenames get underlined. I press<TAB>
enough times for the first filename to be offered a second time and at that point it did get underlined.@dawidd6 When I requested a reproducer, this is what I meant: a minimal sequence of steps that starts from
zsh -f
and demonstrates the problem.[-]Completion appears bold in certain circumstance[/-][+]First completed filename doesn't get [path] highlighting[/+]danielshahaf commentedon Mar 19, 2020
Works for me if I merge the
feature/redrawhook
branch.empty commit: Close redrawhook bugs