fables-tales / rubyfmt

Ruby Autoformatter!
MIT License
1.08k stars 50 forks source link

editor plugin for sublime #126

Open fables-tales opened 5 years ago

toreriklinnerud commented 5 years ago

Hi @samphippen I've just written a plugin for sublime: https://github.com/toreriklinnerud/sublime-rubyfmt

If you agree I can prepare a PR so that it can be merged into this repository. It appears that this would prevent https://packagecontrol.io from assembling the extension directly from git. Instead we might need a little build script to assemble the .sublime-package and point them to that.

toreriklinnerud commented 5 years ago

I've updated the plugin to reflect that rubyfmt is expected to be located at ~/bin/rubyfmt.rb

joe-sharp commented 4 years ago

Initial Test works!:

def foo (foo,    bar)
   p      foo
  p  bar
  end

to =>

def foo(foo, bar)
  p(foo)
  p(bar)
end
joe-sharp commented 4 years ago

I tested:

I am running: macOS Mojave 10.14.6 Sublime Text 3.2.2 Build 3211

All tests passed so far. I am open to further testing suggestions. 😄

joe-sharp commented 4 years ago

Filed https://github.com/toreriklinnerud/sublime-rubyfmt/issues/1 for some documentation issues.

fables-tales commented 4 years ago

@joe-sharp could you provide a pull request that contains instructions for how to set up sublime to the readme?