Sublime Forum

Setting priority for gutter icons?

#1

I’m using SublimeXDebug and GitGutter, among others, but I can’t see when I’ve set a breakpoint on a line of code that’s not committed, because the GitGutter gutter icon overwrites the SublimeXDebug one.

Is there a way in ST2 for the user to specify which icon should have priority? In this particular case, I’d want a breakpoint to show above everything else.

(Ideally there’d be a user-configurable way to specify multiple columns of gutter icons, so GitGutter and BracketHighlighter could share a column, with SublimeXDebug having a separate column to show breakpoints. But that would definitely have to be something for ST3 :slight_smile:

0 Likes

#2

+1

0 Likes

#3

Huuuuuge!

I would rather know there is a Linter error than a modified line in git. right now… I just basically don’t see any linter errors for the code I’m working on… which is rather unfortunate

0 Likes

#4

Ticket about this on github

0 Likes

#5

Can we at least have the highest priority for the Bookmarks icons? Currently it’s impossible to work both with the Bookmarks feature and GitGutter enabled at the same time which is a real bummer :disappointed_relieved:

0 Likes

#6

If it is really only about bookmarks and GitGutter you don’t need any changes, because GitGutter already can handle this. Just add "bookmarks" to the protected_regions. I made a PR https://github.com/jisaacks/GitGutter/pull/303, so GitGutter will stop overwritting bookmarks soon.

0 Likes

#7

I’ve added "bookmarks" to User’s GitGutter.sublime-settings and it seems to be working for modified and deleted lines only. For inserted lines GitGutter’s icons take precedence.

0 Likes

#8

GitGutter only seems to protect the region added at the start of the line. I have added an additional PR to adjust that https://github.com/jisaacks/GitGutter/pull/304

0 Likes