charmbracelet / charmbracelet/bubbles

textinput: indicate truncation when value exceeds width

Open
#291 0 comments 0 reactions 0 assignees View on GitHub
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

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.