jnoortheen / xontrib-powerline3

powerline theme for xonsh with async prompt support.
MIT License
11 stars 4 forks source link

Joining fields without the $POWERLINE_MODE separator #5

Open eode opened 3 years ago

eode commented 3 years ago

Is there any way to join fields without the $POWERLINE_MODE separator?

For example, one doesn't need someuser>@>somehost>some>path -- someuser@somehost>some>path is good.

eode commented 3 years ago

Also -- yes, one could make a separate $PROMPT_FIELDS item for user@host, but then one loses the benefit of using $PROMPT_FIELD_COLORS separately for user and host.

jnoortheen commented 3 years ago

you could just use https://xon.sh/envvars.html#bottom-toolbar

The idea here is to use this library as a theme and not bring its own set of configurations as much as possible.

jnoortheen commented 3 years ago

misplaced the comment

jnoortheen commented 3 years ago

Also -- yes, one could make a separate $PROMPT_FIELDS item for user@host, but then one loses the benefit of using $PROMPT_FIELD_COLORS separately for user and host.

This would be the better way to do it but I will be glad to accept a PR if you come up with a way to do it without repetition and no new standards.

eode commented 3 years ago

What constitutes 'no new standards'? No specific environment variables, no new special characters in the string, or..?

jnoortheen commented 3 years ago

something like here someuser>@>somehost>some>path -- someuser@somehost>some>path or having redundant variables likes PL_TOOLBAR, PL_PROMPT, ... It has to be natural to the way we define Prompt-fields for xonsh

eode commented 3 years ago

Makes sense.