vimdeck 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/VERSION +1 -1
- data/bin/vimdeck +5 -0
- data/lib/templates/script.vim.erb +10 -0
- data/lib/vimdeck.rb +4 -4
- data/presentation/script.vim +4 -0
- data/presentation/slide004.md +2 -0
- data/presentation/slide020.md +95 -0
- data/presentation/slide021.md +95 -0
- data/presentation/slide022.md +87 -0
- metadata +4 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NzYyMWI3NDI3ZTdlNDgwZGNiZjFmMzBiNWU4MmQ3MzNmMmU1ZjQ1Mw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
M2Y4MzExOGNlMzBjMmY1ZjcwN2RlZTNiOTExMGM1MTU3MzAzNWQxNA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YzRlOGYzMmM4NjQ4YTQ4M2M4MDYyODY3ODczOGQxNzY3NDU3YzExNTExZTdj
|
10
|
+
YzZhZTJmMThjMTE5NDUwZWE1YTFlMzliMTk1NjdlZWM2ODc2NWQ5OTU4NzY3
|
11
|
+
NjhiNTU2YzlhN2YwMWI5M2E5ZTJjZGQ4NjA2YzgwZGM5Y2FkMDI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NzhmN2E2Y2UwZmQzMTYyYjE3ZmZjOTNkMTZkYzkxNDNjMDBjZDM2ODBkNmI2
|
14
|
+
Mzk4NjlmOTA3NTVhMGIzZTI3N2Y2NmMxNTMyMTgxZGY5YTM4ZTYxMTE4NzI4
|
15
|
+
NzI1ZjZmNzY2MDgwYTc0ZGYyMGU5NTFmODBjZTlkOTI1NTdjM2U=
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.3
|
data/bin/vimdeck
CHANGED
@@ -9,6 +9,7 @@
|
|
9
9
|
#>
|
10
10
|
#> Options:
|
11
11
|
#>
|
12
|
+
#> --mouse, -m mouse support for navigating slides
|
12
13
|
#> --no-indent, -I skip indentation
|
13
14
|
#> --no-ascii, -A skip ascii headers
|
14
15
|
#> --header-font, -h specify header font (http://www.figlet.org/fontdb.cgi)
|
@@ -49,6 +50,10 @@ opt_parser = OptionParser.new do |opt|
|
|
49
50
|
opt.on("-h", "--header-font STRING", String) do |opt|
|
50
51
|
options[:header_font] = opt
|
51
52
|
end
|
53
|
+
|
54
|
+
opt.on("-m", "--mouse") do
|
55
|
+
options[:mouse_enabled] = true
|
56
|
+
end
|
52
57
|
end
|
53
58
|
|
54
59
|
opt_parser.parse!
|
@@ -2,10 +2,20 @@ set nonumber
|
|
2
2
|
set hidden
|
3
3
|
noremap <PageUp> :bp<CR>
|
4
4
|
noremap <Left> :bp<CR>
|
5
|
+
<% if @options[:mouse_enabled] %>
|
6
|
+
noremap <RightMouse> :bp<CR>
|
7
|
+
<% end %>
|
5
8
|
noremap <PageDown> :bn<CR>
|
6
9
|
noremap <Right> :bn<CR>
|
10
|
+
<% if @options[:mouse_enabled] %>
|
11
|
+
noremap <LeftMouse> :bn<CR>
|
12
|
+
<% end %>
|
7
13
|
noremap Q :q<CR>
|
8
14
|
|
15
|
+
<% if @options[:mouse_enabled] %>
|
16
|
+
set mouse=a
|
17
|
+
<% end %>
|
18
|
+
|
9
19
|
<% @buffers.each do |buffer| %>
|
10
20
|
b <%= buffer[:num] %>
|
11
21
|
<% if buffer[:code] %>
|
data/lib/vimdeck.rb
CHANGED
@@ -78,9 +78,9 @@ module Vimdeck
|
|
78
78
|
|
79
79
|
def list(content, type)
|
80
80
|
if type == :unordered
|
81
|
-
"<!~#{content}
|
81
|
+
"<!~#{content}~!>\n\n"
|
82
82
|
else
|
83
|
-
"<@~#{content}
|
83
|
+
"<@~#{content}~@>\n\n"
|
84
84
|
end
|
85
85
|
end
|
86
86
|
|
@@ -156,7 +156,7 @@ module Vimdeck
|
|
156
156
|
slide_num = "%03d" % (i+1)
|
157
157
|
slide = renderer.render(slide)
|
158
158
|
|
159
|
-
regex = /\<\@\~(
|
159
|
+
regex = /\<\@\~(.*?)\~\@\>/m
|
160
160
|
match = slide.match(regex)
|
161
161
|
while match && match[1] && match.post_match do
|
162
162
|
list = match[1].split("\n")
|
@@ -169,7 +169,7 @@ module Vimdeck
|
|
169
169
|
match = match.post_match.match(regex)
|
170
170
|
end
|
171
171
|
|
172
|
-
regex = /\<\!\~(
|
172
|
+
regex = /\<\!\~(.*?)\~\!\>/m
|
173
173
|
match = slide.match(regex)
|
174
174
|
while match && match[1] && match.post_match do
|
175
175
|
list = match[1].split("\n")
|
data/presentation/script.vim
CHANGED
data/presentation/slide004.md
CHANGED
@@ -0,0 +1,95 @@
|
|
1
|
+
_________ ___ ____ ___ ______ ___
|
2
|
+
/ ___/ __ \/ _ \/ __/ / _ \_ __/ |_ |
|
3
|
+
/ /__/ /_/ / // / _/ / ___// / / __/
|
4
|
+
\___/\____/____/___/ /_/ /_/ /____/
|
5
|
+
|
6
|
+
(function( window, $, undefined ) {
|
7
|
+
$( '.hello' ).on( 'click', function sayHello() {
|
8
|
+
alert( 'Why, hello there!' );
|
9
|
+
});
|
10
|
+
})( window, jQuery );
|
11
|
+
|
12
|
+
<body>
|
13
|
+
<a href="#" class="hello">Hello!</a>
|
14
|
+
</body>
|
15
|
+
|
16
|
+
|
17
|
+
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
|
26
|
+
|
27
|
+
|
28
|
+
|
29
|
+
|
30
|
+
|
31
|
+
|
32
|
+
|
33
|
+
|
34
|
+
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
|
50
|
+
|
51
|
+
|
52
|
+
|
53
|
+
|
54
|
+
|
55
|
+
|
56
|
+
|
57
|
+
|
58
|
+
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
|
64
|
+
|
65
|
+
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
slide 020
|
@@ -0,0 +1,95 @@
|
|
1
|
+
_________ ___ ____ ___ ______ ___
|
2
|
+
/ ___/ __ \/ _ \/ __/ / _ \_ __/ |_ |
|
3
|
+
/ /__/ /_/ / // / _/ / ___// / / __/
|
4
|
+
\___/\____/____/___/ /_/ /_/ /____/
|
5
|
+
|
6
|
+
(function( window, $, undefined ) {
|
7
|
+
$( '.hello' ).on( 'click', function sayHello() {
|
8
|
+
alert( 'Why, hello there!' );
|
9
|
+
});
|
10
|
+
})( window, jQuery );
|
11
|
+
|
12
|
+
<body>
|
13
|
+
<a href="#" class="hello">Hello!</a>
|
14
|
+
</body>
|
15
|
+
|
16
|
+
|
17
|
+
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
|
26
|
+
|
27
|
+
|
28
|
+
|
29
|
+
|
30
|
+
|
31
|
+
|
32
|
+
|
33
|
+
|
34
|
+
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
|
50
|
+
|
51
|
+
|
52
|
+
|
53
|
+
|
54
|
+
|
55
|
+
|
56
|
+
|
57
|
+
|
58
|
+
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
|
64
|
+
|
65
|
+
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
slide 021
|
@@ -0,0 +1,87 @@
|
|
1
|
+
________ ______ ____
|
2
|
+
/_ __/ /_ ___ / ____/___ ____/ / /
|
3
|
+
/ / / __ \/ _ \ / __/ / __ \/ __ / /
|
4
|
+
/ / / / / / __/ / /___/ / / / /_/ /_/
|
5
|
+
/_/ /_/ /_/\___/ /_____/_/ /_/\__,_(_)
|
6
|
+
|
7
|
+
|
8
|
+
|
9
|
+
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
|
26
|
+
|
27
|
+
|
28
|
+
|
29
|
+
|
30
|
+
|
31
|
+
|
32
|
+
|
33
|
+
|
34
|
+
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
|
50
|
+
|
51
|
+
|
52
|
+
|
53
|
+
|
54
|
+
|
55
|
+
|
56
|
+
|
57
|
+
|
58
|
+
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
|
64
|
+
|
65
|
+
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
slide 022
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vimdeck
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tyler Benziger
|
@@ -93,6 +93,9 @@ files:
|
|
93
93
|
- presentation/slide017.md
|
94
94
|
- presentation/slide018.md
|
95
95
|
- presentation/slide019.md
|
96
|
+
- presentation/slide020.md
|
97
|
+
- presentation/slide021.md
|
98
|
+
- presentation/slide022.md
|
96
99
|
- slides.md
|
97
100
|
- vimdeck.gemspec
|
98
101
|
homepage: http://github.com/tybenz/vimdeck
|