Skip to content

Gutter customization #9561

Closed
Closed

Description

@rebornix
  • VSCode Version: 1.4.0-insiders
  • OS Version: Windows 10 x64

People asked for this feature when they request for git blame info #2248. Now I found we are relying on this as well when implementing Vim's relative line numbers.

image

See image above, you can set relative line numbers in Vim then you can easily know how many lines up or down you want to operate, instead of calculating the line numbers yourself. Currently it's not possible.

cc Kai Maetzel (@kieferrm)

Activity

  1. kieferrm commented on Jul 21, 2016

    @kieferrm
    Member

    Starting with Sandeep Somavarapu (@sandy081) as he is looking into the VIM gaps.

  2. ryu1kn commented on Aug 11, 2016

    @ryu1kn
    Contributor

    I'm very curious how or to what extent we will be able to customise a gutter.

    I've developed an extension called Annotator (https://github.com/ryu1kn/vscode-annotator) which displays git blame output along with your code. I wanted to display blame information into a gutter but as the feature is not yet available, I ended up using a html view, aligning the blame with the code on my own.

    Annotator

    By using a raw html, I could easily add some features like colouring each commit, but I also had to give up some basic features like syntax highlighting or text search; so I'm thinking to rewrite the extension if the customisable gutter become available.

  3. added
    VIM
    feature-request
    on Aug 22, 2016
  4. alexdima commented on Sep 26, 2016

    @alexdima
    Member

    editor.lineNumbers: "relative" and in the API at text editor options lineNumbers: "relative". To check with Johannes Rieken (@jrieken) if the API is good enough -- Johannes Rieken (@jrieken) pls see a8894fb and let me know if you think it is ok -- it reflects the user setting...

  5. alexdima commented on Sep 27, 2016

    @alexdima
    Member

    There is a slight change from my previous comment, the API now contains an enum and the user settings are "on" | "off" | "relative"

  6. agauniyal commented on Oct 10, 2016

    @agauniyal

    What about Ryuichi Inagaki (@ryu1kn)'s request for vscode-annotator. Any plans in upcoming releases?

  7. locked and limited conversation to collaborators on Nov 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

VIMfeature-request

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions