RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

EditorKicker 0.1.0 released

EditorKicker 0.1.0 is released. EditorKicker is a pretty tool to invoke TextMate or Emacs and open files automatically when exception raised in your CGI or Rails script. It can reduce turn-around time of web application development. If you are Rails developer, try EditorKicker plugin for Ruby on Rails.

Comments

That is an INSANELY cool plugin. For anyone using netbeans, put into your development.rb:

ENV[“EDITOR_KICKER”]=”~/netbeans-6.1/bin/netbeans –open %s:%s”

… assuming that, like me, you have netbeans 6.1 installed in your home directory.

Then, I made a small edit to the plugin.

You’ll notice that vendor/plugins/editorkicker/lib/editor_kicker.rb on line 87 has:

command = (@command   detect_command()) % [linenum, filepath] # or [filepath, linenum]

It’s the commented “or” that I need because the order for the netbeans command line is filepath followed by linenum.

So make that line: command = (@command || detect_command()) % [filepath, linenum]

And it works.

Try ENV["EDITOR_KICKER"]="netbeans --open %2$s:%1$s".

Yes, thank you! That works well.

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in