anc95 / inquirer-file-tree-selection

inquirer prompt for select a file or dir by file tree
49 stars 26 forks source link

Provide default value or press key to exit prompt #25

Open banhmisg9509 opened 3 years ago

banhmisg9509 commented 3 years ago

I have a problem when the user want to exit the file selector prompt. They don't know what button to press to exit when there aren't any valid file to select or the root folder was empty. So I think the prompt should provide a default value or callback when press key e.g ESC

anc95 commented 2 years ago

I see same issue here https://github.com/SBoudrias/Inquirer.js/issues/454, but not get merged.

As for me, this feature is better to be implemented in InquireJs but not a plugin to make consistent experience.