This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"globals": | |
{ | |
"background": "color(var(blue3) l(- 3%))", | |
"line_diff_added": "var(green)", | |
"line_diff_modified": "var(blue)", | |
"line_diff_deleted": "var(red)", | |
"line_diff_width": "5", | |
"brackets_options": "glow", | |
"bracket_contents_options": "glow", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sublime | |
import sublime_plugin | |
# This requires that the RainbowBrackets package be installed: | |
# https://packagecontrol.io/packages/RainbowBrackets | |
class RainbowEventListener(sublime_plugin.EventListener): | |
# Triggers whenever a new file is finished loading | |
def on_load_async(self, view): | |
view.window().run_command( "rainbow_brackets", { "action": "make rainbow" }) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"target":"special_build", | |
"cancel": "special_cancel_build", | |
// "shell_cmd":"gcc \"${file}\" -o \"${file_path}/${file_base_name}\" && \"${file_path}/${file_base_name}\"", | |
// selector: "source.c" | |
"selector": "source.python", | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
// Toggle the most recently accessed terminus panel open and closed; will | |
// create a new default panel if there is none currently. | |
{ | |
"keys": ["alt+`"], | |
"command": "toggle_terminus_panel" | |
}, | |
// You can have multiple bindings to toggle multiple panels, but you must | |
// specify a panel_name for all of them. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sublime | |
import sublime_plugin | |
class LargeFileLoadListener(sublime_plugin.EventListener): | |
def on_load(self, view): | |
if len(view) >= 4194304 and 'Plain text' in view.settings().get('syntax'): | |
first_line = view.substr(view.line(0)) | |
syntax = sublime.find_syntax_for_file(view.file_name(), first_line) | |
view.assign_syntax(syntax.path) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"rules": [ | |
// Make the tab image for unselected unhovered tabs have the same | |
// opacity as they do on hover. | |
{ | |
"class": "tab_control", | |
"attributes": ["!selected", "!hover"], | |
"layer1.opacity": 0.7, | |
}, | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sublime | |
import sublime_plugin | |
import re | |
def plugin_loaded(): | |
""" | |
When the plugin loads, set up to monitor the user preferences changing so | |
that we can change tab colors on settings change. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sublime | |
import sublime_plugin | |
# Sample key binding: | |
# | |
# { "keys": ["ctrl+alt+shift+w"], "command": "close_others_shim" }, | |
# | |
class CloseOtherTabsCommand(sublime_plugin.WindowCommand): | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"target": "my_custom_build", | |
"cancel": {"kill": true}, | |
"shell_cmd": "echo \\${docs}" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sublime | |
import sublime_plugin | |
_types = { | |
"IDII": 7, | |
"SEDOL": 7, | |
"DATE": 7, | |
"TYPE": 1 | |
} |