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

Add footer option to select-like prompts

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

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
62/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
静か
技術スタック
typescript
領域
cli

調査の方向性

まず、select、multiselect、groupMultiselect prompt の実装とレンダリングパスを読み、その後 autocomplete がどのようにレンダリングされるかを比較してから、含めるかどうかを決めます。完了の条件は、フッターオプションがオプション一覧の下にレンダリングされ、これらの prompt が再レンダリングされたときも一貫性が保たれることです。

索引モデルが 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

There is no way to render instructional text below the options list.

For example:

Choose packages to update

◻ package-a
◻ package-b
◻ package-c

Enter to start updating. Ctrl-c to cancel.

The current workaround is to include this text in the prompt message, but that places the instructions above the list rather than below it.

Proposal

Add a footer option to select-like prompts, initially select, multiselect, groupMultiselect, and possibly autocomplete:

const selected = await multiselect({
  message: 'Choose packages to update',
  footer: 'Enter to start updating. Ctrl-c to cancel.',
  options: [...],
})

The footer should render below the options list and update consistently as the prompt re-renders.

主要言語
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 を短くまとめたダイジェスト。