IlanCosman / tide

🌊 The ultimate Fish prompt.
MIT License
2.91k stars 108 forks source link

Adjust spacing between prompt elements interactively (like in Powerlevel10k) #317

Open Tyrubias opened 2 years ago

Tyrubias commented 2 years ago

Is your feature request related to a problem? Please describe

I'm using fish through the kitty terminal emulator. kitty allows for users to manually map a Unicode codepoint to a font. However, this tends to affect spacing between icons and associated text. This makes some icons feel too close to the text.

tide left icons tide right icons

Describe the solution you'd like

powerlevel10k allows zsh users to adjust the spacing between icons and text in their interactive configuration script. Would it be possible to add a similar configuration option for tide?

image

Additional context

Here is my debug information:

fish version: 3.5.1
tide version: 5.3.0
term: xterm-kitty
os: macOS 12.5
terminal emulator: Kitty
fish startup: 129.92 millis
fisher plugins: ilancosman/tide@v5 reitzig/sdkman-for-fish@v1.4.0 patrickf1/fzf.fish dracula/fish patrickf1/colored_man_pages.fish jorgebucaran/nvm.fish

I'm new to using fish and tide but I'd love to contribute if this seems like an appropriate feature.

real-or-random commented 10 months ago

Let me note that I have the same issue.

Note: For me, a workaround is to use a variant of nerd fonts with monospace/single-width glyphs. These variants are called NFM ("Nerd Fonts Mono"). But this is not great either: While the spacing is okay then, icons tend to tiny because they are to be scaled to a single glyph.

real-or-random commented 10 months ago

As a somewhat better workaround, I simply added a space ("\x20") after every icon in fish_variables relevant for me, e.g.,