Skip to content

next-steps: wide characters count as two columns - #72

Merged
hamzafer merged 2 commits into
mainfrom
next-steps-wide-chars
Oct 11, 2026
Merged

hamzafer merged 2 commits into
mainfrom
next-steps-wide-chars

Conversation

@hamzafer

Copy link
Copy Markdown
Owner

Follow-up to #69. With language set to Korean, Japanese or Chinese, the suggestions could land on the one-line layout even when they were too wide for the terminal, and get cut off.

fitsOnOneLine measured width with .length, which counts every character as one column. CJK, Hangul, full-width forms and emoji take two. A small displayWidth helper now counts those as two.

  • mods/next-steps/hooks/register.tsx: displayWidth, used by fitsOnOneLine
  • tests/next-steps.test.ts: Hangul width, and a list that fits in ASCII but not in Hangul
  • next-steps 0.2.0 to 0.2.1 (plugin.json, marketplace.json, site page, which still said 0.1.1)

Found by the second-opinion review on #69.

Checks

  • claude plugin validate mods/next-steps: passed
  • claude plugin test mods/next-steps: 18 pass, 0 fail

🤖 Generated with Claude Code

@hamzafer
hamzafer merged commit b0c6124 into main Oct 11, 2026
1 check passed
@hamzafer
hamzafer deleted the next-steps-wide-chars branch October 11, 2026 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant