backing up sublime settings

This commit is contained in:
2014-04-04 11:21:58 -04:00
commit 2cbece8593
274 changed files with 23793 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
[
{
"caption": "SublimeREPL: Rails",
"command": "run_existing_window_command",
"args": {
"id": "repl_rails",
"file": "config/Rails/Main.sublime-menu"
}
}
]

View File

@@ -0,0 +1,37 @@
[
{
"id": "tools",
"children":
[{
"caption": "Rails",
"mnemonic": "r",
"id": "SublimeREPL",
"children":
[
{
"command": "repl_open",
"caption": "Rails",
"id": "repl_rails",
"external_id":"rails",
"mnemonic": "r",
"args":
{
"type": "subprocess",
"encoding": {"windows": "$win_cmd_encoding",
"linux": "utf-8",
"osx": "utf-8"},
"cmd": { "windows": ["ruby.exe", "${packages}/SublimeREPL/config/Rails/pry_repl.rb", "$editor"],
"linux": ["ruby", "${packages}/SublimeREPL/config/Rails/pry_repl.rb", "$editor"],
"osx": ["ruby", "${packages}/SublimeREPL/config/Rails/pry_repl.rb", "$editor"] },
"env": {},
"soft_quit":"\nexit\n",
"cwd":"$folder",
"cmd_postfix":"\n",
"autocomplete_server": true,
"syntax": "Packages/Ruby/Ruby.tmLanguage"
}
}
]
}]
}
]

View File

@@ -0,0 +1,71 @@
# Simply merged `pry_repl.rb` from the Ruby REPL and - https://github.com/doitian/rails-console-pry
require 'rubygems'
gem 'pry'
require 'pry'
require 'thread'
require 'json'
require 'pry-rails/version'
pry_rails_path = Gem.loaded_specs['pry-rails']
class PryInput
def readline(prompt)
$stdout.print prompt
$stdout.flush
$stdin.readline
end
end
class PryOutput
def puts(data="")
$stdout.puts(data.gsub('`', "'"))
$stdout.flush
end
end
Pry.config.input = PryInput.new()
Pry.config.output = PryOutput.new()
Pry.config.color = false
Pry.config.editor = ARGV[0]
Pry.config.auto_indent = false
Pry.config.correct_indent = false
port = ENV["SUBLIMEREPL_AC_PORT"].to_i
completer = Pry::InputCompleter.build_completion_proc(binding)
def read_netstring(s)
size = 0
while true
ch = s.recvfrom(1)[0]
if ch == ':'
break
end
size = size * 10 + ch.to_i
end
msg = ""
while size != 0
msg += s.recvfrom(size)[0]
size -= msg.length
end
ch = s.recvfrom(1)[0]
return msg
end
ENV['RAILS_ENV'] = "development"
APP_PATH = File.expand_path('config/application')
require APP_PATH
if ::Rails::VERSION::MAJOR >= 3
class ::Rails::Console
end
end
ARGV.unshift "console"
$: << File.join(pry_rails_path.full_gem_path, 'lib')
require 'pry-rails'
require 'rails/commands'