Make Ctrl+E accept inline autocomplete suggestions
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Shell
- Sterne
- 11.2k
- Forks
- 1.9k
- Ø Merge
- 14 Std. 16 Min.
- Gemergte PRs (30 T.)
- 6
Beschreibung
Describe the feature or problem you'd like to solve
When an inline suggestion is visible, Ctrl+E should accept it, matching common Emacs-style terminal behavior. Otherwise, it should continue moving the cursor to the end of the line.
Proposed solution
Make Ctrl+E context-sensitive:
• If an inline suggestion is visible, accept the entire suggestion.
• If no inline suggestion is visible, keep the existing behavior of moving the cursor to the end of the line.
Example prompts or workflows
I type:
Explain the changes in src/
Copilot displays a ghost suggestion:
Explain the changes in src/auth.ts since the last commit
Pressing Ctrl+E should accept the full ghost text. If there is no ghost suggestion, Ctrl+E should simply move the cursor to the end of the current line.
Additional context
No response
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Das Issue nennt keine Repository-Dateien oder Tests. Beginne damit, die Ctrl+E-Tastenbehandlung der CLI und den Einstiegspunkt zum Akzeptieren von Inline-Vorschlägen zu finden, und verfolge anschließend das bestehende Verhalten am Zeilenende. Erledigt ist die Aufgabe, wenn Ctrl+E den gesamten sichtbaren Vorschlag akzeptiert und weiterhin zum Zeilenende wechselt, wenn kein Vorschlag vorhanden ist; füge die relevanten Terminal-Interaktionstests hinzu oder führe sie aus, falls verfügbar.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- shell
- Bereich
- cli
- Issue-Typ
- Feature
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Aktiv
- Klarheit
- Klar beschrieben
- Anfängerfreundlichkeit
- 68/100