Skip to content

Commit 46b7a36

Browse files
First commit
0 parents  commit 46b7a36

File tree

5 files changed

+91
-0
lines changed

5 files changed

+91
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.DS_Store

README.md

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# Sublime Angular Material snippets
2+
3+
A Sublime Text 2/3 snippet to generate Angular Material snippets for <md-button>, <md-input>, <md-icon>, etc
4+
5+
Work in progress here. Collaborators are welcome to add snippets for directives!
6+
7+
8+
## Install
9+
10+
### Option 1: Manual
11+
12+
Copy the files to your Packages directory.
13+
14+
### Option 2: Package Control
15+
16+
In the command pallette (Cmd-Shift+P on Mac) type 'Install' then press enter to see a list of packages. Search for 'AngularMaterial' then press enter to install.
17+
18+
## Usage
19+
20+
Start typing `<md` in html files and the autocomplete window opens.
21+
22+
##Snippets
23+
24+
TODO build support for these snipperts
25+
26+
- md-autocomplete
27+
- md-button (DONE)
28+
- md-card
29+
- md-checkbox
30+
- md-chip
31+
- md-chip-remove
32+
- md-chips
33+
- md-contact-chips
34+
- md-content
35+
- md-divider
36+
- md-grid-list
37+
- md-grid-tile
38+
- md-highlight-text
39+
- md-icon
40+
- md-input
41+
- md-input-container
42+
- md-list
43+
- md-list-item
44+
- md-progress-circular
45+
- md-progress-linear
46+
- md-radio-button
47+
- md-radio-group
48+
- md-select
49+
- md-sidenav
50+
- md-sidenav-focus
51+
- md-slider
52+
- md-subheader
53+
- md-swipe-left
54+
- md-swipe-right
55+
- md-switch
56+
- md-tab
57+
- md-tabs
58+
- md-toolbar
59+
- md-tooltip
60+
61+
## License
62+
63+
[MIT Licensed](http://sloria.mit-license.org/).

directives/md-button.sublime-snippet

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<snippet>
2+
<content><![CDATA[<md-button href="http://google.com">$1</md-button>]]></content>
3+
<tabTrigger>md-button</tabTrigger>
4+
<description>Angular Material - button directive with optional ink ripples (default enabled).</description>
5+
<scope>text.html</scope>
6+
</snippet>

messages.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"install": "messages/install.txt"
3+
}

messages/install.txt

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
============================================================
2+
Thank you for installing Angular Material Snippets
3+
============================================================
4+
5+
Angular Material snippets is a work in progress.
6+
Just a few directives are supported.
7+
8+
Collaborators are urged to ccontribute. To do so:
9+
1. Fork this repo
10+
https://github.com/devotis/sublime-angular-material-snippets
11+
2. Add your contribution and
12+
3. Make a pull request.
13+
14+
This package is compatible with both Sublime
15+
Text versions 2 & 3.
16+
17+
Documentation, examples & issue filing can be found here:
18+
https://github.com/devotis/sublime-angular-material-snippets

0 commit comments

Comments
 (0)