charmbracelet / huh

Build terminal forms and prompts 🤷🏻‍♀️
MIT License
4.39k stars 126 forks source link

A note is only skippable if it's in a group containing more than one item, no examples of skip behavior in examples folder #468

Open hxlnt opened 1 day ago

hxlnt commented 1 day ago

Describe the bug A note is only skippable if it is in a group containing more than one item. See https://github.com/charmbracelet/huh/issues/120#issuecomment-1912405709. This is inconvenient for something like a welcome message, where the only workaround is to create a second blank note (which can impact formatting). Additionally, in https://github.com/charmbracelet/huh/pull/121, an example was created for "skip" behavior, but I'm not sure the example actually demonstrates it. A search on the word "skip" in this repo doesn't seem to bring up any examples of the feature usage.

To Reproduce Steps to reproduce the behavior:

  1. Create a form with a group containing one note that is skippable, then a second group with a select.

Expected behavior When the program is run, the second group with the select should have focus instead of the first group.

Desktop (please complete the following information):