Skip to content

Allow end-aligned truncation for path and branch footer items #4591

Description

@amd-pelieber

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions