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

Add command to toggle highlight_changes #88

Closed cheoAlejo closed 8 years ago

cheoAlejo commented 9 years ago

Problem: The gutter only draws an icon at a time, and sometimes we need to see bookmark icons, or sublimeLinter icons.

Added a command to enable/disable highlight_changes setting and auto saving.

gornostal commented 9 years ago

Thanks for the pull request. I'll merge once you commit changes mentioned here.

cheoAlejo commented 8 years ago

Thanks for the feedback. Sorry for the delay.

I eliminated the if-else as suggested, however, I haven't been able to make it work, removing/showing the regions. Im very rookie at python, that's why the quick & dirty solution that I found was to save the file (in order to show/hide the gutter icons).

settings.set(v_setting, not bool(settings.get(v_setting)))
self.view.run_command('save')
sublime.save_settings("Modific.sublime-settings")
gornostal commented 8 years ago

My turn to apologize for the delay :)

I merged it, but changed the hotkey to Ctl+Alt+h, Ctrl+Alt+l, to avoid confusing users with a new hotkey that may accidentally override one from some other plugin. So you may want to change it in the user's config.

cheoAlejo commented 8 years ago

Excellent, thanks.