Posts Tagged ‘patch’

Fix Rails Hotkeys underscore limitation

Friday, November 23rd, 2007

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