vimdeck 0.1.6 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Rakefile +1 -0
- data/VERSION +1 -1
- data/bin/vimdeck +4 -0
- data/lib/vimdeck.rb +32 -7
- data/presentation/script.vim +21 -21
- data/presentation/slide001.md +10 -3
- data/presentation/slide002.md +23 -19
- data/presentation/slide003.md +6 -3
- data/presentation/slide004.md +8 -5
- data/presentation/slide005.md +9 -5
- data/presentation/slide006.md +9 -5
- data/presentation/slide007.md +9 -5
- data/presentation/slide008.md +16 -13
- data/presentation/slide009.md +16 -13
- data/presentation/slide010.md +16 -13
- data/presentation/slide011.md +16 -13
- data/presentation/slide012.md +16 -13
- data/presentation/slide013.md +16 -13
- data/presentation/slide014.md +16 -13
- data/presentation/slide015.md +5 -1
- data/slides.md +4 -4
- metadata +1 -1
data/Rakefile
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.7
|
data/bin/vimdeck
CHANGED
data/lib/vimdeck.rb
CHANGED
@@ -36,9 +36,9 @@ module Vimdeck
|
|
36
36
|
:block_html, :list_item,
|
37
37
|
|
38
38
|
# span-level calls
|
39
|
-
:autolink,
|
40
|
-
:
|
41
|
-
:
|
39
|
+
:autolink,
|
40
|
+
:underline, :raw_html,
|
41
|
+
:strikethrough,
|
42
42
|
:superscript,
|
43
43
|
|
44
44
|
# footnotes
|
@@ -52,6 +52,22 @@ module Vimdeck
|
|
52
52
|
end
|
53
53
|
end
|
54
54
|
|
55
|
+
def code_span(text)
|
56
|
+
return "`#{text}`"
|
57
|
+
end
|
58
|
+
|
59
|
+
def emphasis(text)
|
60
|
+
return "*#{text}*"
|
61
|
+
end
|
62
|
+
|
63
|
+
def double_emphasis(text)
|
64
|
+
return "**#{text}**"
|
65
|
+
end
|
66
|
+
|
67
|
+
def triple_emphasis(text)
|
68
|
+
return "***#{text}***"
|
69
|
+
end
|
70
|
+
|
55
71
|
def list(content, type)
|
56
72
|
if type == :unordered
|
57
73
|
"<!~#{content}~!>"
|
@@ -64,10 +80,19 @@ module Vimdeck
|
|
64
80
|
if !Vimdeck::Slideshow.options[:no_ascii]
|
65
81
|
case level
|
66
82
|
when 1
|
67
|
-
Vimdeck::Ascii.header(title, "large")
|
68
|
-
|
83
|
+
heading = Vimdeck::Ascii.header(title, "large")
|
84
|
+
if Vimdeck::Slideshow.options[:no_indent]
|
85
|
+
heading = " " + heading.gsub( /\n/, "\n " ) + "\n"
|
86
|
+
else
|
87
|
+
heading + "\n"
|
88
|
+
end
|
69
89
|
when 2
|
70
|
-
Vimdeck::Ascii.header(title, "small")
|
90
|
+
heading = Vimdeck::Ascii.header(title, "small")
|
91
|
+
if Vimdeck::Slideshow.options[:no_indent]
|
92
|
+
heading = " " + heading.gsub( /\n/, "\n " ) + "\n"
|
93
|
+
else
|
94
|
+
heading + "\n"
|
95
|
+
end
|
71
96
|
end
|
72
97
|
else
|
73
98
|
title + "\n\n"
|
@@ -99,7 +124,7 @@ module Vimdeck
|
|
99
124
|
end
|
100
125
|
|
101
126
|
def self.slide_padding
|
102
|
-
" "
|
127
|
+
@options[:no_indent] ? "" : " "
|
103
128
|
end
|
104
129
|
|
105
130
|
def self.script_template
|
data/presentation/script.vim
CHANGED
@@ -26,7 +26,7 @@ b 4
|
|
26
26
|
b 5
|
27
27
|
|
28
28
|
|
29
|
-
call matchadd("Comment", "\\n
|
29
|
+
call matchadd("Comment", "\\n• Second\\n• Third\\(\\_.*slide 5\\)\\@=")
|
30
30
|
|
31
31
|
|
32
32
|
b 6
|
@@ -34,79 +34,79 @@ b 6
|
|
34
34
|
|
35
35
|
call matchadd("Comment", "• First\\(\\_.*slide 6\\)\\@=")
|
36
36
|
|
37
|
-
call matchadd("Comment", "\\n
|
37
|
+
call matchadd("Comment", "\\n• Third\\(\\_.*slide 6\\)\\@=")
|
38
38
|
|
39
39
|
|
40
40
|
b 7
|
41
41
|
|
42
42
|
|
43
|
-
call matchadd("Comment", "• First\\n
|
43
|
+
call matchadd("Comment", "• First\\n• Second\\(\\_.*slide 7\\)\\@=")
|
44
44
|
|
45
45
|
|
46
46
|
b 8
|
47
47
|
|
48
|
-
|
48
|
+
6,17SyntaxInclude ruby
|
49
49
|
|
50
50
|
|
51
51
|
|
52
52
|
b 9
|
53
53
|
|
54
|
-
|
54
|
+
6,17SyntaxInclude ruby
|
55
55
|
|
56
56
|
|
57
|
-
call matchadd("Comment", "module Parts\\n
|
57
|
+
call matchadd("Comment", "module Parts\\n class foo\\n def slide\\n \"of a\"\\n end\\n\\n def can\\n highlight = \\(\\_.*slide 9\\)\\@=")
|
58
58
|
|
59
|
-
call matchadd("Comment", "\\n
|
59
|
+
call matchadd("Comment", "\\n end\\n end\\nend\\(\\_.*slide 9\\)\\@=")
|
60
60
|
|
61
61
|
|
62
62
|
b 10
|
63
63
|
|
64
|
-
|
64
|
+
6,17SyntaxInclude ruby
|
65
65
|
|
66
66
|
|
67
|
-
call matchadd("Comment", "module Parts\\n
|
67
|
+
call matchadd("Comment", "module Parts\\n class foo\\n def slide\\n \"of a\"\\n end\\n\\n def\\(\\_.*slide 10\\)\\@=")
|
68
68
|
|
69
|
-
call matchadd("Comment", "highlight = \"vimdeck\"\\n
|
69
|
+
call matchadd("Comment", "highlight = \"vimdeck\"\\n end\\n end\\nend\\(\\_.*slide 10\\)\\@=")
|
70
70
|
|
71
71
|
|
72
72
|
b 11
|
73
73
|
|
74
|
-
|
74
|
+
6,17SyntaxInclude ruby
|
75
75
|
|
76
76
|
|
77
|
-
call matchadd("Comment", "module Parts\\n
|
77
|
+
call matchadd("Comment", "module Parts\\n class foo\\n def slide\\n \"of a\"\\n end\\n\\n def can\\(\\_.*slide 11\\)\\@=")
|
78
78
|
|
79
|
-
call matchadd("Comment", "= \"vimdeck\"\\n
|
79
|
+
call matchadd("Comment", "= \"vimdeck\"\\n end\\n end\\nend\\(\\_.*slide 11\\)\\@=")
|
80
80
|
|
81
81
|
|
82
82
|
b 12
|
83
83
|
|
84
|
-
|
84
|
+
6,17SyntaxInclude ruby
|
85
85
|
|
86
86
|
|
87
87
|
call matchadd("Comment", "module\\(\\_.*slide 12\\)\\@=")
|
88
88
|
|
89
|
-
call matchadd("Comment", "class foo\\n
|
89
|
+
call matchadd("Comment", "class foo\\n def slide\\n \"of a\"\\n end\\n\\n def can\\n highlight = \"vimdeck\"\\n end\\n end\\nend\\(\\_.*slide 12\\)\\@=")
|
90
90
|
|
91
91
|
|
92
92
|
b 13
|
93
93
|
|
94
|
-
|
94
|
+
6,17SyntaxInclude ruby
|
95
95
|
|
96
96
|
|
97
|
-
call matchadd("Comment", "module Parts\\n
|
97
|
+
call matchadd("Comment", "module Parts\\n class foo\\n def slide\\(\\_.*slide 13\\)\\@=")
|
98
98
|
|
99
|
-
call matchadd("Comment", "end\\n\\n
|
99
|
+
call matchadd("Comment", "end\\n\\n def can\\n highlight = \"vimdeck\"\\n end\\n end\\nend\\(\\_.*slide 13\\)\\@=")
|
100
100
|
|
101
101
|
|
102
102
|
b 14
|
103
103
|
|
104
|
-
|
104
|
+
6,17SyntaxInclude ruby
|
105
105
|
|
106
106
|
|
107
|
-
call matchadd("Comment", "module Parts\\n
|
107
|
+
call matchadd("Comment", "module Parts\\n class foo\\n def\\(\\_.*slide 14\\)\\@=")
|
108
108
|
|
109
|
-
call matchadd("Comment", "\"of a\"\\n
|
109
|
+
call matchadd("Comment", "\"of a\"\\n end\\n\\n def can\\n highlight = \"vimdeck\"\\n end\\n end\\nend\\(\\_.*slide 14\\)\\@=")
|
110
110
|
|
111
111
|
|
112
112
|
b 15
|
data/presentation/slide001.md
CHANGED
@@ -1,6 +1,13 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
_ ________ _______ ______________ __
|
2
|
+
| | / / _/ |/ / __ \/ ____/ ____/ //_/
|
3
|
+
| | / // // /|_/ / / / / __/ / / / ,<
|
4
|
+
| |/ // // / / / /_/ / /___/ /___/ /| |
|
5
|
+
|___/___/_/ /_/_____/_____/\____/_/ |_|
|
6
|
+
|
7
|
+
___ __ _____ ____ ___ _ ______________ __ _______
|
8
|
+
/ _ \/ / / / _ \/ __/ / _ | | /| / / __/ __/ __ \/ |/ / __/
|
9
|
+
/ ___/ /_/ / , _/ _/ / __ | |/ |/ / _/_\ \/ /_/ / /|_/ / _/
|
10
|
+
/_/ \____/_/|_/___/ /_/ |_|__/|__/___/___/\____/_/ /_/___/
|
4
11
|
|
5
12
|
|
6
13
|
|
data/presentation/slide002.md
CHANGED
@@ -1,22 +1,26 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
1
|
+
_ ________ ___ ____ ____ ________ _______ __
|
2
|
+
| | / / _/ |/ / / __ \/ __ \/ ____/ //_/ ___// /
|
3
|
+
| | / // // /|_/ / / /_/ / / / / / / ,< \__ \/ /
|
4
|
+
| |/ // // / / / / _, _/ /_/ / /___/ /| |___/ /_/
|
5
|
+
|___/___/_/ /_/ /_/ |_|\____/\____/_/ |_/____(_)
|
6
|
+
|
7
|
+
+------------------------------+
|
8
|
+
| :.. |
|
9
|
+
| ~===..=+.++==:.+==+======. |
|
10
|
+
| ~oooooooo==~:..+=oooooooo~ |
|
11
|
+
| .+oo=oo=::....:=oooooo+.. |
|
12
|
+
| .=ooooo=.::::+ooooo=++. |
|
13
|
+
| .=ooooo=:+:+ooooo=+:~+. |
|
14
|
+
| ..:.=ooo=o==+ooooo=+:.::.... |
|
15
|
+
|.+::.=oooooooooooo+::.........|
|
16
|
+
| ..:ooooooooo====:.......:. |
|
17
|
+
| .ooooooooo+++:......... |
|
18
|
+
| .=ooooo==~~==.+=++==+=+. |
|
19
|
+
| .=ooo==~:.++.:=+.==+.==. |
|
20
|
+
| .=oo=:..:+=:=o=.:=+~=+. |
|
21
|
+
| .~~. ..::~:. ~..~..~ |
|
22
|
+
| .~ |
|
23
|
+
+------------------------------+
|
20
24
|
|
21
25
|
|
22
26
|
|
data/presentation/slide003.md
CHANGED
@@ -1,8 +1,11 @@
|
|
1
|
-
|
1
|
+
___ ___ ___ ___ ________ ___ ___ __ ______
|
2
|
+
/ _ \/ _ | / _ \/ _ |/ ___/ _ \/ _ | / _ \/ // / __/
|
3
|
+
/ ___/ __ |/ , _/ __ / (_ / , _/ __ |/ ___/ _ /\ \
|
4
|
+
/_/ /_/ |_/_/|_/_/ |_\___/_/|_/_/ |_/_/ /_//_/___/
|
2
5
|
|
3
|
-
|
6
|
+
This is a `paragraph` (plain text)
|
4
7
|
|
5
|
-
|
8
|
+
This is another paragraph
|
6
9
|
|
7
10
|
|
8
11
|
|
data/presentation/slide004.md
CHANGED
@@ -1,8 +1,11 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
1
|
+
_ ____ ____ ______ _______ _______ __ ______________
|
2
|
+
/ |/ / / / / |/ / _ )/ __/ _ \/ __/ _ \ / / / _/ __/_ __/
|
3
|
+
/ / /_/ / /|_/ / _ / _// , _/ _// // / / /___/ /_\ \ / /
|
4
|
+
/_/|_/\____/_/ /_/____/___/_/|_/___/____/ /____/___/___/ /_/
|
5
|
+
|
6
|
+
1. This *is* how a *numbered* list
|
7
|
+
2. Looks in **vimdeck**
|
8
|
+
3. What do ***you*** think?
|
6
9
|
|
7
10
|
|
8
11
|
|
data/presentation/slide005.md
CHANGED
@@ -1,8 +1,12 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
1
|
+
____ __ ____ __ _________________
|
2
|
+
/ __ )/ / / / / / / / ____/_ __/ ___/
|
3
|
+
/ __ / / / / / / / / __/ / / \__ \
|
4
|
+
/ /_/ / /_/ / /___/ /___/ /___ / / ___/ /
|
5
|
+
/_____/\____/_____/_____/_____/ /_/ /____/
|
6
|
+
|
7
|
+
• First
|
8
|
+
• Second
|
9
|
+
• Third
|
6
10
|
|
7
11
|
|
8
12
|
|
data/presentation/slide006.md
CHANGED
@@ -1,8 +1,12 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
1
|
+
____ __ ____ __ _________________
|
2
|
+
/ __ )/ / / / / / / / ____/_ __/ ___/
|
3
|
+
/ __ / / / / / / / / __/ / / \__ \
|
4
|
+
/ /_/ / /_/ / /___/ /___/ /___ / / ___/ /
|
5
|
+
/_____/\____/_____/_____/_____/ /_/ /____/
|
6
|
+
|
7
|
+
• First
|
8
|
+
• Second
|
9
|
+
• Third
|
6
10
|
|
7
11
|
|
8
12
|
|
data/presentation/slide007.md
CHANGED
@@ -1,8 +1,12 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
1
|
+
____ __ ____ __ _________________
|
2
|
+
/ __ )/ / / / / / / / ____/_ __/ ___/
|
3
|
+
/ __ / / / / / / / / __/ / / \__ \
|
4
|
+
/ /_/ / /_/ / /___/ /___/ /___ / / ___/ /
|
5
|
+
/_____/\____/_____/_____/_____/ /_/ /____/
|
6
|
+
|
7
|
+
• First
|
8
|
+
• Second
|
9
|
+
• Third
|
6
10
|
|
7
11
|
|
8
12
|
|
data/presentation/slide008.md
CHANGED
@@ -1,16 +1,19 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
1
|
+
_________ ___ ____
|
2
|
+
/ ___/ __ \/ _ \/ __/
|
3
|
+
/ /__/ /_/ / // / _/
|
4
|
+
\___/\____/____/___/
|
5
|
+
|
6
|
+
module Parts
|
7
|
+
class foo
|
8
|
+
def slide
|
9
|
+
"of a"
|
10
|
+
end
|
11
|
+
|
12
|
+
def can
|
13
|
+
highlight = "vimdeck"
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
14
17
|
|
15
18
|
|
16
19
|
|
data/presentation/slide009.md
CHANGED
@@ -1,16 +1,19 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
1
|
+
_________ ___ ____
|
2
|
+
/ ___/ __ \/ _ \/ __/
|
3
|
+
/ /__/ /_/ / // / _/
|
4
|
+
\___/\____/____/___/
|
5
|
+
|
6
|
+
module Parts
|
7
|
+
class foo
|
8
|
+
def slide
|
9
|
+
"of a"
|
10
|
+
end
|
11
|
+
|
12
|
+
def can
|
13
|
+
highlight = "vimdeck"
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
14
17
|
|
15
18
|
|
16
19
|
|
data/presentation/slide010.md
CHANGED
@@ -1,16 +1,19 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
1
|
+
_________ ___ ____
|
2
|
+
/ ___/ __ \/ _ \/ __/
|
3
|
+
/ /__/ /_/ / // / _/
|
4
|
+
\___/\____/____/___/
|
5
|
+
|
6
|
+
module Parts
|
7
|
+
class foo
|
8
|
+
def slide
|
9
|
+
"of a"
|
10
|
+
end
|
11
|
+
|
12
|
+
def can
|
13
|
+
highlight = "vimdeck"
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
14
17
|
|
15
18
|
|
16
19
|
|
data/presentation/slide011.md
CHANGED
@@ -1,16 +1,19 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
1
|
+
_________ ___ ____
|
2
|
+
/ ___/ __ \/ _ \/ __/
|
3
|
+
/ /__/ /_/ / // / _/
|
4
|
+
\___/\____/____/___/
|
5
|
+
|
6
|
+
module Parts
|
7
|
+
class foo
|
8
|
+
def slide
|
9
|
+
"of a"
|
10
|
+
end
|
11
|
+
|
12
|
+
def can
|
13
|
+
highlight = "vimdeck"
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
14
17
|
|
15
18
|
|
16
19
|
|
data/presentation/slide012.md
CHANGED
@@ -1,16 +1,19 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
1
|
+
_________ ___ ____
|
2
|
+
/ ___/ __ \/ _ \/ __/
|
3
|
+
/ /__/ /_/ / // / _/
|
4
|
+
\___/\____/____/___/
|
5
|
+
|
6
|
+
module Parts
|
7
|
+
class foo
|
8
|
+
def slide
|
9
|
+
"of a"
|
10
|
+
end
|
11
|
+
|
12
|
+
def can
|
13
|
+
highlight = "vimdeck"
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
14
17
|
|
15
18
|
|
16
19
|
|
data/presentation/slide013.md
CHANGED
@@ -1,16 +1,19 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
1
|
+
_________ ___ ____
|
2
|
+
/ ___/ __ \/ _ \/ __/
|
3
|
+
/ /__/ /_/ / // / _/
|
4
|
+
\___/\____/____/___/
|
5
|
+
|
6
|
+
module Parts
|
7
|
+
class foo
|
8
|
+
def slide
|
9
|
+
"of a"
|
10
|
+
end
|
11
|
+
|
12
|
+
def can
|
13
|
+
highlight = "vimdeck"
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
14
17
|
|
15
18
|
|
16
19
|
|
data/presentation/slide014.md
CHANGED
@@ -1,16 +1,19 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
1
|
+
_________ ___ ____
|
2
|
+
/ ___/ __ \/ _ \/ __/
|
3
|
+
/ /__/ /_/ / // / _/
|
4
|
+
\___/\____/____/___/
|
5
|
+
|
6
|
+
module Parts
|
7
|
+
class foo
|
8
|
+
def slide
|
9
|
+
"of a"
|
10
|
+
end
|
11
|
+
|
12
|
+
def can
|
13
|
+
highlight = "vimdeck"
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
14
17
|
|
15
18
|
|
16
19
|
|
data/presentation/slide015.md
CHANGED
data/slides.md
CHANGED
@@ -10,16 +10,16 @@
|
|
10
10
|
|
11
11
|
## PARAGRAPHS
|
12
12
|
|
13
|
-
This is a paragraph (plain text)
|
13
|
+
This is a `paragraph` (plain text)
|
14
14
|
|
15
15
|
This is another paragraph
|
16
16
|
|
17
17
|
|
18
18
|
## NUMBERED LIST
|
19
19
|
|
20
|
-
1. This
|
21
|
-
2. Looks in vimdeck
|
22
|
-
3. What do you think?
|
20
|
+
1. This _is_ how a *numbered* list
|
21
|
+
2. Looks in **vimdeck**
|
22
|
+
3. What do ***you*** think?
|
23
23
|
|
24
24
|
|
25
25
|
# BULLETS
|