Permalink
Browse files

updated sublime settings

  • Loading branch information...
1 parent 6bb3a1d commit 35a067466bec22e89770602eba414c816b85e97d @iceydee committed Jan 3, 2013
Showing 394 changed files with 11,080 additions and 411 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1 +0,0 @@
-*.pyc
@@ -1,49 +0,0 @@
-{
- /**
- * Where your `node` executable lives. If this is not specified, then
- * it is expected to be on Sublime's path.
- */
- "coffee_path": ""
-
- /**
- * Where your `node` executable lives. If this is not specified, then
- * it is expected to be on Sublime's path.
- */
-, "node_path": ""
-
- /**
- * How should the plugin invoke your coffee executable.
- *
- * This can be the name of the executable if its in your path,
- * or it can be the absolute path to it (although in that case,
- * try to use the `coffee_path` setting).
- *
- * You can find where your executable is by running "which coffee"
- * in your terminal.
- *
- * Defaults:
- * Windows -> 'coffee.cmd'
- * Linux/OSX -> 'coffee'
- */
-, "coffee_executable": ""
-
-
- /**
- * Compile without a top-level function wrapper.
- */
-, "bare": false
-
-
- /**
- * Enables support for the CoffeeScriptRedux compiler. Experimental feature!
- */
-, "coffee_script_redux": false
-
-
- /**
- * The location of your CoffeeScriptRedux compiler. This option does nothing
- * if the `coffee_script_redux` flag is off.
- */
-, "redux_coffee_path": ""
-
-}
@@ -1,3 +0,0 @@
-[
- {"keys": ["ctrl+shift+c"], "command": "coffee_compile"}
-]
@@ -1,3 +0,0 @@
-[
- {"keys": ["ctrl+shift+c"], "command": "coffee_compile"}
-]
@@ -1,3 +0,0 @@
-[
- {"keys": ["ctrl+shift+c"], "command": "coffee_compile"}
-]
@@ -1,3 +0,0 @@
-[
- { "command": "coffee_compile" }
-]
@@ -1,59 +0,0 @@
-#Sublime Text 2 - Coffee Compile
-
-This package allows you to compile some or all of your CoffeeScript right from the editor.
-The JavaScript output will even have syntax highlighting!
-
-
-##Usage
-
-Just highlight some CoffeeScript code, right click and select the _Coffee Compile_ command.
-To compile the whole file, don't highlight any text.
-
-
-## Common Issues
-
-### OSError: [Errno 2] No such file or directory
-
-This is happening because the plugin can't find `coffee` (or `coffee.cmd` on Windows). To fix this,
-set the `coffee_path` to the executable's directory.
-
-If you don't know where `coffee` is, run the following in your terminal: ``dirname `which coffee` ``
-
-### env: node: No such file or directory
-
-This is happening because `coffee` can't find your `node` executable. To fix this, set the `node_path` setting
-to the executable's directory.
-
-If you don't know where `node` is, run the following in your terminal: ``dirname `which node` ``
-
-
-## Install
-
-### Package Control
-Install the _CoffeeCompile_ package from [Package Control](http://wbond.net/sublime_packages/package_control).
-
-
-### Manual
-
-Clone this repository from your Sublime packages directory:
-
-#### Linux
-```
-$ cd ~/.config/sublime-text-2/Packages
-$ git clone https://github.com/surjikal/sublime-coffee-compile "Coffee Compile"
-```
-
-#### Macosx
-```
-$ cd "~/Library/Application Support/Sublime Text 2/Packages"
-$ git clone https://github.com/surjikal/sublime-coffee-compile "Coffee Compile"
-```
-
-#### Windows (manual install untested)
-```
-$ cd "%APPDATA%\Sublime Text 2"
-$ git clone https://github.com/surjikal/sublime-coffee-compile "Coffee Compile"
-```
-
-## Screenshot
-![CoffeeCompile Screenshot](http://i.imgur.com/2J49Q.png)
@@ -1,147 +0,0 @@
-import platform
-import subprocess
-import os
-
-import sublime_plugin
-import sublime
-
-
-PLATFORM = platform.system()
-PLATFORM_IS_WINDOWS = PLATFORM is 'Windows'
-PLATFORM_IS_OSX = PLATFORM is 'Darwin'
-
-
-class CoffeeCompileCommand(sublime_plugin.TextCommand):
-
- PANEL_NAME = 'coffeecompile_output'
- DEFAULT_COFFEE_EXECUTABLE = 'coffee.cmd' if PLATFORM_IS_WINDOWS else 'coffee'
- SETTINGS = sublime.load_settings("CoffeeCompile.sublime-settings")
-
- def run(self, edit):
- text = self._get_text_to_compile()
- text = text.encode('utf8')
- window = self.view.window()
-
- javascript, error = self._compile(text, window)
- self._write_output_to_panel(window, javascript, error)
-
- def _compile(self, text, window):
- path = self._get_path()
- args = self._get_coffee_args()
- print "[CoffeeCompile] Using PATH=%s" % path
- try:
- return self._execute_command(args, text, path)
- except OSError as e:
- error_message = 'CoffeeCompile error: '
- if e.errno is 2:
- error_message += 'Could not find your "coffee" executable. '
- error_message += str(e)
-
- sublime.status_message(error_message)
- return ('', error_message)
-
- def _execute_command(self, args, text, path=None):
-
- # This is needed for Windows... not sure why. See:
- # https://github.com/surjikal/sublime-coffee-compile/issues/13
- if path and PLATFORM_IS_WINDOWS:
- os.environ['PATH'] = path
- path = None
-
- env = {'PATH': path} if path else None
- process = subprocess.Popen(args,
- stdin=subprocess.PIPE,
- stdout=subprocess.PIPE,
- stderr=subprocess.STDOUT,
- startupinfo=self._get_startupinfo(),
- env=env)
- return process.communicate(text)
-
- def _write_output_to_panel(self, window, javascript, error):
- panel = window.get_output_panel(self.PANEL_NAME)
- panel.set_syntax_file('Packages/JavaScript/JavaScript.tmLanguage')
-
- text = javascript or str(error)
- text = text.decode('utf8')
- self._write_to_panel(panel, text)
-
- window.run_command('show_panel', {'panel': 'output.%s' % self.PANEL_NAME})
-
- def _write_to_panel(self, panel, text):
- panel.set_read_only(False)
- edit = panel.begin_edit()
- panel.insert(edit, 0, text)
- panel.end_edit(edit)
- panel.sel().clear()
- panel.set_read_only(True)
-
- def _get_text_to_compile(self):
- region = self._get_selected_region() if self._editor_contains_selected_text() \
- else self._get_region_for_entire_file()
- return self.view.substr(region)
-
- def _get_region_for_entire_file(self):
- return sublime.Region(0, self.view.size())
-
- def _get_selected_region(self):
- return self.view.sel()[0]
-
- def _editor_contains_selected_text(self):
- for region in self.view.sel():
- if not region.empty():
- return True
- return False
-
- def _get_coffee_args(self):
- if self.SETTINGS.get('coffee_script_redux'):
- print "[CoffeeCompile] Using coffee script redux."
- return self._get_redux_coffee_args()
- else:
- print "[CoffeeCompile] Using vanilla compiler."
- return self._get_vanilla_coffee_args()
-
- def _get_vanilla_coffee_args(self):
- coffee_executable = self._get_coffee_executable()
-
- args = [coffee_executable, '--stdio', '--print', '--lint']
-
- if self.SETTINGS.get('bare'):
- args.append('--bare')
-
- return args
-
- def _get_redux_coffee_args(self):
- coffee_executable = self._get_coffee_executable()
- return [coffee_executable, '--js']
-
- def _get_coffee_executable(self):
- return self.SETTINGS.get('coffee_executable') or self.DEFAULT_COFFEE_EXECUTABLE
-
- def _get_startupinfo(self):
- if PLATFORM_IS_WINDOWS:
- info = subprocess.STARTUPINFO()
- info.dwFlags |= subprocess.STARTF_USESHOWWINDOW
- info.wShowWindow = subprocess.SW_HIDE
- return info
- return None
-
- def _get_path(self):
- node_path = self.SETTINGS.get('node_path')
- coffee_path = self._get_coffee_path()
-
- path = os.environ.get('PATH', '').split(':')
-
- if node_path:
- path.append(node_path)
- if coffee_path:
- path.append(coffee_path)
-
- return ":".join(path)
-
- def _get_coffee_path(self):
- coffee_path = self.SETTINGS.get('coffee_path')
-
- if self.SETTINGS.get('coffee_script_redux'):
- return self.SETTINGS.get('redux_coffee_path') or coffee_path
-
- return coffee_path
@@ -1 +0,0 @@
-{"url": "https://github.com/surjikal/sublime-coffee-compile", "version": "2012.12.13.18.59.26", "description": "Preview compiled CoffeeScript in your editor!"}
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -86,9 +86,11 @@
// Middle click paste
{ "button": "button3", "command": "paste_selection_clipboard" },
- // Switch files with buttons 4 and 5
+ // Switch files with buttons 4 and 5, as well as 8 and 9
{ "button": "button4", "modifiers": [], "command": "prev_view" },
{ "button": "button5", "modifiers": [], "command": "next_view" },
+ { "button": "button8", "modifiers": [], "command": "prev_view" },
+ { "button": "button9", "modifiers": [], "command": "next_view" },
// Change font size with ctrl+scroll wheel
{ "button": "scroll_down", "modifiers": ["ctrl"], "command": "decrease_font_size" },
@@ -1,6 +1,6 @@
[
{ "command": "clear_location", "caption": "Clear" },
- { "command": "add_directory", "caption": "Add Directory" },
+ { "command": "add_directory", "caption": "Add Folder" },
{ "command": "add_where_snippet", "args": {"snippet": "*.${0:txt}"}, "caption": "Add Include Filter" },
{ "command": "add_where_snippet", "args": {"snippet": "-*.${0:txt}"}, "caption": "Add Exclude Filter" },
{ "command": "add_where_snippet", "args": {"snippet": "<open folders>"}, "caption": "Add Open Folders" },
Binary file not shown.
@@ -43,7 +43,7 @@
"spell_check": false,
// The number of spaces a tab is considered equal to
- "tab_size": 2,
+ "tab_size": 4,
// Set to true to insert spaces when tab is pressed
"translate_tabs_to_spaces": false,
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -180,7 +180,7 @@ def append_data(self, proc, data):
try:
str = data.decode(self.encoding)
except:
- str = "[Decode error - output not " + self.encoding + "]"
+ str = "[Decode error - output not " + self.encoding + "]\n"
proc = None
# Normalize newlines, Sublime Text always uses a single \n separator
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,4 @@
+*.pyc
+*.tmLanguage.cache
+.DS_Store
+package-metadata.json
@@ -0,0 +1,28 @@
+These are the people who helped make this plugin:
+
+David Lynch <kemayo@gmail.com>
+Sheldon Els <sheldon.els@gmail.com>
+Nick Fisher <spadgos@gmail.com>
+Can Yilmaz <can@potatolondon.com>
+Stefan Buhrmester <buhrmi@gmail.com>
+Rafal Chlodnicki <rchlodnicki@opera.com>
+Daniël de Kok <me@danieldk.eu>
+David Baumgold <david@davidbaumgold.com>
+Iuri de Silvio <iurisilvio@gmail.com>
+joshuacc <josh@designpepper.com>
+misfo <tedwardo2@gmail.com>
+Kevin Smith <kevin@ilovecode.de>
+Κώστας Καραχάλιος <kostas.karachalios@me.com>
+Dominique Wahli <dominique.wahli@solvaxis.com>
+Fraser Graham <frasergraham@me.com>
+Hamid Nazari <hamidnazari@ymail.com>
+Jeff Sandberg <paradox460@gmail.com>
+Joshua Clanton <joshua.clanton@gmail.com>
+Maxim Sukharev <max@smacker.ru>
+Niklas Hambüchen <mail@nh2.me>
+Patrik Ring <me@patrikring.se>
+Scott Bowers <sbbowers@gmail.com>
+Weslly Honorato <weslly.honorato@gmail.com>
+brcooley <brcooley@cs.wm.edu>
+jdc0589 <jdc0589@gmail.com>
+Adam Venturella <aventurella@gmail.com>
Oops, something went wrong.

0 comments on commit 35a0674

Please sign in to comment.