TejasQ / add-gitignore

An interactive CLI tool that adds a .gitignore to your projects.
https://www.npmjs.com/package/add-gitignore
MIT License
672 stars 14 forks source link

Show current selections #16

Open 0xTadash1 opened 3 years ago

0xTadash1 commented 3 years ago

Is your feature request related to a problem? Please describe. Remembering what is currently selected is not a problem. But I thought it would be a little more helpful if they were displayed.

Describe the solution you'd like For example, display "node, vuejs" in bold light blue just below the "What environments would your .gitignore to ignore?". If no blank line is placed beforehand, you may feel stressed because the interactive list goes down. But it's slightly unnatural.

? What environments would your .gitignore to ignore? vue
  node, vuejs
 ◯ vue
❯◉ vuejs
 ◯ adventuregamestudio
 ◯ konyvisualizer
 ◯ virtualenv
 ◯ visualstudiocode

Describe alternatives you've considered Each selection will bring up a new prompt.

? What environments would your .gitignore to ignore? nod
node

? What environments would your .gitignore to ignore? vue
vuejs

? What environments would your .gitignore to ignore? 
❯◯ 1c
 ◯ 1c-bitrix
 ◯ a-frame
 ◯ actionscript
 ◯ ada
 ◯ adobe
 ◯ advancedinstaller
 ◯ adventuregamestudio
 ◯ agda
 ◯ al
(Move up and down to reveal more choices)

In this case, the prompt should be refreshed just upon selection. However, this also means that you cannot redo a wrong choice.

TejasQ commented 2 years ago

This is great. Wanna do a PR?