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 is a modified version of the Default/font.py file that ships with | |
# sublime, which includes versions of the increase and decrease font size | |
# commands that limit the size the font can be at each extreme. | |
# This includes an event listener that catches any attempt to use the | |
# "standard" font commands and rewrites the command to use these ones instead. |
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, sublime_plugin | |
import os, sys, codecs | |
import thread | |
import subprocess | |
import functools | |
import time | |
# This is the exec.py file taken from the Default package in Sublime Text 2.0.2 | |
# which has been modified to use incremental decoding of build system output | |
# the way it's done in Sublime Text 3. |
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 | |
def fold(view): | |
view.run_command("fold_by_level", {"level": 2}) | |
def plugin_loaded(): | |
for window in sublime.windows(): | |
for view in window.views(): | |
fold(view) |
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
[ | |
{ | |
"caption": "BufferList: Show Buffers", | |
"command": "show_buffers", | |
"args": { | |
"give_focus": true | |
} | |
} | |
] |
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
[ | |
// Use our own buzzword lorem ipsum generator. It generates buzzword lorem | |
// using a rolling stock of 5 paragraphs and lets you generate multiple | |
// items at once. | |
{ | |
"keys": ["tab"], | |
"command": "buzzword_ipsum", | |
"context": [ | |
{ "key": "selection_empty", "operator": "equal", "operand": "true", "match_all": true }, | |
{ "key": "preceding_text", "operator": "regex_match", "operand": "^.*lorem\\d*$", "match_all": true }, |
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
sublime | |
------- | |
sublime.version() | |
sublime.platform() | |
sublime.arch() | |
sublime.channel() | |
sublime.executable_path() | |
sublime.executable_hash() | |
sublime.packages_path() | |
sublime.installed_packages_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
{ | |
"target": "buffered_exec", | |
"cancel": {"kill": true}, | |
"shell_cmd": "python -u \"$file\"", | |
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)", | |
"selector": "source.python", | |
"env": {"PYTHONIOENCODING": "utf-8"}, |
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
[ | |
// Use our own buzzword lorem ipsum generator. It generates buzzword lorem | |
// using a rolling stock of 5 paragraphs and lets you generate multiple | |
// items at once. | |
{ | |
"keys": ["tab"], | |
"command": "buzzword_ipsum", | |
"context": [ | |
{ "key": "selection_empty", "operator": "equal", "operand": "true", "match_all": true }, | |
{ "key": "preceding_text", "operator": "regex_match", "operand": "^.*lorem\\d*$", "match_all": true }, |
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
#!/usr/bin/env python3 | |
import os | |
import ast | |
import glob | |
import zipfile | |
# Classes that are part of the API in general; the source files contain some | |
# helper classes that are just noise | |
_classes = [ | |
# From the sublime module |
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": "makefile_build", | |
"cancel": {"kill": true}, | |
"shell_cmd": "make -f \\${selected_makefile}", | |
"file_regex": "^(..[^:\n]*):([0-9]+):?([0-9]+)?:? (.*)$", | |
"working_dir": "\\${selected_makefile_path}", | |
"selector": "source.makefile", | |
"syntax": "Packages/Makefile/Make Output.sublime-syntax", |
OlderNewer