Skip to content

Instantly share code, notes, and snippets.

@mattst
mattst / QuickPanelBugDemo.py
Last active September 11, 2016 13:51
A Sublime Text plugin to demonstrate the quick panel width/margin/padding bug
#
# 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 / Sublime_Text_3114_Syntaxes_List
Created June 26, 2016 10:22
A list of all the syntaxes from Sublime Text v3114
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
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