powerlevel9k icon indicating copy to clipboard operation
powerlevel9k copied to clipboard

NVM cut off

Open sgript opened this issue 6 years ago • 4 comments

I'm having this cut off problem for nvm left prompt elements: screenshot 2018-10-12 at 23 17 39

My config is:

POWERLEVEL9K_PROMPT_ON_NEWLINE=true
POWERLEVEL9K_RPROMPT_ON_NEWLINE=true
POWERLEVEL9K_MODE='awesome-patched'
POWERLEVEL9K_SHORTEN_DIR_LENGTH=3
POWERLEVEL9K_SHORTEN_STRATEGY="truncate_middle"
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(root_indicator dir nvm vcs)
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status zsh_showStatus)
POWERLEVEL9K_NVM_BACKGROUND='28'
POWERLEVEL9K_NVM_FOREGROUND='15'
POWERLEVEL9K_TIME_FORMAT="%D{%H:%M \uE868  %d.%m}"

sgript avatar Oct 12 '18 22:10 sgript

Hi @sgript !

Which Terminal Emulator do you use? It may be a workaround to add some space to the NVM icon.. The problem is that the icon used is a double width glyph, which overflows from one cell into the next one.

dritter avatar Oct 12 '18 22:10 dritter

I have this issue too.

Screen Shot 2019-03-22 at 10 27 50 AM

iTerm, 12pt Hack Regular Nerd Font

~/.zshrc

 34 POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(context dir vcs rbenv virtualenv anaconda nvm)
 35 POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status command_execution_time background_jobs root_indicator)
 36
 37 POWERLEVEL9K_VIRTUALENV_BACKGROUND="grey"
 38 POWERLEVEL9K_VIRTUALENV_VISUAL_IDENTIFIER_COLOR="green"
 39
 40 POWERLEVEL9K_ANACONDA_BACKGROUND="grey"
 41 POWERLEVEL9K_ANACONDA_VISUAL_IDENTIFIER_COLOR="green"
 42
 43 POWERLEVEL9K_MODE='nerdfont-complete'
 44 POWERLEVEL9K_PROMPT_ON_NEWLINE=true
 45
 46 POWERLEVEL9K_HOME_ICON='\uf06c'
 47
 48 export DEFAULT_USER="$USER"
 49
 50 ZSH_THEME="powerlevel9k/powerlevel9k"

dustinmichels avatar Mar 22 '19 16:03 dustinmichels

It works fine with numbers, just the word "system" gets truncated.

Screen Shot 2019-03-22 at 10 46 20 AM

dustinmichels avatar Mar 22 '19 16:03 dustinmichels

@sgript Could you check if this issue can be reproduced with Powerlevel10k?

romkatv avatar May 22 '19 10:05 romkatv