conjure icon indicating copy to clipboard operation
conjure copied to clipboard

Inline Results Persistent?

Open usmcamp0811 opened this issue 1 year ago • 1 comments

Is it possible to make the inline results persist when you move the cursor to another line?

Also how would I go about changing the inline virtual text color?

usmcamp0811 avatar Aug 06 '22 22:08 usmcamp0811

This is not a thing right now, no. How long would things persist for? Do you envision EVERY line slowly filling up with results or just the last one staying there forever until you eval something else?

And changing the colour is done through the highlight group which can be configured here https://github.com/Olical/conjure/blob/572c9717d82de38f5bc60c2942843ce9b941aed6/doc/conjure.txt#L334-L338

You can set the theme for that highlight group using normal vim concepts.

Olical avatar Aug 07 '22 13:08 Olical

Closing this since I think it's hard to implement, would need a LOT of configuration + documentation to fit the needs of everyone and shouldn't be required. I think the UX of this would get kinda rough since it'd just clutter your buffer with more and more output.

Olical avatar Aug 14 '22 12:08 Olical

I found evaluating to a comment is far more useful than having an option to persist inline evaluation results.

It is far easier to be selective with the comment approach and evaluation results can even be persisted to file and therefore across REPL sessions. There are occasions when I want to show expected results from evaluating a function call to help developer understand my code behavior.

practicalli-johnny avatar Aug 15 '22 18:08 practicalli-johnny