github / github/copilot-cli

Allow disabling/remapping the "Ctrl+C twice to exit" behavio

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

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

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

説明

Describe the feature or problem you'd like to solve

Feature request: Allow disabling/remapping the "Ctrl+C twice to exit" behavior. I frequently use Ctrl+C out of habit (from other terminal tools) for two purposes: (1) cancelling an in-progress operation, and (2) copying selected text. In both cases, a second incidental Ctrl+C press exits the CLI entirely and loses my session context. This is especially disruptive since Ctrl+C for copy is a standard OS/terminal convention outside this CLI. Suggest adding a setting (e.g.,  /settings set ctrlCExit false ) to disable exit-on-double-Ctrl+C, keeping Ctrl+C available for cancel/copy, with Ctrl+D remaining as the explicit shutdown key.

Proposed solution

No response

Example prompts or workflows

No response

Additional context

No response

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

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

はじめの一歩

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

調査の方向性

まず、CLI の Ctrl+C 処理と、既存の settings コマンドまたは設定のエントリポイントを追跡します。issue では特定のファイルやテストは指定されていません。キャンセル、コピー関連の Ctrl+C の押下、2 回押して終了する動作、Ctrl+D によるシャットダウンが現在どのように相互作用しているかを確認し、そのうえで、明示的なシャットダウン経路を削除せずにこの動作を無効化または再マッピングできることを検証します。

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

評価

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

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

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