vimdeck 0.2.4 → 0.2.5
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.
- checksums.yaml +8 -8
- data/VERSION +1 -1
- data/bin/vimdeck +7 -2
- data/lib/templates/script.vim.erb +6 -0
- data/lib/vimdeck.rb +4 -2
- data/presentation/script.vim +2 -1
- data/presentation/slide001.txt +92 -0
- data/presentation/slide002.txt +106 -0
- data/presentation/slide003.txt +90 -0
- data/presentation/slide004.txt +90 -0
- data/presentation/slide005.txt +91 -0
- data/presentation/slide006.txt +91 -0
- data/presentation/slide007.txt +91 -0
- data/presentation/slide008.txt +97 -0
- data/presentation/slide009.txt +97 -0
- data/presentation/slide010.txt +97 -0
- data/presentation/slide011.txt +97 -0
- data/presentation/slide012.txt +97 -0
- data/presentation/slide013.txt +97 -0
- data/presentation/slide014.txt +97 -0
- data/presentation/slide015.txt +95 -0
- data/presentation/slide016.txt +95 -0
- data/presentation/slide017.txt +95 -0
- data/presentation/slide018.txt +95 -0
- data/presentation/slide019.txt +87 -0
- metadata +20 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NDRmYWJlOGFiNDRkYzhiNmEwOWI5ODVkMTZmMDA5ZTVhNDc2NWJlYQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MzdmODk1MDhkYzBkYzI2ZjQzNGRkZDY4ZGM3MTk4MjYzZmRkOTBmMA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZTE1MjRmNTg5OWQ0NDM4Y2YyMzc5YmFlYTJiZWRkZTk2NmZkMzRkMDJhZWJk
|
10
|
+
OTVhYzQ0YjJlNDM5YzY4MjZlNzllMzZiZTRlNzViYjk0OWJiNWIyZWNmYWM0
|
11
|
+
MGM1MDlmODFhOGNhZGQ0OGZiZGYxZTM2NWFjZTAzODlkMjE5YjU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ODlmZTYwNjMxZWMwZTM2YmIyMDFmOGZhOWEwM2VjNDdiZTVlYjQ0MjNkNmZl
|
14
|
+
OTE0ZTQ1YTZmYTA3NTZhYjQ3NGIwMDdmYmI4YThhNDQ2NDdiMWIwMDk0NmNh
|
15
|
+
MjNmOGM0MjA3ZDNlNGFiNjA0Njc5MjY2ODM5MDcyOWUwMzRkZmE=
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.5
|
data/bin/vimdeck
CHANGED
@@ -12,6 +12,7 @@
|
|
12
12
|
#> --mouse, -m mouse support for navigating slides
|
13
13
|
#> --no-indent, -I skip indentation
|
14
14
|
#> --no-ascii, -A skip ascii headers
|
15
|
+
#> --no-filetype, -n use vim's plaintext syntax highlighting
|
15
16
|
#> --header-font, -h specify header font (http://www.figlet.org/fontdb.cgi)
|
16
17
|
#> foregoes the ability to have small and large headers
|
17
18
|
|
@@ -47,13 +48,17 @@ opt_parser = OptionParser.new do |opt|
|
|
47
48
|
options[:no_indent] = true
|
48
49
|
end
|
49
50
|
|
50
|
-
opt.on("-h", "--header-font STRING", String) do |
|
51
|
-
options[:header_font] =
|
51
|
+
opt.on("-h", "--header-font STRING", String) do |option|
|
52
|
+
options[:header_font] = option
|
52
53
|
end
|
53
54
|
|
54
55
|
opt.on("-m", "--mouse") do
|
55
56
|
options[:mouse_enabled] = true
|
56
57
|
end
|
58
|
+
|
59
|
+
opt.on("-n", "--no-filetype") do
|
60
|
+
options[:no_filetype] = true
|
61
|
+
end
|
57
62
|
end
|
58
63
|
|
59
64
|
opt_parser.parse!
|
data/lib/vimdeck.rb
CHANGED
@@ -142,6 +142,7 @@ module Vimdeck
|
|
142
142
|
|
143
143
|
def self.generate(filename, options)
|
144
144
|
@options = options
|
145
|
+
extension = options[:no_filetype] ? ".txt" : ".md"
|
145
146
|
slides = File.read(filename)
|
146
147
|
|
147
148
|
renderer = Redcarpet::Markdown.new(Vimdeck::Render, :fenced_code_blocks => true)
|
@@ -221,7 +222,7 @@ module Vimdeck
|
|
221
222
|
match = match.post_match.match(regex)
|
222
223
|
end
|
223
224
|
|
224
|
-
File.open("presentation/slide#{slide_num}
|
225
|
+
File.open("presentation/slide#{slide_num}#{extension}", "w") do |file|
|
225
226
|
file.write(slide + "\n")
|
226
227
|
end
|
227
228
|
|
@@ -235,7 +236,8 @@ module Vimdeck
|
|
235
236
|
end
|
236
237
|
|
237
238
|
def self.open
|
238
|
-
|
239
|
+
extension = @options[:no_filetype] ? ".txt" : ".md"
|
240
|
+
exec "vim presentation/*#{extension} -S presentation/script.vim"
|
239
241
|
end
|
240
242
|
|
241
243
|
def self.start(filename, options)
|
data/presentation/script.vim
CHANGED
@@ -0,0 +1,92 @@
|
|
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
|
+
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
slide 001
|
@@ -0,0 +1,106 @@
|
|
1
|
+
_ ________ ___ ____ ____ ________ _______ __
|
2
|
+
| | / / _/ |/ / / __ \/ __ \/ ____/ //_/ ___// /
|
3
|
+
| | / // // /|_/ / / /_/ / / / / / / ,< \__ \/ /
|
4
|
+
| |/ // // / / / / _, _/ /_/ / /___/ /| |___/ /_/
|
5
|
+
|___/___/_/ /_/ /_/ |_|\____/\____/_/ |_/____(_)
|
6
|
+
|
7
|
+
+------------------------------+
|
8
|
+
| ..:. |
|
9
|
+
| ~+~========~+~.:=========: |
|
10
|
+
| =o=oooooo=~~~~~+=oooooooo~ |
|
11
|
+
| .+oooooo~~~~~~~=oooooo+.. |
|
12
|
+
| .oooooo=~~~~~+ooooo=+:. |
|
13
|
+
| :ooooo==~~~+ooooo=+~~:. |
|
14
|
+
| .:~~=ooooo=++ooooo=+~~~~~~:. |
|
15
|
+
|.:~~~=oooooooooooo+~~~~~~~~~~.|
|
16
|
+
| :~oooooooooo==~~~~~~~~~. |
|
17
|
+
| ooooooooo+++~~~~~~~:.. |
|
18
|
+
| ooooooo+~~+~~+=++==~++: |
|
19
|
+
| =ooo=+~~~++~~=+~+=..o+. |
|
20
|
+
| .=oo+~ .~+=~~o+.+o= =+~ |
|
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
|
+
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
|
106
|
+
slide 002
|
@@ -0,0 +1,90 @@
|
|
1
|
+
___ ___ ___ ___ ________ ___ ___ __ ______
|
2
|
+
/ _ \/ _ | / _ \/ _ |/ ___/ _ \/ _ | / _ \/ // / __/
|
3
|
+
/ ___/ __ |/ , _/ __ / (_ / , _/ __ |/ ___/ _ /\ \
|
4
|
+
/_/ /_/ |_/_/|_/_/ |_\___/_/|_/_/ |_/_/ /_//_/___/
|
5
|
+
|
6
|
+
This is a `paragraph` (plain text)
|
7
|
+
|
8
|
+
This is another paragraph
|
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
|
+
|
88
|
+
|
89
|
+
|
90
|
+
slide 003
|
@@ -0,0 +1,90 @@
|
|
1
|
+
_ ____ ____ ______ _______ _______ __ ______________
|
2
|
+
/ |/ / / / / |/ / _ )/ __/ _ \/ __/ _ \ / / / _/ __/_ __/
|
3
|
+
/ / /_/ / /|_/ / _ / _// , _/ _// // / / /___/ /_\ \ / /
|
4
|
+
/_/|_/\____/_/ /_/____/___/_/|_/___/____/ /____/___/___/ /_/
|
5
|
+
|
6
|
+
1. This *is* how a *numbered* list
|
7
|
+
2. Looks in **vimdeck**
|
8
|
+
3. What do ***you*** think?
|
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
|
+
|
88
|
+
|
89
|
+
|
90
|
+
slide 004
|
@@ -0,0 +1,91 @@
|
|
1
|
+
____ __ ____ __ _________________
|
2
|
+
/ __ )/ / / / / / / / ____/_ __/ ___/
|
3
|
+
/ __ / / / / / / / / __/ / / \__ \
|
4
|
+
/ /_/ / /_/ / /___/ /___/ /___ / / ___/ /
|
5
|
+
/_____/\____/_____/_____/_____/ /_/ /____/
|
6
|
+
|
7
|
+
• First
|
8
|
+
• Second
|
9
|
+
• Third
|
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
|
+
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
slide 005
|
@@ -0,0 +1,91 @@
|
|
1
|
+
____ __ ____ __ _________________
|
2
|
+
/ __ )/ / / / / / / / ____/_ __/ ___/
|
3
|
+
/ __ / / / / / / / / __/ / / \__ \
|
4
|
+
/ /_/ / /_/ / /___/ /___/ /___ / / ___/ /
|
5
|
+
/_____/\____/_____/_____/_____/ /_/ /____/
|
6
|
+
|
7
|
+
• First
|
8
|
+
• Second
|
9
|
+
• Third
|
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
|
+
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
slide 006
|