Home Download Buy Blog Forum Support

git/scm status in gutter?

git/scm status in gutter?

Postby cherbst on Wed Dec 21, 2011 2:58 pm

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:

http://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?
cherbst
 
Posts: 5
Joined: Sun Dec 18, 2011 4:35 pm

Re: git/scm status in gutter?

Postby aparajita on Wed Dec 21, 2011 4:31 pm

That exact functionality can't be reproduced. An icon can be put in the gutter.
aparajita
 
Posts: 177
Joined: Sun Jul 24, 2011 10:42 pm

Re: git/scm status in gutter?

Postby cherbst on Wed Dec 21, 2011 4:54 pm

Thanks for replying, an icon that shows the line has changed would be great. Any idea if a plugin exists to do that?
cherbst
 
Posts: 5
Joined: Sun Dec 18, 2011 4:35 pm

Re: git/scm status in gutter?

Postby adzenith on Wed Dec 21, 2011 5:52 pm

This one doesn't depend on SCM status, but you could probably modify it to: viewtopic.php?f=5&t=3985
adzenith
 
Posts: 1213
Joined: Mon Oct 19, 2009 9:12 pm

Re: git/scm status in gutter?

Postby cherbst on Wed Dec 21, 2011 7:19 pm

Yes, Change Tracker + GIT is basically all I want :) If I'm not able to find something else I will attempt to base something off this, thanks
cherbst
 
Posts: 5
Joined: Sun Dec 18, 2011 4:35 pm

Re: git/scm status in gutter?

Postby tito on Thu Dec 22, 2011 6:39 pm

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.
Give APIs, let the community build the rest!
https://github.com/titoBouzout
tito
 
Posts: 851
Joined: Thu Sep 29, 2011 2:27 pm
Location: Montevideo, Uruguay

Re: git/scm status in gutter?

Postby tito on Fri Dec 23, 2011 12:23 am

Experimental implementation has been added to SideBarGit
viewtopic.php?f=5&t=3405
Give APIs, let the community build the rest!
https://github.com/titoBouzout
tito
 
Posts: 851
Joined: Thu Sep 29, 2011 2:27 pm
Location: Montevideo, Uruguay

Re: git/scm status in gutter?

Postby cherbst on Fri Dec 23, 2011 5:10 pm

Thanks Tito :) I did clone the repo, and revert to commit 6b8d1501e1d5d0ccf7e513bb673f31dc2c390445, but did not see any icons in the gutter. Any config option to set?
cherbst
 
Posts: 5
Joined: Sun Dec 18, 2011 4:35 pm

Re: git/scm status in gutter?

Postby tito on Fri Dec 23, 2011 9:33 pm

No configs it should just work.
Give APIs, let the community build the rest!
https://github.com/titoBouzout
tito
 
Posts: 851
Joined: Thu Sep 29, 2011 2:27 pm
Location: Montevideo, Uruguay


Return to Technical Support

Who is online

Users browsing this forum: No registered users and 35 guests