github / github/copilot.vim

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

Open
#265 1 comment 2 reactions 0 assignees View on GitHub
Dominant language
Vim Script
Stars
11.7k
Forks
810
PR merge metrics
No merged PRs in 30d

Description

**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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.