acomagu / fish-async-prompt

Make your prompt asynchronous to improve the reactivity.
MIT License
390 stars 22 forks source link

multi-line prompt is combined #19

Closed feigaoxyz closed 4 years ago

feigaoxyz commented 4 years ago

If the prompt is multi-line, the plugin combined all lines into one line.

For example, set prompt to Simple Pythonista from fish_config, the correct output is

user at hostname in ~/.c/f/conf.d
↪

If we enabled the async plugin, the output is crashed into one line:

user at hostname in ~/.c/f/conf.d ↪

Guess for most user with 2-line prompt, the first line is heavy one with lots of information and computing-intensive, while the second line is usually a short symbol.

Just want to check if it is possible to display second line quickly, while waiting for the first line being computed async.

acomagu commented 4 years ago

Fixed by #21. Thanks!!