github / github/copilot-cli

Make Ctrl+E accept inline autocomplete suggestions

オープン
#4,736 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

area:input-keyboard
主要言語
Shell
スター
11.2k
フォーク
1.9k
平均マージ
14時間 16分
マージ済み PR(30日)
6

説明

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

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

この issue ではリポジトリのファイルやテストが指定されていません。まず CLI の Ctrl+E のキー処理とインライン候補の受け入れエントリポイントを見つけ、既存の行末での動作を追跡してください。Ctrl+E で表示されている候補全体を受け入れ、候補がない場合も行末へ移動することが完了条件です。利用可能であれば、関連するターミナルインタラクションテストを追加するか実行してください。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
shell
領域
cli
issue の種類
機能追加
難易度
3/5
見積もり時間
1〜2日
活発さ
活発
明瞭さ
明確に書かれている
初心者へのやさしさ
68/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。