manifoldco / promptui

Interactive prompt for command-line applications
https://www.manifold.co
BSD 3-Clause "New" or "Revised" License
6.07k stars 336 forks source link

Add an option to prefill the search field of select #176

Closed schrej closed 2 years ago

schrej commented 3 years ago

This PR adds an option to prefill the search field of the select prompt.

The cursor will use it as it's initial value, which causes it to be prefilled on the first switch to search mode (either by setting StartInSearchMode or by pressing /).

My use case is a cli tool that allows to prefil the value with a parameter.

CLAassistant commented 3 years ago

CLA assistant check
All committers have signed the CLA.