charmbracelet / charmbracelet/bubbles
textinput: indicate truncation when value exceeds width
Open
- Dominant language
- Go
- Stars
- 8.9k
- Forks
- 457
- Avg merge
- 1d 18h
- Merged PRs (30d)
- 5
Description
Currently, it is not possible to tell whether a textinput's value was truncated:
```
// is actually: abcdefghijklmnopqrstuvwxyz
Letters: abcdef
```
A truncation indicator in the unfocused view would be very useful here:
```
// when focused: do not show ellipses
Letters: abcde█
// when blurred:
// cursor at the beginning
Letters: abcde…
// cursor at end:
Letters: …vwxyz
// cursor in the middle:
Letters: …ghij…
```
Contributor guide
Assessment
This issue has not been assessed yet.