Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

adding default windows key binding

update README to include windows key binding
adding windows filepath conversion to beautifier.rb
  • Loading branch information...
commit db448d725713045b9bc38b1f2e6c33886d01661f 1 parent 4f826dc
@justinramel justinramel authored
View
3  Default (Windows).sublime-keymap
@@ -0,0 +1,3 @@
+[
+ { "keys": ["ctrl+alt+k"], "command": "beautify_ruby" }
+]
View
2  README.md
@@ -48,7 +48,7 @@ I made very little modification to get it to work with a Sublime Text 2 plugin.
### Key Binding
```
- ctrl + cmd + k
+ ctrl + cmd + k on OS X, or ctrl + shift + k on Windows
```
If your file turns blank you can configure your ruby interpreter under Preferences -> Package Settings -> BeautifiRuby -> Settings Default
View
1  ruby/beautifier.rb
@@ -154,6 +154,7 @@ def beautifyRuby(contents)
tab_or_space = ARGV.first
path = ARGV.last
+path.gsub!("\\", "/") if RUBY_PLATFORM =~ /mswin/
contents = IO.read(path)
if tab_or_space == 'space'
Please sign in to comment.
Something went wrong with that request. Please try again.