8000 Align the names of jetdb schema and jetdb prop by their width in a terminal by dominion525 · Pull Request #113 · dominion525/jetdb · GitHub
[go: up one dir, main page]

Skip to content

Align the names of jetdb schema and jetdb prop by their width in a terminal - #113

Merged
dominion525 merged 1 commit into
mainfrom
fix/schema-wide-chars
Oct 22, 2026
Merged

dominion525 merged 1 commit into
mainfrom
fix/schema-wide-chars

Conversation

@dominion525
Copy link
Copy Markdown
Owner

Summary

  • jetdb schema measured the width of names in bytes of UTF-8 and filled them by characters, so a name of wide characters, such as a Japanese column name, was followed by too many spaces and the columns after it did not line up
  • Add unicode-width to jetdb-cli and padded, which fills a string with spaces up to a width in columns of a terminal, a wide character taking two
  • Use it for the names of columns, types, indexes, index columns and relationships of schema, and for the property names of prop; the output of names in ASCII stays the same

🤖 Generated with Claude Code

…rminal

- The width was measured in bytes of UTF-8 and filled by characters, so a name of wide characters, such as the Japanese column names of japaneseTestV1997.mdb, was followed by too many spaces
- Add unicode-width to jetdb-cli and padded, which fills a string with spaces up to a width in columns, a wide character taking two
- Use it for the names of columns, types, indexes, index columns and relationships of schema, and for the property names of prop

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@dominion525
dominion525 merged commit b3729c0 into main Oct 22, 2026
10 checks passed
@dominion525
dominion525 deleted the fix/schema-wide-chars branch October 22, 2026 10:23
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

0