Hammer for Mac snippets for Sublime Text
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
LICENSE
README.md
h4m404.sublime-snippet
h4minclude.sublime-snippet
h4mjavascript.sublime-snippet
h4mjavascriptfolder.sublime-snippet
h4mpath.sublime-snippet
h4mplaceholder.sublime-snippet
h4mreload.sublime-snippet
h4mstylesheet.sublime-snippet
h4mstylesheetfolder.sublime-snippet
h4mtodocoffee.sublime-snippet
h4mtodocss.sublime-snippet
h4mtodohaml.sublime-snippet
h4mtodohtml.sublime-snippet
h4mtodojs.sublime-snippet
h4mvariable.sublime-snippet
h4mvariabledefault.sublime-snippet

README.md

Hammer for Mac snippets for Sublime Text

About

A small collection of useful Sublime Text snippets to be used with Riot's wonderful app Hammer for Mac.

Installation

Via Package Control

  1. Install Package Control
  2. Hit ⌘+⇧+P to open the Command Palette
  3. Look for Package Control: Install Package and hit
  4. Search for Hammer for Mac Snippets and hit

Manual

Navigate to your Packages directory and clone this repository:

$ git clone https://github.com/DinoPaskvan/Hammer-Snippets.git

Usage

Just type one of the triggers and hit TAB inside the editor.

Snippet Trigger Output
404 Fix h-404 <base href="/">
Automatic Reload h-rel <!-- @reload -->
HTML Include h-inc <!-- @include filename -->
Image Placeholder h-img <!-- @placeholder 300x400 Text -->
JavaScript Link (file) h-js <!-- @javascript filename -->
JavaScript Link (folder) h-jsf <!-- @javascript path/to/js/* -->
Smart Path h-pa <!-- @path filename -->
Stylesheet Link (file) h-st <!-- @stylesheet filename -->
Stylesheet Link (folder) h-stf <!-- @stylesheet path/to/css/* -->
To do h-td <!-- @todo To Do Text --> (1)
Variable h-var <!-- $name value -->
Variable (Default Value) h-vard <!-- $name [pipe] Default Value --> (2)

(1) Output varies for each language (HTML, HAML, CSS, SCSS, CoffeeScript, JavaScript). Table shows HTML output.
(2) The | character breaks the table syntax and cannot be escaped. The actual output is: <!-- $name | Default Value -->

Contributions

Feel free to fork this repository, fiddle with things and send pull requests.

License

This plugin is licensed under the MIT license.