gornostal / Modific

Highlight lines changed since the last commit (supports Git, SVN, Bazaar, Mercurial and TFS) / ST2(3) plugin
614 stars 44 forks source link

Change gutter marks priority #66

Closed wujekbogdan closed 10 years ago

wujekbogdan commented 10 years ago

Hi,

Is is possible to change gutter marks priority? I use Modific together with SublimeLinter. SublimeLinter marks are more important to me than Modifics' ones, but icons drawn by Modific "has higher priority". So if SublimeText have to choose which one to draw it choses Modific gutter marks.

gornostal commented 10 years ago

My understanding is that Sublime runs all plugins in some order and Modific gets to be after SublimeLinter in that order. Unfortunately, I don't know how to change that order and I didn't see anything in the API that would help to resolve your problem.

Have you tried to reinstall SublimeLinter? Maybe that will do the trick.

gornostal commented 10 years ago

BTW, I also use SublimeLinter along with Modific. But I configured the first one to draw outlines instead of gutter marks. I know, it can look messy, but I'm going fix linting errors anyway.

wujekbogdan commented 10 years ago

Thanks for the response,

I tried to re-install SublimeLinter, but it didn't solve the problem, so the priority must depend on something else than plugins installation order.

I've just disabled outlines, because - as you said - they look messy :) But maybe I just need to get used to them.

I've also posted a report on the SublimeLinter issues tracker. Maybe they will be able to find a solution: https://github.com/SublimeLinter/SublimeLinter3/issues/91

gornostal commented 10 years ago

You know, now I think it has nothing to do with the order in which plugins are initialized. I think that's because of async tasks that Modific (like git diff) and SublimeLinter (jshint command) runs. The slower command - the better chance to be the last one who draws on the gutter :)