choan / choan.tmbundle
- Source
- Commits
- Network (1)
- Issues (0)
- Downloads (0)
- Wiki (1)
- Graphs
-
Branch:
master
| name | age | message | |
|---|---|---|---|
| |
Commands/ | ||
| |
README.mdown | ||
| |
Snippets/ | ||
| |
info.plist |
README.mdown
Choan's TextMate Snippets
Building and sharing my own collection of not-belonging-to-other-bundles commands and snippets.
Tab completions for HTML
=<tab>writesname="value"pair when inside a tag.#<tab>creates anidattribute when inside a tag; adiv–or any other element–with anidattribute otherwise..<tab>creates aclassattribute when inside a tag; adiv–or any other element–with aclassattribute otherwise.lang<tab>creates bothlangandxml:langattributeshlang<tab>creates ahreflangattributesns<tab>inserts the HTML namespace
Tab completions for CSS
zero<tab>writesmargin: 0; padding: 0;cl<tab>writes aclear: somethingrule. Type l/r/b for left/right/bothfl<tab>writes afloat: somethingrule. Type l/r/n for left/right/nonemauto<tab>writesmargin: 0 auto;
Shortcuts for CSS
- When in a property value,
<ESC>switches units between em/px/%
Tab completions for JS
t<tab>writesthis.f<tab>andfunto write anonymous functions (same shortcuts as the JavaScript bundle, slightly different output)doc<tab>writesdocument$<tab>writes$()fo<tab>writes a for loop.
Shortcuts for JS
⌥:creates akey: 'value'pair

