gkz / grasp

JavaScript structural search, replace, and refactor
http://graspjs.com
MIT License
1.28k stars 33 forks source link

SublimeText plugin #1

Closed janhancic closed 10 years ago

janhancic commented 11 years ago

Any plans to create a ST (preferably 3) plugin for this? I'd do it myself but I don't know Python at all, let alone how to write a plugin for sublime :)

gkz commented 11 years ago

I use vi and am unfamiliar with ST, but if someone else could make a plugin that would be great!

joneshf commented 11 years ago

Here you go. You can install it with package control: https://sublime.wbond.net/packages/Grasp. It's not feature complete, but it at least searches. Feel free to contribute/raise issues/etc.

janhancic commented 11 years ago

Amazing! You sir are a gentleman and a scholar!

bwinton commented 10 years ago

To get it working in Sublime Text 3, I found I need to change path.join to path.resolve in grasp's index.js, and remove the , shell=True from the plugin's grasp.py. (And add a setenv PATH … line to my /etc/launchd.conf. Oh, OS X.)

joneshf commented 10 years ago

@bwinton please open an issue here: https://github.com/joneshf/sublime-grasp

This issue can probably be closed.