Custom Navigation for Backbone/Rails App

I'm doing lots of backbone/rails apps these days.  I love how RubyMine has built-in navigation icons that let you jump from a Rails controller to view and back.

Can I add my own custom icons for fast navigation in my Backbone files?  My Backbone files are organized like this:

app/
  assets/
    javascripts/
      backbone-dir/
        templates/
                  myView.jst.eco
        views/
                  myView.js.coffee
                helpers/
                  myViewHelper.js.coffee
                models/
                  myModel.js.coffee
                collections/
                  myModels.js.coffee

So ideally, when I open myView.js.coffee in an editor pane, I would see navigation icons that would jump to the template and helper files.  Also when I highlighted the model or controller statement in the view, I could use 'Ctrl-B' to jump to the right file.

And also - when I open myModel.js.coffee in an editor pane, I would see navigation icons that would jump to the collection file.

I know that I can do this type of custom navigation in Vim, but would prefer to work in the RubyMine environment.  Can I add this type of custom navigation to RubyMine myself?  Where would I find documentation and working examples to study?

Thanks, Andy

1 comment
Comment actions Permalink

Just found the RubyMine plugin 'altn8'.  It doesn't handle the 'ctrl-B' use case, or show a navigation icon.  But when you press 'alt-8' it does instant navigation, and is configurable to work with my file layout.  Thanks to the author of this plugin.

0

Please sign in to leave a comment.