github / github/copilot.vim

Feat: Accept Copilot Suggestion Up To Character (Find Motion Support)

Offen
#265 1 Kommentar 2 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Vim Script
Sterne
11.7k
Forks
810
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

**Summary:**
Requesting a feature to accept Copilot suggestions up to and including (`f` motion) or up to before (`t` motion) a specified character (i.e., leverage Vim’s `f` and `t` motions).

**Example:**
Given the suggestion:
```
The quick brown fox jumps over the lazy dog.
```
- Typing a key sequence like `fj` would accept and insert:
```
The quick brown fox j
```
(up to and including the first `j` in the suggestion).

- Typing a key sequence like `tj` would accept and insert:
```
The quick brown fox
```
(up to but not including the first `j` in the suggestion).

**Rationale:**
- Provides granular acceptance of suggestions.
- Mimics familiar Vim motions for efficiency.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.