conjure icon indicating copy to clipboard operation
conjure copied to clipboard

Feature request: indicator/notification of eval status

Open perrygeo opened this issue 6 months ago • 1 comments

Sometimes it's hard to determine if the REPL is still cranking on something or has already returned without a value. Has anyone thought about adding a "spinner" or other similar UI mechanism to indicate ongoing work? Perhaps thought vim-notify or maybe inline with the conjure log?

I'll start hacking on this but figured someone might already have a solution in mind. Thanks!

perrygeo avatar Jun 26 '25 18:06 perrygeo

Interesting idea! A tricky problem too, but worth seeing if there's a good place to add this hook - if there's a global spot for this that would work for all clients it would be across various functions in https://github.com/Olical/conjure/blob/main/fnl/conjure/eval.fnl

There's already some event emitting code in there, maybe if we fleshed that out more to include "start" and "stop" points of evaluations it could expose events that all users could lean on as well as an optional sub-system that users can enable that displays a spinner while something is in flight.

I think considering the complexity of a stateful animated spinner, this will need to be optional, probably off by default. Pretty sure I'd get lots of complaints if I enabled this by default, people like things simple with the ability to enable extra things they like the sound of. I would also write it in such a way that it's in it's own file like activity-indicator.fnl or something that is lazily loaded (the autoload function does this for you) if enabled. It can then hook into the required events to do it's thing with the log or virtual text. Or maybe another floating window?

Cool idea, this is just my initial guidance, happy to help or put some time into it if you're not sure where to start.

Olical avatar Jun 27 '25 13:06 Olical