Giter VIP home page Giter VIP logo

add-gitignore's People

Contributors

dependabot[bot] avatar mythicaleinhorn avatar tejasq avatar wangyi7099 avatar worldsender avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

add-gitignore's Issues

How-To Select in multi-selection interface

Is your feature request related to a problem? Please describe.
It took me a while to figure this out and I was this close to open a BugReport issue:

After running add-gitignore I couldn't select any option/"environment" like displayed in the demo.gif with the green "radio-button" dot.

I tried typing macos

 $ add-gitignore
? What environments would your .gitignore to ignore? macos
❯◯ macos

but by pressing Enter I just get prompt out with

? What environments would your .gitignore to ignore?
❯◯ macos
>> You must choose at least one environment to ignore.

suddenly:

  • no green dot
  • macos argument disappered

Luckily the solution I found out is just using spacebar to activate/deactivate the selection.

Describe the solution you'd like
That being said, it would be nice to have a small note in the README.md about the space interaction and it could be also nice, for the visual learners, to display the keypress in the gif too.

Describe alternatives you've considered
There could be even a little note in the message prompted by meow (something concisive like the [Y/n] option in many CLI tools for yes and no questions)

Beside that, I don't know if it could be a big twist to allow even commas , to do the same work of the whitespace to split the input of the multi-selection interface.

Additional context

Rename script to `git-addignore`

Renaming the script to git-addignore (from add-gitignore) would allow the automatic git command discovery to kick in and let me type git addignore (notice no dash) to execute the command, aswell as (if you were to add them) help pages, etc... As a side effect, this is the standard for git utilities.

For example, git autocorrects mistyped command names. So if I'd mistakenly type git addignroe, git will propose addignore as the most similar command.

EDIT: addignore is just a proposal. As long as you keep the git- prefix, git will pick up on it, as long as the executable is in the path. Other possible names: git-ignore (sounds like an editor as a whole), or maybe git-initignore

Show current selections

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.