dmarcotte/idea-handlebars — pull request #59 by MarcusDalgren (2013-03-31 01:43:54+00:00)
Title: Implementation of Line Marker for file navigation

This adds a line marker provider which reads partial staches like {{> test}}
and will try to find a file that matches. If it does the line gets a
mustache in the gutter that when clicked either leads to the file or lists
possible matches.

I just implemented this for my plugin and finally saw my chance to give back. I'm not sure how much this feature is used in your case but it's been frequently requested in my plugin so I ported it to your plugin as well.

I'm making a couple of assumptions that I'm not sure about. Namely
* The file ending should match the file ending of the current file
* The file search searches the whole project for a file match
I don't know how Mustache handles where to look for partials so if it only searches certain folders/sub folders then this might need some reworking. Also figuring out the file ending is right now a major PHPism (PHP MAD REPRESENT!).

The only method I found for getting the file extension was FileType.getDefaultExtension() and that will in your case return "handlebars;hbs;mustache" which is pretty useless in this case. To solve this I end up splitting the full file name via getName() which feels like a very PHP way of doing things and not really the right way. However I often find the classes I'm reading through lacking expected method (like why only Marker.precede and not Marker.wrap?).

Anyway let me know what you think. I'm ready to change/fix/whatever you need in this.