Browse files

adding default windows key binding

update README to include windows key binding
adding windows filepath conversion to beautifier.rb
  • Loading branch information...
1 parent 4f826dc commit db448d725713045b9bc38b1f2e6c33886d01661f @justinramel justinramel committed Apr 14, 2012
Showing with 5 additions and 1 deletion.
  1. +3 −0 Default (Windows).sublime-keymap
  2. +1 −1 README.md
  3. +1 −0 ruby/beautifier.rb
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'

0 comments on commit db448d7

Please sign in to comment.