Skip to content

Instantly share code, notes, and snippets.

@Byron
Last active August 29, 2015 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Byron/bc2cca55f283454b03fb to your computer and use it in GitHub Desktop.
Save Byron/bc2cca55f283454b03fb to your computer and use it in GitHub Desktop.
Sublime Configuration
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<!-- Generated by: TmTheme-Editor -->
<!-- ============================================ -->
<!-- app: http://tmtheme-editor.herokuapp.com -->
<!-- code: https://github.com/aziz/tmTheme-Editor -->
<plist version="1.0">
<dict>
<key>name</key>
<string>byronimo</string>
<key>settings</key>
<array>
<dict>
<key>settings</key>
<dict>
<key>background</key>
<string>#000d30</string>
<key>caret</key>
<string>#ff9147</string>
<key>foreground</key>
<string>#ffffff</string>
<key>invisibles</key>
<string>#3B3A32</string>
<key>lineHighlight</key>
<string>#0a2b61</string>
<key>selection</key>
<string>#1a1a9e</string>
<key>findHighlight</key>
<string>#FFE792</string>
<key>findHighlightForeground</key>
<string>#000000</string>
<key>selectionBorder</key>
<string>#183c66</string>
<key>activeGuide</key>
<string>#9D550FB0</string>
<key>bracketsForeground</key>
<string>#F8F8F2A5</string>
<key>bracketsOptions</key>
<string>underline</string>
<key>bracketContentsForeground</key>
<string>#F8F8F2A5</string>
<key>bracketContentsOptions</key>
<string>underline</string>
<key>tagsOptions</key>
<string>stippled_underline</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Comment</string>
<key>scope</key>
<string>comment</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#666666</string>
<key>fontStyle</key>
<string> italic</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>String</string>
<key>scope</key>
<string>string</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#455ea8</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>String Quotes</string>
<key>scope</key>
<string>punctuation.definition.string</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#ed8f00</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Number</string>
<key>scope</key>
<string>constant.numeric</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#ff0000</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Built-in constant</string>
<key>scope</key>
<string>constant.language</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#003aa8</string>
<key>fontStyle</key>
<string> bold</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>User-defined constant</string>
<key>scope</key>
<string>constant.character, constant.other</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#FFB20D</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Variable</string>
<key>scope</key>
<string>variable</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#d4783b</string>
<key>fontStyle</key>
<string></string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Keyword</string>
<key>scope</key>
<string>keyword</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#d4783b</string>
<key>fontStyle</key>
<string> bold</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Storage</string>
<key>scope</key>
<string>storage</string>
<key>settings</key>
<dict>
<key>fontStyle</key>
<string></string>
<key>foreground</key>
<string>#ffffff</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Storage type</string>
<key>scope</key>
<string>storage.type</string>
<key>settings</key>
<dict>
<key>fontStyle</key>
<string> bold</string>
<key>foreground</key>
<string>#d4783b</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Class name</string>
<key>scope</key>
<string>entity.name.class</string>
<key>settings</key>
<dict>
<key>fontStyle</key>
<string>underline</string>
<key>foreground</key>
<string>#F79D1E</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Inherited class</string>
<key>scope</key>
<string>entity.other.inherited-class</string>
<key>settings</key>
<dict>
<key>fontStyle</key>
<string>italic underline</string>
<key>foreground</key>
<string>#F79D1E</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Function name</string>
<key>scope</key>
<string>entity.name.function</string>
<key>settings</key>
<dict>
<key>fontStyle</key>
<string></string>
<key>foreground</key>
<string>#9966ff</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Function argument</string>
<key>scope</key>
<string>variable.parameter</string>
<key>settings</key>
<dict>
<key>fontStyle</key>
<string> italic</string>
<key>foreground</key>
<string>#cc6600</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Tag name</string>
<key>scope</key>
<string>entity.name.tag</string>
<key>settings</key>
<dict>
<key>fontStyle</key>
<string></string>
<key>foreground</key>
<string>#267fb5</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Tag attribute</string>
<key>scope</key>
<string>entity.other.attribute-name</string>
<key>settings</key>
<dict>
<key>fontStyle</key>
<string></string>
<key>foreground</key>
<string>#FFB20D</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Library function</string>
<key>scope</key>
<string>support.function</string>
<key>settings</key>
<dict>
<key>fontStyle</key>
<string> bold</string>
<key>foreground</key>
<string>#003aa8</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Library constant</string>
<key>scope</key>
<string>support.constant</string>
<key>settings</key>
<dict>
<key>fontStyle</key>
<string> bold</string>
<key>foreground</key>
<string>#003aa8</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Library class&#x2f;type</string>
<key>scope</key>
<string>support.type, support.class</string>
<key>settings</key>
<dict>
<key>fontStyle</key>
<string>bold</string>
<key>foreground</key>
<string>#003aa8</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Library variable</string>
<key>scope</key>
<string>support.other.variable</string>
<key>settings</key>
<dict>
<key>fontStyle</key>
<string></string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Invalid</string>
<key>scope</key>
<string>invalid</string>
<key>settings</key>
<dict>
<key>background</key>
<string>#ff0000</string>
<key>fontStyle</key>
<string></string>
<key>foreground</key>
<string>#F8F8F0</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Invalid deprecated</string>
<key>scope</key>
<string>invalid.deprecated</string>
<key>settings</key>
<dict>
<key>background</key>
<string>#8FBE00</string>
<key>foreground</key>
<string>#F8F8F0</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>JSON String</string>
<key>scope</key>
<string>meta.structure.dictionary.json string.quoted.double.json</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#CFCFC2</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>diff.header</string>
<key>scope</key>
<string>meta.diff, meta.diff.header</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#75715E</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>diff.deleted</string>
<key>scope</key>
<string>markup.deleted</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#00A8C6</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>diff.inserted</string>
<key>scope</key>
<string>markup.inserted</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#A6E22E</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>diff.changed</string>
<key>scope</key>
<string>markup.changed</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#E6DB74</string>
</dict>
</dict>
<dict>
<key>scope</key>
<string>constant.numeric.line-number.find-in-files - match</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#8FBE00A0</string>
</dict>
</dict>
<dict>
<key>scope</key>
<string>entity.name.filename.find-in-files</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#E6DB74</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>String, Symbols, Inherited Class, Markup Heading</string>
<key>scope</key>
<string>constant.other.symbol, entity.other.inherited-class, markup.heading</string>
<key>settings</key>
<dict>
<key>fontStyle</key>
<string></string>
<key>foreground</key>
<string>#FFFFFF</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Class, Support</string>
<key>scope</key>
<string>entity.name.class, entity.name.type.class</string>
<key>settings</key>
<dict>
<key>fontStyle</key>
<string></string>
<key>foreground</key>
<string>#9966FF</string>
</dict>
</dict>
</array>
<key>uuid</key>
<string>6BC5629A-D5D9-4337-9674-6355EB039ADB</string>
<key>colorSpaceName</key>
<string>sRGB</string>
<key>semanticClass</key>
<string>theme.dark.byronimo</string>
<key>author</key>
<string>Sebastian Thiel</string>
<key>comment</key>
<string>My personal theme</string>
</dict>
</plist>
[
// navigate
{ "keys": ["super+j"], "command": "move", "args": {"by": "words", "forward": false} },
{ "keys": ["super+l"], "command": "move", "args": {"by": "word_ends", "forward": true} },
{ "keys": ["ctrl+super+j"], "command": "move", "args": {"by": "characters", "forward": false} },
{ "keys": ["ctrl+super+l"], "command": "move", "args": {"by": "characters", "forward": true} },
{ "keys": ["super+i"], "command": "move", "args": {"by": "lines", "forward": false} },
{ "keys": ["super+k"], "command": "move", "args": {"by": "lines", "forward": true} },
// select
{ "keys": ["shift+super+j"], "command": "move", "args": {"by": "words", "forward": false, "extend" : true} },
{ "keys": ["shift+super+l"], "command": "move", "args": {"by": "word_ends", "forward": true, "extend" : true} },
{ "keys": ["shift+ctrl+super+j"], "command": "move", "args": {"by": "characters", "forward": false, "extend" : true} },
{ "keys": ["shift+ctrl+super+l"], "command": "move", "args": {"by": "characters", "forward": true, "extend" : true} },
{ "keys": ["shift+super+i"], "command": "move", "args": {"by": "lines", "forward": false, "extend" : true} },
{ "keys": ["shift+super+k"], "command": "move", "args": {"by": "lines", "forward": true, "extend" : true} },
// Jump and select by page
{ "keys": ["ctrl+super+i"], "command": "move", "args": {"by": "pages", "forward": false} },
{ "keys": ["ctrl+super+k"], "command": "move", "args": {"by": "pages", "forward": true} },
{ "keys": ["shift+ctrl+super+i"], "command": "move", "args": {"by": "pages", "forward": false, "extend": true} },
{ "keys": ["shift+ctrl+super+k"], "command": "move", "args": {"by": "pages", "forward": true, "extend": true} },
// Move to start and end of line
{ "keys": ["super+h"], "command": "move_to", "args": {"to": "bol", "extend": false} },
{ "keys": ["super+o"], "command": "move_to", "args": {"to": "eol", "extend": false} },
{ "keys": ["shift+super+h"], "command": "move_to", "args": {"to": "bol", "extend": true} },
{ "keys": ["shift+super+o"], "command": "move_to", "args": {"to": "eol", "extend": true} },
{ "keys": ["ctrl+super+h"], "command": "move_to", "args": {"to": "bof", "extend": false} },
{ "keys": ["ctrl+super+o"], "command": "move_to", "args": {"to": "eof", "extend": false} },
{ "keys": ["shift+ctrl+super+h"], "command": "move_to", "args": {"to": "bof", "extend": true} },
{ "keys": ["shift+ctrl+super+o"], "command": "move_to", "args": {"to": "eof", "extend": true} },
// Custom editing
{ "keys": ["ctrl+d"], "command": "find_under_expand" },
{ "keys": ["super+g"], "command": "show_overlay", "args": {"overlay": "goto", "text": ":"} },
{ "keys": ["ctrl+super+m"], "command": "toggle_minimap" },
{ "keys": ["ctrl+j"], "command": "join_lines" },
// panel handling
{ "keys": ["super+]"], "command": "next_view_in_pane" },
{ "keys": ["super+["], "command": "prev_view_in_pane" },
{ "keys": ["ctrl+super+shift+["], "command": "move_to_group", "args": { "group": 0 } },
{ "keys": ["ctrl+super+shift+]"], "command": "move_to_group", "args": { "group": 1 } },
{ "keys": ["ctrl+super+]"], "command": "indent" },
{ "keys": ["ctrl+super+["], "command": "unindent" },
{ "keys": ["shift+super+]"], "command": "next_group" },
{ "keys": ["shift+super+["], "command": "prev_group" },
{ "keys": ["ctrl+super+tab"], "command": "next_group" },
{ "keys": ["ctrl+super+shift+tab"], "command": "prev_group" },
{ "keys": ["super+d"], "command": "delete_lines" },
{ "keys": ["ctrl+shift+l"], "command": "split_selection_into_lines" },
{ "keys": ["shift+super+ctrl+a"], "command": "alignment" }
// plugins
]
{
"bold_folder_labels": true,
"caret_style": "phase",
"color_scheme": "Packages/User/byronimo.tmTheme",
"file_exclude_patterns":
[
".DS_Store",
"*.pid",
"*.pyc"
],
"find_selected_text": true,
"folder_exclude_patterns":
[
".git",
"__pycache__",
"env",
"env3"
],
"font_size": 11,
"highlight_line": true,
"highlight_modified_tabs": true,
"ignored_packages":
[
"Vintage",
"GitGutter",
"RestructuredText",
"Markdown"
],
"ignored_words":
[
"dict",
"param"
],
"reveal-on-activate": false,
"scroll_past_end": true,
"show_full_path": true,
"wide_caret": true
}
import sublime_plugin
class NextGroup(sublime_plugin.WindowCommand):
def run(self):
numGroups = self.window.num_groups()
currentGroup = self.window.active_group()
if currentGroup < numGroups - 1:
newGroup = currentGroup + 1
else:
newGroup = 0
self.window.focus_group(newGroup)
class PrevGroup(sublime_plugin.WindowCommand):
def run(self):
numGroups = self.window.num_groups()
currentGroup = self.window.active_group()
if currentGroup > 0:
newGroup = currentGroup - 1
else:
newGroup = numGroups - 1
self.window.focus_group(newGroup)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment