Inline REPL Issues with Editing and Long Form Display
Opened this issue · 2 comments
Hey, thanks for the new inline REPL—it’s fantastic! I’m using version 1.14.0-eap1-2024.2
and have encountered a couple of issues:
-
When I evaluate a simple data structure like
{:a 1 :b 2}
, and my cursor is next to 2, pressing backspace to delete and replace it doesn’t work (I have to press ESC key before that). If I press another number without backspace, the find feature activates on the evaluated result. I think this should be disabled by default to allow direct editing. -
If the form is too long to fit within the view, the evaluation result appears at the end of the form, which isn’t visible on the same line where the cursor is. For long forms, it would be helpful if results were displayed in-line with the cursor’s position for better readability.
@cursive-ide is there any plan for this?
I'm not sure that I can fix your first issue. The input handling is actually very tricky between the inlays and the enclosing editor. I do plan to look at this since there are other annoyances (the REPL shortcuts don't work when the inline view is focused, for example), but I'm not sure how much I'll be able to achieve without breaking other things.
Several people have asked for the second, that is definitely on the list.