github / github/copilot-cli

Allow end-aligned truncation for path and branch footer items

Open
#4,591 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area:configuration area:terminal-rendering
Dominant language
Shell
Stars
11.2k
Forks
1.9k
Avg merge
14h 16m
Merged PRs (30d)
6

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the footer and statusline configuration and rendering entry points, then trace how current path and branch values are truncated and persisted. Verify the existing start-truncation behavior and determine where a per-item start, end, or middle preference belongs. Done means both interfaces retain the setting and show the requested trailing path or branch portion with an ellipsis in narrow terminals.

Written by the indexing model from the issue text.

Assessment

Tech stack
shell
Domain
cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.