Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Label wrapping issues in prompts that do not handle long labels

オープン
#556 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
静か
技術スタック
typescript
領域
cli

調査の方向性

ラベルをレンダリングするプロンプトをまず監査し、特にテーブル形式の出力について、長いラベルに対する動作を比較します。折り返しがない、または一貫していないプロンプトを特定します。影響を受けるプロンプトが、視覚的な整列を崩さずに長いラベルを一貫して処理できれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Context

This came up while evaluating @clack/prompts as a potential replacement for enquirer.js, comparing it with enquirer.js and @inquirer/prompts.

Split out from: #550

Problem

Some prompts may not handle long labels consistently.

For table-style labels with fixed-width columns, automatic wrapping can break visual alignment:

typescript-eslint       8.59.3  ❯  8.59.4       @scope/project   https://typescript-eslint.io/...
vitest                  4.1.6   ❯  4.1.7        @scope/project   https://vitest.dev

If one row wraps and another does not, the columns become difficult to scan:

│ ◻ typescript-eslint       8.59.3  ❯  8.59.4       @scope/project
│  https://typescript-eslint.io/packages/typescript-eslint
│ ◻ vitest                  4.1.6   ❯  4.1.7        @scope/project   https://vitest.dev

Proposal

Audit prompts that render labels and open/fix bugs for any prompt that does not already handle long labels correctly.

Possible solutions could include:

  • Consistent wrapping behavior across prompt types
  • A wrap: false option
  • A maxLabelWidth option
  • Better support for rendering secondary information separately, such as through hint

Notes

The maintainer noted that most prompts already handle wrapping, so this issue should focus only on prompts where wrapping is currently missing or inconsistent.

主要言語
TypeScript
スター
8.1k
フォーク
218
平均マージ
1日 23時間
マージ済み PR(30日)
6

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

bombshell-dev/clack のほかの issue

bombshell-dev/clack の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。