Allow end-aligned truncation for path and branch footer items
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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