Giter Club home page Giter Club logo

vim-glissues's Introduction

Vim GitLab Issue Plugin

Introduction

You want to access gitlab issues from within vim? With this plugin you can access your issues. They are listed in a new buffer, but it requires vim version 8 (json stuff), curl and grep.

Installation

When using vim-pathogen:

    cd /path/to/your/.vim/bundle
    git clone https://github.com/sirjofri/vim-glissues.git

You need to setup the following global vim variables:

  • g:gitlab_token: Your gitlab token. You get this via gitlabs web interface.
  • g:gitlab_server: The gitlab server you want to access. Defaults to https://gitlab.com. Don't use a trailing /!
  • g:gitlab_server_port: Defaults to 443
  • (g:gitlab_projectid): Your project ID. You get this via gitlabs web interface (project settings). This is automatically set via git remote!
  • (g:gitlab_alter): Should the plugin send altering requests to the server? (default true)
  • (g:gitlab_debug): Print debug messages

The project id is now extracted from the git remote -v url! So you need to run vim from somewhere inside your git repository. If you want to set your project id manually:

Optional: For example I have in my .vimrc:

    if filereadable(".settings.vim")
      source .settings.vim
    endif

This way I can put a .settings.vim in my project repository and insert project specific vim settings. For example:

    let g:gitlab_projectid="<my project id>"

As long as I start vim from the root directory of my project my settings are here.

Commands

  • :GLOpenIssues Opens your open issues in a new buffer. Provided details are issue id (used for closing and commenting to issues via commit), title, description and milestone.
  • :GLOpenIssuesExt Extended version of :GLOpenIssues, loads comments, too.
  • :GLClosedIssues and :GLClosedIssuesExt behave similar with closed issues.
  • :GLNewIssue let's you create a new issue with a formular. (:GLSave to save it)

Roadmap

  • Create new issue
  • Close issue (without commit)
  • View issue details (eg. comments, milestone)
  • Comment to issue

License

You are free to steal code from this repository. You are free to use it and to redistribute it, in portions or the full product. When using the functional code in any way you need to provide the full author information with it. If you fork this software or distribute it in a modified way you need to use a similar license. You should not blame me if your software crashes, your hardware explodes, your cat dies or anything else happens. You are free to send me a gift. I am also happy if you tell me that you like this software.

vim-glissues's People

Contributors

sirjofri avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

ijustdev

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.