#241·promptui

Add an option for a default Select search?

Author: ebrannin-bwCreated Jan 14, 2026Updated Jan 14, 2026

I'm making a tool that does several query-and-choose operations in a row, and it would be nice if I could add flags that let people pre-fill the search fields for various stages.

For example, the progression is like

  • Environment
  • Service
  • Container

and I often want to operate on the same environment several times in a row, so it would be helpful if I could make it a default, but still rely on this library for the filtering. (Maybe the environment is pr-55, and I can imagine making a shell alias that prefills pr- and lets me pick the right number from a list)

I see there was a PR that should solve this, but it was closed in 2022 with no comment: #176