[PR #9590] feat(tui): use ellipsis in middle of file path instead of truncating for modified files list #13157

Open
opened 2026-02-16 18:18:01 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/9590

State: open
Merged: No


Closes https://github.com/anomalyco/opencode/issues/9592

What does this PR do?

I watched this video a couple of days ago where Scott Jenson talks about early on macOS where they moved the ellipsis in the middle of the file instead of the end to not trim critical information.
image

I found myself needing this in opencode, because when paths get long, the actual filename get truncated so the modified files list is less useful.

How did you verify your code works?

After/before:

image
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/9590 **State:** open **Merged:** No --- Closes https://github.com/anomalyco/opencode/issues/9592 ### What does this PR do? I [watched this video](https://www.youtube.com/watch?v=1fZTOjd_bOQ) a couple of days ago where Scott Jenson talks about early on macOS where they moved the ellipsis in the middle of the file instead of the end to not trim critical information. <img width="1279" height="828" alt="image" src="https://github.com/user-attachments/assets/b00468fc-0835-45a6-9e4a-f5ae5dd8b625" /> I found myself needing this in opencode, because when paths get long, the actual filename get truncated so the modified files list is less useful. ### How did you verify your code works? After/before: <img width="1374" height="878" alt="image" src="https://github.com/user-attachments/assets/428425c1-8438-4d5b-9319-46f351be67df" />
yindo added the pull-request label 2026-02-16 18:18:01 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#13157