Wolfmans Howlings

A programmers Blog about Ruby, Rails and a few other issues

More JEdit macros for rails

Posted by Jim Morris Thu, 31 May 2007 20:27:00 GMT

I have been using JEdit more and more for my rails development, I have gone back and forth between it and Epsilon, however JEdit is starting to win out. I have upgraded to the latest pre version (4.3pre9).

I have modified a number of macros to do my bidding, and I dumped the Ruby Plugin because I kept running into things it did that I disliked, and it still seems a little buggy.

The best thing I did was update the ruby.xml Language mode to fully indent properly, like unindent end else rescue etc, and do this when you type those words. This is now possible with some new features in the 4.3pre9 series.

I also wrote a HAML language mode.

The plugins I currently use are...

  • Buffer Selector
  • BufferTabs
  • Common Controls
  • Console
  • CssEditor
  • CtagsSideKick
  • ErrorList
  • Highlight
  • Info Viewer
  • Latest Version
  • Log Viewer
  • MacroManager
  • OpenIt
  • Project Viewer
  • QuickNotepad
  • RecentBufferSwitcher
  • SideKick
  • SuperAbbrevs
  • SwitchBuffer
  • Tags
  • TextTools
  • XercesPlugin

The macros I have downloaded, modified or written to help with rails development are...

  • Expand_Hash.bsh - My macro to expand # to #{} when in a string
  • Go_to_Ruby_method_v0.5.bsh - Downloaded from the macromanager
  • Open_Related_File.bsh - Downloaded from the macromanager
  • Search_Ruby_documentation - A modified version of the one I downloaded, modified to use qri, and select from a list if multiple hits
  • Run_Test_Case.bsh - My macro to run a specific test case or specification. Bind it to a key (I use Shift-F11), put the cursor in a test case or specification and type the shortcut, and that specific test case will run, the results going to the console plugin.
  • Select_Super_Abbrevs.bsh - My macro to select from a list of matching SupperAbbrevs
  • Find_Next_Selected.bsh - Downloaded from the macromanager

I have linked the ones I have written or modified so you can download them if you like.

Read more...

Posted in ,  | Tags , , ,  | 4 comments | no trackbacks