Skip to content

Instantly share code, notes, and snippets.

@n7best
Created July 11, 2016 13:43
Show Gist options
  • Save n7best/d22ec75b345f040dbb6139a7ba149b78 to your computer and use it in GitHub Desktop.
Save n7best/d22ec75b345f040dbb6139a7ba149b78 to your computer and use it in GitHub Desktop.
sublime options
{
"Seti_blue_tab_label": true,
"Seti_no_bar_undertabs": true,
"Seti_sb_small_padding": true,
"Seti_sb_tree_small": true,
"Seti_tabs_small": true,
"always_show_minimap_viewport": true,
"bold_folder_labels": true,
"caret_extra_bottom": 3,
"caret_extra_top": 3,
"caret_extra_width": 2,
"color_scheme": "Packages/Material Theme/schemes/Material-Theme-Darker.tmTheme",
"font_face": "Hack Regular",
"font_options":
[
"gray_antialias"
],
"font_size": 12,
"highlight_line": true,
"ignored_packages":
[
"Material Theme - Appbar",
"Vintage"
],
"indent_guide_options":
[
"draw_normal",
"draw_active"
],
"line_padding_bottom": 1,
"line_padding_top": 1,
"material_theme_accent_blue": true,
"material_theme_appbar_blue": true,
"material_theme_bold_tab": true,
"material_theme_compact_sidebar": true,
"material_theme_small_tab": true,
"material_theme_tabs_autowidth": true,
"material_theme_tabs_separator": true,
"material_theme_tree_headings": true,
"overlay_scroll_bars": "enabled",
"scroll_past_end": true,
"tab_size": 2,
"theme": "Material-Theme-Darker.sublime-theme",
"translate_tabs_to_spaces": true
}
# line 390~
if errors:
lines = sorted(list(errors))
counts = [len(errors[line]) for line in lines]
count = sum(counts)
plural = 's' if count > 1 else ''
if lineno in errors:
# Sort the errors by column
line_errors = sorted(errors[lineno], key=lambda error: error[0])
line_errors = [error[1] for error in line_errors]
if plural:
# Sum the errors before the first error on this line
index = lines.index(lineno)
first = sum(counts[0:index]) + 1
if len(line_errors) > 1:
last = first + len(line_errors) - 1
status = '{}-{} of {} errors: '.format(first, last, count)
else:
status = '{} of {} errors: '.format(first, count)
else:
status = 'Error: '
status += '; '.join(line_errors)
# new stuff
view.show_popup('<style>html { background-color: #002b36; margin: 0px; color: #839496; } body { background-color: #002b36; margin: 5px; border: none; font-size: 11px; color: #839496; } div { margin: 0px; word-wrap:break-word; } a { color: #2aa198; } .error_line { color: #839496; margin: 4px 5px 8px; }</style> <div><p class="error_line">☞ ' + '</p><p class="error_line"> 🐴 '.join(line_errors) + '</p></div>',
location=-1,
max_width=400)
# end new stuff
else:
status = '%i error%s' % (count, plural)
view.set_status('sublimelinter', status)
else:
view.erase_status('sublimelinter')
# new stuff
view.hide_popup()
# end new stuff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment