getcursor / cursor

The AI-powered code editor
https://cursor.sh
20.55k stars 1.38k forks source link

The "ctrl+right" shortcut accepts suggestions in places that don't make sense. #1501

Open PoignardAzur opened 1 week ago

PoignardAzur commented 1 week ago

A shortcut was recently added where "ctrl/cmd+right" accepts the next word of an inline completion. When that completion follows the cursor, that shortcut makes sense.

But in some situations, the suggestion is only "in the vicinity" or the cursor:

image

In these situations, ctrl+right should have its default behavior of "go to next word".

The current behavior is especially obtrusive because inline completions can appear while you're in the middle of navigating your file. Sometimes I'm moving around, repeatedly pressing ctrl+right to move word by word, when suddenly the cursor stops moving and words get added to my code that I didn't want to add.

Desired behavior