feat(tui): add adaptive session tabs (#39396)

This commit is contained in:
Kit Langton 2026-07-28 17:12:07 -04:00 committed by GitHub
commit 37a1b80d5a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
19 changed files with 1485 additions and 147 deletions

View file

@ -7,3 +7,8 @@ test("truncates text from the right by terminal width", () => {
expect(Locale.truncateWidth("abcdefgh", 1)).toBe("…")
expect(Locale.truncateWidth("abcdefgh", 0)).toBe("")
})
test("takes whole graphemes within terminal width", () => {
expect(Locale.takeWidth("ab界cd", 4)).toBe("ab界")
expect(Locale.graphemes("a👨👩👧👦b")).toEqual(["a", "👨‍👩‍👧‍👦", "b"])
})