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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- Y2NhZjA2ZjgzNzZmNzQ0M2ZkMWI5Y2U0NWRkOTU1ZDkxMmVjZjc3Yw==
4
+ NDRmYWJlOGFiNDRkYzhiNmEwOWI5ODVkMTZmMDA5ZTVhNDc2NWJlYQ==
5
5
  data.tar.gz: !binary |-
6
- ZGE1NTNmMzc5MjhmNzAzZDNjNTUzZTc3NzA1N2IyOGU1OWE0Y2E5Mg==
6
+ MzdmODk1MDhkYzBkYzI2ZjQzNGRkZDY4ZGM3MTk4MjYzZmRkOTBmMA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MDE2M2EyMDAxNmNlNjFjZTYyZGNhNTVlN2MxNDAwNzRjNWEzZTQ5ZDZlNjRk
10
- MzJmYzRjMDI3Y2U4MTlmOTU5OWQzMmVjYWJjOWJkNWE1MWFiMDUzNmEyNTY0
11
- M2NhNmYyMDlmMWYwNGE3M2QwMTUyODYzOTIzMWMxYjdkZDUzMWU=
9
+ ZTE1MjRmNTg5OWQ0NDM4Y2YyMzc5YmFlYTJiZWRkZTk2NmZkMzRkMDJhZWJk
10
+ OTVhYzQ0YjJlNDM5YzY4MjZlNzllMzZiZTRlNzViYjk0OWJiNWIyZWNmYWM0
11
+ MGM1MDlmODFhOGNhZGQ0OGZiZGYxZTM2NWFjZTAzODlkMjE5YjU=
12
12
  data.tar.gz: !binary |-
13
- MjRkY2Y4MjU5MGUxNzg3ZmIzYzAzMTM4MmJhMjU1NjY3ZTk1MmE5Yjc3MmQx
14
- MDIyMzM1MzVlY2NiZDdhZjUzNzZhMDZkZDIxNmFmYmRkYWNjZGMyMmVhOTA5
15
- MGE3ZTJhZGEzMWFmZDcwNWNiYWNmMWY5MTJmYjBhY2JmNzJlYWI=
13
+ ODlmZTYwNjMxZWMwZTM2YmIyMDFmOGZhOWEwM2VjNDdiZTVlYjQ0MjNkNmZl
14
+ OTE0ZTQ1YTZmYTA3NTZhYjQ3NGIwMDdmYmI4YThhNDQ2NDdiMWIwMDk0NmNh
15
+ MjNmOGM0MjA3ZDNlNGFiNjA0Njc5MjY2ODM5MDcyOWUwMzRkZmE=
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.4
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 |opt|
51
- options[:header_font] = opt
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!
@@ -1,5 +1,11 @@
1
1
  set nonumber
2
2
  set hidden
3
+ <% if @options[:no_filetype] %>
4
+ argdo set filetype=txt
5
+ set filetype=txt
6
+ filetype off
7
+ <% end %>
8
+
3
9
  noremap <PageUp> :bp<CR>
4
10
  noremap <Left> :bp<CR>
5
11
  <% if @options[:mouse_enabled] -%>
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}.md", "w") do |file|
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
- exec 'vim presentation/*.md -S presentation/script.vim'
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)
@@ -1,12 +1,13 @@
1
1
  set nonumber
2
2
  set hidden
3
+
4
+
3
5
  noremap <PageUp> :bp<CR>
4
6
  noremap <Left> :bp<CR>
5
7
  noremap <PageDown> :bn<CR>
6
8
  noremap <Right> :bn<CR>
7
9
  noremap Q :q<CR>
8
10
 
9
-
10
11
  b 1
11
12
  b 2
12
13
  b 3
@@ -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