eca icon indicating copy to clipboard operation
eca copied to clipboard

Add support for completion behind user's cursor

Open andilavera opened this issue 7 months ago • 2 comments

To upvote this issue, give it a thumbs up. See this list for the most upvoted issues.

Example of Cursor (the Vscode fork) prediction suggesting changes before and after the cursor point:

Image

In Cursor, when a completion is forward only, it looks like the normal ghost text. When the suggestion includes a completion behind the users cursor, the editor displays the suggestion to the right side as a small window.

andilavera avatar Apr 25 '26 16:04 andilavera

@AndiLavera can you elaborate this one with more examples/code? I think it makes sense to match cursor, but I'm not sure I got what was completed from that image / what we should support exactly

ericdallo avatar Apr 26 '26 00:04 ericdallo

Please ignore the contents of the code. I was clicking around, letting Cursor tab complete drive itself.

Suggestions that I would say are "behind the users cursor":

Image Image Image Image > My cursor was after the string on line 5. Not sure why the icon isn't in the photo.

Other potentially interesting views:

Image Image

For these two, it looks like if the suggestion has any removals, Cursor displays the floating window instead of ghost text.

andilavera avatar Apr 26 '26 11:04 andilavera