Giter VIP home page Giter VIP logo

vscode-gi's Introduction

vscode-icon

gi version gi installs gi ratings

Build Status

gi stands for 'gitignore'. It is an extension for generating .gitignore files from inside Visual Studio Code. gi uses the gitignore.io API to keep the list of operating systems, IDEs and programming languages updated.

Usage of gi

Install

Press Cmd+P for MacOS and Ctrl+P for Linux/Windows to launch VS Code Quick Open, paste the following command, and press enter.

ext install gi

Usage

Once you install and reload Visual Studio Code, you can run the extension by launching the Command Palette with Shift+Cmd+P for MacOS and Shift+Ctrl+P for Linux/Windows. Type in the following into the command palette.

gi

Launch gi from Command Palette

Once you press enter, gi will load a list of operating systems, IDEs, and programming lanuages. This might take a second so bear with it.

List presented by gi

You can search for (yay showQuickPick()!) the operating system, IDE, or programming lanuage you want to generate a .gitignore file for. Even though I would like you (the user) to be able to pick multiple items from the list, it is currenly not supported by vscode namespace API. I have put in a feature request here, but it seems that it has been on the todo list for quite some time now here.

gi will show the result of your actions in two places depending on importance.

  1. InformationMessage - InformationMessage is the toast that slides down and requires an action from you. High level details such as '.gitignore created' are shown here.
  2. StatusBarMessage - Status bar (View -> Toggle Status Bar) is at the bottom of the window. Low level details such as 'You picked node.' are shown here.

At any moment you can press the Escape - <esc> key to stop gi.

Todo

  • Add tests.
  • Add multi-select support to list.

Contributing

This is my very first extension for Visual Studio Code. If you find the code to be bug ridden, with mistakes or just plain old amazing, send in a word. You are welcome to comment/ask questions/post issues/send PRs on the Github page.

Note

gi uses the API exposed by gitignore.io. I made this extension as a learning experience.

I would like to thank Joe Blau for this work on gitignore.io's API and Jason Long for his help with creating the awesome icon used by gi.

vscode-gi's People

Contributors

hasit avatar pelmers avatar

Stargazers

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

Watchers

 avatar

vscode-gi's Issues

Multi select

The issue you reference in the readme relating to VSCode multi select is now flagged as done.
microsoft/vscode#238

So I assumes this means it could be possible now.

Command name switching suggestion

You could make it easier for us humans to read, like: "Create .gitignore file", "Create .gitignore file with template".
I never remember that "gi" is of its extension.

Swap "Override" and "Append" options

Hi, currently we have this list of options:

  1. Override existing .gitignore
  2. Append to gitignore

These two items should be swapped, because "Append" is used more often. So list should be:

  1. Append to gitignore
  2. Override existing .gitignore

Thank you.

Templates personalization

Sugestion

Allow the users to save a template (from the GitHub API or a personalized one) and modify it according to their needs.

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.