Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gutter customization #9561

Closed
rebornix opened this issue Jul 21, 2016 · 5 comments
Closed

Gutter customization #9561

rebornix opened this issue Jul 21, 2016 · 5 comments
Assignees
Labels
feature-request Request for new features or functionality VIM VIM issue

Comments

@rebornix
Copy link
Member

  • 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 @kieferrm

@rebornix rebornix mentioned this issue Jul 21, 2016
4 tasks
@kieferrm
Copy link
Member

Starting with @sandy081 as he is looking into the VIM gaps.

@ryu1kn
Copy link
Contributor

ryu1kn commented Aug 11, 2016

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.

@alexdima
Copy link
Member

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

@alexdima
Copy link
Member

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

@agauniyal
Copy link

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

@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-request Request for new features or functionality VIM VIM issue
Projects
None yet
Development

No branches or pull requests

6 participants