gitui-org / gitui-org/gitui

Refactor text overflow solution

Open
#2,364 0 comments 0 reactions 0 assignees View on GitHub
feature-request
Dominant language
Rust
Stars
22.5k
Forks
773
PR merge metrics
No merged PRs in 30d

Description

**Is your feature request related to a problem? Please describe.**
At different places inside the source code it is necessary to render text that is overflowing the width by shortening it and displaying three dots '...' at the end/start instead of the full text.

This code is duplicated and the refactoring should provide a centralized way to handle this without duplicating code.

**Additional context**
Caught attention in PR #2350 for issue #2172

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.