Sublime Forum

Git/scm status in gutter?

#1

Hi, I posted this in general discussion but think I should have posted here…

Really liking Sublime for ruby dev work, just missing one thing I really like in Netbeans. Basically they had a feature that would mark a changed line as red/blue/green depending on the SCM status, like this:

netbeans.org/kb/docs/ide/git.html#viewChanges

I’m since learned vim has a similar plugin called fugitive?

Anybody know a way to get similar functionality in Sublime?

0 Likes

#2

That exact functionality can’t be reproduced. An icon can be put in the gutter.

0 Likes

#3

Thanks for replying, an icon that shows the line has changed would be great. Any idea if a plugin exists to do that?

0 Likes

#4

This one doesn’t depend on SCM status, but you could probably modify it to: Change Tracker - highlights changes

0 Likes

#5

Yes, Change Tracker + GIT is basically all I want :smile: If I’m not able to find something else I will attempt to base something off this, thanks

0 Likes

#6

I successfully added git status on gutter for my plugin SideBarGit.
But I have problems to understand correctly the diff numbers (called hunk) ex: @@ -1 +1 @@
If someone want to investigate this, and properly resolve which lines are modified/deleted/added by parsing these nums I can add it.

0 Likes

#7

Experimental implementation has been added to SideBarGit

0 Likes

#8

Thanks Tito :smile: I did clone the repo, and revert to commit 6b8d1501e1d5d0ccf7e513bb673f31dc2c390445, but did not see any icons in the gutter. Any config option to set?

0 Likes

#9

No configs it should just work.

0 Likes