alignment surprise when displaying tab-completions
- Dominant language
- Haskell
- Stars
- 247
- Forks
- 82
- PR merge metrics
- No merged PRs in 30d
Description

I tried using ANSI sequences in the `display` field, but it threw off the alignment of the presented completions:

I naively tried inserting a call to `stringToGraphemes` in `Completion.makeLines` but realized that's a different sort of thing. What do you think about some way to strip out escape sequences or to provide a length directly?
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reading Completion.makeLines and the existing use of stringToGraphemes in the completion display path. Reproduce the reported alignment issue with ANSI sequences in the display field, then determine and document the chosen handling; done means tab-completion columns remain aligned when displayed text contains escape sequences.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- haskell
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100