Olical / conjure

Interactive evaluation for Neovim (Clojure, Fennel, Janet, Racket, Hy, MIT Scheme, Guile, Python and more!)
https://conjure.oli.me.uk
The Unlicense
1.79k stars 110 forks source link

HUD displayed although log buffer is opened #621

Open nimaai opened 5 days ago

nimaai commented 5 days ago

I don't know if this is expected behaviour but I would prefer that the HUD be displayed only if the log buffer is not opened.

I like to use both: HUD for small eval results and log buffer for big ones.

Thanks.

russtoku commented 4 days ago

I don't normally use the HUD but I changed my config to allow it. I noticed that after a handful of evaluations with the log buffer opened in a horizontal split the HUD will display.

Olical commented 3 days ago

Related to #615, there's a misconception or a bug here. Not sure which, maybe both!

The HUD appears if the log has been appended to when the bottom of it is off screen. So if you have the log open but you're looking at the top and something is added to the bottom, 1000 lines away, the HUD will appear to show that new content.

If you're seeing output at the bottom of the log and the HUD is appearing then that behaviour is maybe not working as intended. I think some people would prefer the HUD to never appear if a log buffer is open though, so to give those people a choice, how about I make the behaviour an enum.

The default being "show HUD if new log lines aren't visible" and an alternate behaviour being "show HUD is log isn't open in this tab" - because a log in another tab shouldn't stop the HUD appearing in my opinion.

Thoughts?

nimaai commented 3 days ago

@Olical

perfect solution from my point of view.

russtoku commented 3 days ago

Agreed!