snipcheat 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +1 -1
- data/lib/snipcheat/version.rb +1 -1
- data/lib/templates/simple.html.haml +4 -2
- data/lib/templates/styles.css +4 -1
- metadata +2 -2
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Snipcheat
|
2
2
|
|
3
|
-
Snipcheat takes a directory with sublime snippets and generates you a cheatsheet file.
|
3
|
+
Snipcheat takes a directory with sublime snippets and generates you a cheatsheet file. Take a look at [an example cheatsheet](http://tadast.github.com/sublime-rails-snippets) for [Rails](https://github.com/tadast/sublime-rails-snippets) bundle.
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
data/lib/snipcheat/version.rb
CHANGED
@@ -1,5 +1,7 @@
|
|
1
|
-
!!!
|
1
|
+
!!! 5
|
2
2
|
%head
|
3
|
+
%meta{charset: "utf-8"}
|
4
|
+
%title= "Snipcheat cheat-sheet"
|
3
5
|
%style
|
4
6
|
= css
|
5
7
|
%body
|
@@ -7,7 +9,7 @@
|
|
7
9
|
%h2.hpadded Scopes
|
8
10
|
%ul.scope_links
|
9
11
|
- snippets.map(&:scope).uniq.sort.each do |group|
|
10
|
-
%li
|
12
|
+
%li{title: group}
|
11
13
|
%a{href: "##{group.gsub(/\W/, '_')}"}= group
|
12
14
|
%small.padded
|
13
15
|
Generated with
|
data/lib/templates/styles.css
CHANGED
@@ -332,7 +332,7 @@ nav{
|
|
332
332
|
left: 0;
|
333
333
|
top: 0;
|
334
334
|
width: 252px;
|
335
|
-
|
335
|
+
height: 100%;
|
336
336
|
overflow: hidden;
|
337
337
|
overflow-y: scroll;
|
338
338
|
}
|
@@ -348,6 +348,9 @@ section{
|
|
348
348
|
.scope_links li a{
|
349
349
|
display: block;
|
350
350
|
padding: 8px;
|
351
|
+
overflow: hidden;
|
352
|
+
text-overflow: ellipsis;
|
353
|
+
white-space: nowrap;
|
351
354
|
}
|
352
355
|
.scope_links li:nth-child(odd) a{
|
353
356
|
background: #e8edff;
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: snipcheat
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-12-
|
12
|
+
date: 2012-12-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: crack
|