kakounedotcom / connect.kak

Connect a program to Kakoune clients
https://kakoune.org
The Unlicense
88 stars 18 forks source link

add space after starship symbol #50

Closed basbebe closed 3 years ago

basbebe commented 3 years ago

this makes it more coherent with other starship functions

Bildschirmfoto 2021-02-03 um 12 55 18

alexherbo2 commented 3 years ago

I’m new to Starship, but isn’t the job of format to add the space?

basbebe commented 3 years ago

you are, of course, right.

I saw spaces in the symbol being used at the Nerd Font Symbols Preset. But the correct way would be to use format:

[custom.kakoune_connect_client]
symbol = '🐈'
command = 'printf "${KAKOUNE_CLIENT}@${KAKOUNE_SESSION}"'
when = 'test "$IN_KAKOUNE_CONNECT" = 1 -a -n "$KAKOUNE_SESSION" -a -n "$KAKOUNE_CLIENT"'
shell = ['dash']
description = 'Indicates that the current shell is connected to a Kakoune client'
style = 'green italic'
format = "[$symbol ($output )]($style)"

[custom.kakoune_connect_session]
symbol = '🐈'
command = 'printf "${KAKOUNE_SESSION}"'
when = 'test "$IN_KAKOUNE_CONNECT" = 1 -a -n "$KAKOUNE_SESSION" -a -z "$KAKOUNE_CLIENT"'
shell = ['dash']
description = 'Indicates that the current shell is connected to a Kakoune session'
style = 'green italic'
format = "[$symbol ($output )]($style)"
basbebe commented 3 years ago

opened https://github.com/alexherbo2/connect.kak/pull/51