Collection of emmet.io shortcuts for JetBrains editors for HAML documents.
For example, tyle this into a .haml file:
... then hit TAB, and it should turn into this:
%link(rel='stylesheet' type='text/css' href='.css')
... and place the cursor inside the href quotes for you to type in the CSS stylesheet filename.
I've symlinked the "Zen HAML.xml" file under the following paths. I'll test more as I'm able.
|Ubuntu 13.10||PyCharm 3.0x (Pro)||
|Mac OS X Mavericks||PyCharm 2.x||
|Mac OS X Mavericks||PyCharm 3.x||
|Mac OS X Mavericks||RubyMine 5.x||
|Mac OS X Mavericks||RubyMine 6.x||
If you've never looked at Live Templates in the JetBrains editors before, go into Settings > Live Templates, add a new Template Group and add a live template shortcut to that new group, then click OK to close the dialog, which should populate your respective /templates/ folder with things like "Zen HTML.xml" and "html_xml.xml" and such. At that point, symlink the "Zen HAML.xml" from where you checked out this repo to that templates folder. Restart your editor completely (changes don't auto-reload, only when the editor starts up fresh) and you'll be all set.
If you find other file locations based on OS/editor/version, please add it to this README.
- If you make edits to this Live Template within a JetBrains editor, it may remove your symlink.
- Adding this file to RubyMine wants to remove the Python and Django flags on each element. Tips to fix this are welcome. You can always "chmod 400 Zen\ HAML.xml" in the repo folder but then your editor will throw an error that the file is unwriteable (duh).
Contributions are more than welcome.