Skip to content

Instantly share code, notes, and snippets.

mattst

Block or report user

Report or block mattst

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Option_1_CopyAndCutLine.py
import sublime, sublime_plugin
class CopyLine():
"""
A parent class for the CopyLineCommand and CutLineCommand classes.
"""
def copy_line(self, **kwargs):
"""
Copies the cursor line, or all the lines which a multi-line selection
@mattst
mattst / Sublime_Text_3114_Syntaxes_List
Created Jun 26, 2016
A list of all the syntaxes from Sublime Text v3114
View Sublime_Text_3114_Syntaxes_List
A list of all the syntaxes from Sublime Text v3114:
Packages/ActionScript/ActionScript.sublime-syntax
Packages/AppleScript/AppleScript.sublime-syntax
Packages/ASP/ASP.sublime-syntax
Packages/ASP/HTML-ASP.sublime-syntax
Packages/Batch File/Batch File.sublime-syntax
Packages/C#/Build.sublime-syntax
Packages/C#/C#.sublime-syntax
Packages/C++/C.sublime-syntax
View sort_view_items_PEP8.py
def sort_view_items(self):
cs = self.settings.case_sensitive
if self.settings.sort_by_file_name:
self.view_items.sort(key = lambda vi: (vi.name if cs else vi.name.lower(), vi.group, vi.tab))
elif self.settings.sort_by_folder:
self.view_items.sort(key = lambda vi: (vi.folder, vi.name if cs else vi.name.lower()))
@mattst
mattst / predawn-DEV.sublime-theme
Last active Aug 12, 2016
Example customization file for the Sublime Text 3 Predawn theme
View predawn-DEV.sublime-theme
//
// Modifications to theme: predawn-DEV.sublime-theme
// Location: Packages/User/predawn-DEV.sublime-theme
// See: Theme Customisation @ https://goo.gl/dTkjuX
//
// Note that font sizes can be fractions, e.g. 11.5
//
[
View Stan Made.tmTheme
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<!-- My modifications to the Boxy Tomorrow.tmTheme colour scheme. -->
<plist version="1.0">
<dict>
<key>name</key>
<string>Stan Made</string>
<key>colorSpaceName</key>
@mattst
mattst / Boxy Tomorrow.sublime-theme
Last active Sep 7, 2016
Packages/User/Boxy Tomorrow.sublime-theme
View Boxy Tomorrow.sublime-theme
//
// Modifications to theme: Boxy Tomorrow.sublime-theme
// Location: Packages/User/Boxy Tomorrow.sublime-theme
//
// The settings below override the theme and its settings
// and will be the last values loaded by Sublime Text.
//
// Note that font sizes can be fractions, e.g. 11.5.
//
@mattst
mattst / QuickPanelBugDemo.py
Last active Sep 11, 2016
A Sublime Text plugin to demonstrate the quick panel width/margin/padding bug
View QuickPanelBugDemo.py
#
# ST Command: quick_panel_bug_demo
#
# Run from the console with the command:
# window.run_command("quick_panel_bug_demo")
#
# Or assign it to a key binding using:
# { "keys": ["ctrl+whatever"], "command": "quick_panel_bug_demo" }
#
@mattst
mattst / Boxy Tomorrow.sublime-theme
Created Sep 20, 2016
Boxy Tomorrow.sublime-theme with theme_accent_numix entries added
View Boxy Tomorrow.sublime-theme
// > BOXY TOMORROW
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Definitely, your next theme for Sublime Text 3
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[
//
// >> Autocomplete
// ===========================================================================
// Autocomplete settings and behavior
@mattst
mattst / Git Commit Guidelines.md
Last active Sep 29, 2016
Git Commit Guidelines - From AngularJS
View Git Commit Guidelines.md
@mattst
mattst / TestQuickPanel.py
Last active Nov 12, 2016
ST plugin to try to reproduce r-stein quick panel bug
View TestQuickPanel.py
# { "keys": ["ctrl+whatever"], "command": "example" },
# { "keys": ["ctrl+whatever"], "command": "example_two" }
import sublime, sublime_plugin
# *********************
# WindowCommand Version
# *********************
You can’t perform that action at this time.