acomagu/fish-async-prompt

Loading indicator

Closed this issue · 8 comments

Would it be possible to print some sort of loading indicator instead of the previous prompt before printing a new one?

Yes🙌🏻

It would be even cooler to have some simple animation, but I assume it's a nightmare to implement if even possible.

Yes I guess implementing animation will be hard because extra processes must be spawned. But I may try because I think it's cool feature also.

But for now, I'll implement the non-animated loading indicator. Thank you for good suggestion!

Thank you for an awesome tool you made🙏

Do you mind making the loading indicator string customizable via a variable?

Yeah, I'll make it customizable by defining a function.

function fish_right_prompt_loading_indicator
    echo (set_color brblack)''(set_color normal)
end

Finally it's supported at 01741b0! Thank you!