Fix Rails Hotkeys underscore limitation

I’m using the Rails Hotkeys plugin for a moment in gedit. There is a small bug, a bit painful : if you’re editing a file customer_report.rb, Rails Hotkeys uses only customer as basename to open related file. So you’ll open customer.rb and not customer_report_test.rb :-(

Here is a small patch to fix Rails Hotkeys underscore limitation. The basename is now computed by removing only _controller, _test or _controller_test to the file basename.

If needed, the two lines to install :

cd ~/.gnome2/gedit/plugins/rails_hotkeys
patch < 2007-11-23-rails_hotkeys_underscore_limitation.patch

Tags: , , ,

One Response to “Fix Rails Hotkeys underscore limitation”

  1. Nando Vieira Says:

    Thanks for the patch. I committed it just know as the revision 41. Any problem, let me know! ;)

Leave a Reply