romkatv / powerlevel10k

A Zsh theme
MIT License
46.69k stars 2.2k forks source link

Add gaps/spacers between segments (help wanted) #2090

Open sebastianzander opened 2 years ago

sebastianzander commented 2 years ago

Hi, I'd like to achieve the following look (screenshot image edited) with gaps or spacers between segments: p10k_with_gaps

I tried some things with POWERLEVEL9K_{LEFT,RIGHT}_SEGMENT_SEPARATOR, especially duplicating the single separator symbol and resetting the background color but the problem remains that I don't have access to the background color of the following segment to colorize the second separator symbol.

Is this possible with powerlevel10k? Does this require a dedicated new theme?

romkatv commented 2 years ago

This is possible in theory but it would require adding an extra parameter to powerlevel10k.

Here's how this sort of powerline can be displayed:

print -P '%K{1} %F{255}foo%f %k%F{1}\uE0B0%F{2}%S\uE0B0%s%K{2} %F{232}bar%f %k%F{2}\uE0B0'

image

I cannot promise to implement this in the foreseeable future though.

ciscohack commented 1 year ago

@romkatv I know you have already mentioned not promised but so many requests for this feature.. Please try to add this ..Since log Powerlevel10k does not get any new major feature addon ..Hoping for some more customization option will come in future

btw any idea how to hide below icon from execution_time

image
romkatv commented 1 year ago

For unrelated questions, please open a new issue.

ciscohack commented 1 year ago

For unrelated questions, please open a new issue.

ok sorry thought a simple query..so asked no worries opened a new ticket