GVT-12 Draw emoji whole and at their width in rows, prompt and titles #102
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
needs-verification
question
queue
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
romaine-life/fzt-terminal!102
Loading…
Reference in a new issue
No description provided.
Delete branch "GVT-12-grapheme-rows"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Rows, the search box, the command-output panel, border titles and labels drew text one rune per column, so a skin-toned or joined emoji split into pieces and every emoji pushed the rest of its row one column right. They now draw one grapheme cluster per cell through drawClusters, each as wide as fzt v0.2.118's core.Width says, keeping match highlights and ANSI styles on their runes. The caret and the description column count columns, the search box scrolls by columns, and the key pop-up copies the faded frame through MemScreen.Cell. Nerd Font icons keep their two-cell slot in titles; rows are unchanged for them.
New tests: emoji rows draw whole with their descriptions aligned, an emoji title, and the caret moving two columns for an emoji. Both fail on main. fzt-automate's tests pass against this branch.
PR 2 of 3 for the gvoice-tui emoji palette command (fzt, fzt-terminal, gvoice-tui).
Work package: https://openproject.home.romaine.life/wp/GVT-12