github / github/copilot-cli

Allow end-aligned truncation for path and branch footer items

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

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

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

説明

Describe the feature or problem you'd like to solve

When the path or branch name is too long, only the end is truncated.

Proposed solution

Add a per-item truncation setting to  /footer  (and  /statusline ) for values such as the current working directory and Git branch. Support at least  start  (current behavior),  end , and optionally  middle  truncation. With  end  selected, render an ellipsis followed by the trailing portion of the value—for example,  …\foo\.worktrees\bar  and  …/feature-name —so the most distinguishing directory and branch suffix remain visible in narrow terminals. Persist the preference with the existing footer configuration.

Example prompts or workflows

No response

Additional context

No response

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

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

はじめの一歩

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

調査の方向性

まず footer と statusline の設定およびレンダリングのエントリポイントを見つけ、現在のパスとブランチの値がどのように切り詰められ、保持されているかを追跡します。既存の先頭切り詰め動作を確認し、項目ごとの先頭、末尾、または中央のどの設定をどこに置くべきかを判断します。完了とは、両方のインターフェースが設定を保持し、狭いターミナルで要求されたパスまたはブランチの末尾部分を省略記号付きで表示することです。

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

評価

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

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

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