markdown_exec 1.3.7 → 1.3.9

Sign up to get free protection for your applications and to get access to all the features.
data/lib/menu.src.yml CHANGED
@@ -1,11 +1,55 @@
1
1
  ---
2
+ - :description: Show current configuration values
3
+ :procname: show_config
4
+ :short_name: '0'
5
+ - :arg_name: BOOL
6
+ :default: false
7
+ :description: Display only blocks of type "bash"
8
+ :env_var: MDE_BASH_ONLY
9
+ :opt_name: bash_only
10
+ :procname: val_as_bool
11
+ - :default: "%\\([^\\)]+\\)"
12
+ :env_var: MDE_BLOCK_CALLS_SCAN
13
+ :opt_name: block_calls_scan
14
+ :procname: val_as_str
2
15
  - :arg_name: NAME
3
16
  :compreply: false
4
17
  :description: Name of block
5
18
  :env_var: MDE_BLOCK_NAME
6
19
  :long_name: block-name
7
20
  :opt_name: block_name
21
+ :procname: val_as_str
8
22
  :short_name: b
23
+ - :default: "^-.+-$"
24
+ :description: Pattern for blocks to hide from user-selection
25
+ :env_var: MDE_BLOCK_NAME_HIDDEN_MATCH
26
+ :opt_name: block_name_hidden_match
27
+ :procname: val_as_str
28
+ - :default: "^[\\(\\[].*[\\)\\]]$"
29
+ :description: Pattern for blocks to hide from user-selection
30
+ :env_var: MDE_BLOCK_NAME_INCLUDE_MATCH
31
+ :opt_name: block_name_include_match
32
+ :procname: val_as_str
33
+ - :default: ":(?<title>\\S+)( |$)"
34
+ :env_var: MDE_BLOCK_NAME_MATCH
35
+ :opt_name: block_name_match
36
+ :procname: val_as_str
37
+ - :default: "^{.+}$"
38
+ :description: Pattern for block names to use as wrappers
39
+ :env_var: MDE_BLOCK_NAME_WRAPPER_MATCH
40
+ :opt_name: block_name_wrapper_match
41
+ :procname: val_as_str
42
+ - :default: "\\+\\S+"
43
+ :env_var: MDE_BLOCK_REQUIRED_SCAN
44
+ :opt_name: block_required_scan
45
+ :procname: val_as_str
46
+ - :default: "<(?<full>(?<type>\\$)?(?<name>[A-Za-z_\\-\\.\\w]+))"
47
+ :env_var: MDE_BLOCK_STDIN_SCAN
48
+ :opt_name: block_stdin_scan
49
+ :procname: val_as_str
50
+ - :default: ">(?<full>(?<type>\\$)?(?<name>[A-Za-z_\\-\\.\\w]+))"
51
+ :env_var: MDE_BLOCK_STDOUT_SCAN
52
+ :opt_name: block_stdout_scan
9
53
  :procname: val_as_str
10
54
  - :arg_name: PATH
11
55
  :default: "."
@@ -17,51 +61,93 @@
17
61
  :description: Debug output
18
62
  :env_var: MDE_DEBUG
19
63
  :long_name: debug
20
- :short_name: d
21
64
  :procname: debug
65
+ :short_name: d
66
+ - :default: "> "
67
+ :env_var: MDE_DISPLAY_LEVEL_XBASE_PREFIX
68
+ :opt_name: display_level_xbase_prefix
69
+ :procname: val_as_str
70
+ - :arg_name: REGEX
71
+ :default:
72
+ :description: Exclude blocks with name matching
73
+ :env_var: MDE_EXCLUDE_BY_NAME_REGEX
74
+ :opt_name: exclude_by_name_regex
75
+ :procname: val_as_str
76
+ - :arg_name: REGEX
77
+ :default:
78
+ :description: Exclude blocks with shell matching
79
+ :env_var: MDE_EXCLUDE_BY_SHELL_REGEX
80
+ :opt_name: exclude_by_shell_regex
81
+ :procname: val_as_str
82
+ - :arg_name: BOOL
83
+ :default: true
84
+ :description: Hide all blocks of type "expect"
85
+ :env_var: MDE_EXCLUDE_EXPECT_BLOCKS
86
+ :opt_name: exclude_expect_blocks
87
+ :procname: val_as_bool
88
+ - :description: Exit app
89
+ :long_name: exit
90
+ :procname: exit
91
+ :short_name: x
92
+ - :default: "^`{3,}"
93
+ :env_var: MDE_FENCED_START_AND_END_REGEX
94
+ :opt_name: fenced_start_and_end_regex
95
+ :procname: val_as_str
96
+ - :default: "^`{3,}(?<shell>[^`\\s]*) *:?(?<name>[^\\s]*) *(?<rest>.*) *$"
97
+ :env_var: MDE_FENCED_START_EXTENDED_REGEX
98
+ :opt_name: fenced_start_extended_regex
99
+ :procname: val_as_str
22
100
  - :arg_name: RELATIVE_PATH
23
101
  :compreply: "."
24
102
  :description: Name of document
25
103
  :env_var: MDE_FILENAME
26
104
  :long_name: filename
27
105
  :opt_name: filename
106
+ :procname: val_as_str
28
107
  :short_name: f
108
+ - :default: "^# *(?<name>[^#]*?) *$"
109
+ :env_var: MDE_HEADING1_MATCH
110
+ :opt_name: heading1_match
111
+ :procname: val_as_str
112
+ - :default: "^## *(?<name>[^#]*?) *$"
113
+ :env_var: MDE_HEADING2_MATCH
114
+ :opt_name: heading2_match
115
+ :procname: val_as_str
116
+ - :default: "^### *(?<name>.+?) *$"
117
+ :env_var: MDE_HEADING3_MATCH
118
+ :opt_name: heading3_match
29
119
  :procname: val_as_str
30
120
  - :description: App help
31
121
  :long_name: help
32
- :short_name: h
33
122
  :procname: help
34
- - :arg_name: RELATIVE_PATH
35
- :default: "."
36
- :description: Path to documents
37
- :env_var: MDE_PATH
38
- :long_name: path
39
- :opt_name: path
40
- :short_name: p
41
- :procname: val_as_str
123
+ :short_name: h
42
124
  - :arg_name: BOOL
43
125
  :default: true
44
- :description: Pause for user to approve script
45
- :env_var: MDE_USER_MUST_APPROVE
46
- :long_name: user-must-approve
47
- :opt_name: user_must_approve
48
- :short_name: q
126
+ :description: |-
127
+ Exclude blocks with name matching expression " \
128
+ "`block_name_hidden_match`
129
+ :env_var: MDE_HIDE_BLOCKS_BY_NAME
130
+ :opt_name: hide_blocks_by_name
49
131
  :procname: val_as_bool
50
- - :description: Print the gem's version
51
- :long_name: version
52
- :short_name: v
53
- :procname: version
54
- - :description: Exit app
55
- :long_name: exit
56
- :short_name: x
57
- :procname: exit
58
- - :description: Show current configuration values
59
- :short_name: '0'
60
- :procname: show_config
132
+ - :default: ","
133
+ :env_var: MDE_HISTORY_DOCUMENT_SEPARATOR
134
+ :opt_name: history_document_separator
135
+ :procname: val_as_str
136
+ - :default: "^ *@import (.+)$"
137
+ :env_var: MDE_IMPORT_PATTERN
138
+ :opt_name: import_pattern
139
+ :procname: val_as_str
61
140
  - :description: List blocks
62
141
  :long_name: list-blocks
63
142
  :opt_name: list_blocks
64
143
  :procname: val_as_bool
144
+ - :arg_name: INT.1-
145
+ :default: 32
146
+ :description: Max. items to return in list
147
+ :env_var: MDE_LIST_COUNT
148
+ :long_name: list-count
149
+ :opt_name: list_count
150
+ :procname: val_as_int
65
151
  - :description: List default configuration as environment variables
66
152
  :long_name: list-default-env
67
153
  :opt_name: list_default_env
@@ -80,77 +166,31 @@
80
166
  :long_name: list-recent-scripts
81
167
  :opt_name: list_recent_scripts
82
168
  :procname: val_as_bool
83
- - :description: Select and execute a recently saved output
84
- :long_name: select-recent-output
85
- :opt_name: select_recent_output
86
- :procname: val_as_bool
87
- - :description: Select and execute a recently saved script
88
- :long_name: select-recent-script
89
- :opt_name: select_recent_script
90
- :procname: val_as_bool
91
- - :description: List tab completions
92
- :long_name: tab-completions
93
- :opt_name: tab_completions
94
- :procname: val_as_bool
95
- - :description: Run most recently saved script
96
- :long_name: run-last-script
97
- :opt_name: run_last_script
98
- :procname: val_as_bool
99
- - :description: Gem home folder
100
- :long_name: pwd
101
- :opt_name: pwd
102
- :procname: val_as_bool
103
- - :arg_name: BOOL
104
- :default: false
105
- :description: Display only blocks of type "bash"
106
- :env_var: MDE_BASH_ONLY
107
- :opt_name: bash_only
108
- :procname: val_as_bool
109
- - :arg_name: BOOL
110
- :default: false
111
- :description: Hide decorative menu entries
112
- :env_var: MDE_NO_CHROME
113
- :opt_name: no_chrome
114
- :procname: val_as_bool
115
- - :arg_name: REGEX
116
- :default:
117
- :description: Exclude blocks with name matching
118
- :env_var: MDE_EXCLUDE_BY_NAME_REGEX
119
- :opt_name: exclude_by_name_regex
120
- :procname: val_as_str
121
- - :arg_name: REGEX
122
- :default:
123
- :description: Exclude blocks with shell matching
124
- :env_var: MDE_EXCLUDE_BY_SHELL_REGEX
125
- :opt_name: exclude_by_shell_regex
126
- :procname: val_as_str
127
- - :arg_name: BOOL
128
- :default: true
129
- :description: Hide all blocks of type "expect"
130
- :env_var: MDE_EXCLUDE_EXPECT_BLOCKS
131
- :opt_name: exclude_expect_blocks
132
- :procname: val_as_bool
133
- - :arg_name: BOOL
134
- :default: true
135
- :description: |-
136
- Exclude blocks with name matching expression " \
137
- "`block_name_hidden_match`
138
- :env_var: MDE_HIDE_BLOCKS_BY_NAME
139
- :opt_name: hide_blocks_by_name
140
- :procname: val_as_bool
141
- - :arg_name: INT.1-
142
- :default: 32
143
- :description: Max. items to return in list
144
- :env_var: MDE_LIST_COUNT
145
- :long_name: list-count
146
- :opt_name: list_count
147
- :procname: val_as_int
148
169
  - :arg_name: PREFIX
149
170
  :default: mde
150
171
  :description: Name prefix for stdout files
151
172
  :env_var: MDE_LOGGED_STDOUT_FILENAME_PREFIX
152
173
  :opt_name: logged_stdout_filename_prefix
153
174
  :procname: val_as_str
175
+ - :default: "*.[Mm][Dd]"
176
+ :env_var: MDE_MD_FILENAME_GLOB
177
+ :opt_name: md_filename_glob
178
+ :procname: val_as_str
179
+ - :default: ".+\\.md"
180
+ :env_var: MDE_MD_FILENAME_MATCH
181
+ :opt_name: md_filename_match
182
+ :procname: val_as_str
183
+ - :arg_name: BOOL
184
+ :default: true
185
+ :description: Display Back option at top of menu (vs bottom)
186
+ :env_var: MDE_MENU_BACK_AT_TOP
187
+ :opt_name: menu_back_at_top
188
+ :procname: val_as_bool
189
+ - :default: plain
190
+ :description: Color of menu bash
191
+ :env_var: MDE_MENU_BASH_COLOR
192
+ :opt_name: menu_bash_color
193
+ :procname: val_as_str
154
194
  - :arg_name: BOOL
155
195
  :default: false
156
196
  :description: Display document name in block selection menu
@@ -163,18 +203,125 @@
163
203
  :env_var: MDE_MENU_BLOCKS_WITH_HEADINGS
164
204
  :opt_name: menu_blocks_with_headings
165
205
  :procname: val_as_bool
206
+ - :default: magenta
207
+ :description: Color of menu divider
208
+ :env_var: MDE_MENU_DIVIDER_COLOR
209
+ :opt_name: menu_divider_color
210
+ :procname: val_as_str
211
+ - :default: "-:= %s =:-"
212
+ :description: format for menu dividers and demarcations
213
+ :env_var: MDE_MENU_DIVIDER_FORMAT
214
+ :opt_name: menu_divider_format
215
+ :procname: val_as_str
216
+ - :default: "^::: +(?<name>.+?)$"
217
+ :description: Pattern for topics/dividers in block selection menu
218
+ :env_var: MDE_MENU_DIVIDER_MATCH
219
+ :opt_name: menu_divider_match
220
+ :procname: val_as_str
221
+ - :default: ">"
222
+ :description: Symbol before each divider
223
+ :env_var: MDE_MENU_DIVIDER_SYMBOL
224
+ :opt_name: menu_divider_symbol
225
+ :procname: val_as_str
166
226
  - :arg_name: BOOL
167
227
  :default: true
168
- :description: Display Exit option at top of menu
228
+ :description: Display Exit option at top of menu (vs bottom)
169
229
  :env_var: MDE_MENU_EXIT_AT_TOP
170
230
  :opt_name: menu_exit_at_top
171
231
  :procname: val_as_bool
232
+ - :default: "~~~"
233
+ :description: closing demarcations for menu
234
+ :env_var: MDE_MENU_FINAL_DIVIDER
235
+ :opt_name: menu_final_divider
236
+ :procname: val_as_str
237
+ - :default: ''
238
+ :description: opening demarcation for menu
239
+ :env_var: MDE_MENU_INITIAL_DIVIDER
240
+ :opt_name: menu_initial_divider
241
+ :procname: val_as_str
242
+ - :default: red
243
+ :description: Color of menu link
244
+ :env_var: MDE_MENU_LINK_COLOR
245
+ :opt_name: menu_link_color
246
+ :procname: val_as_str
247
+ - :default: blue
248
+ :description: Color of menu opts
249
+ :env_var: MDE_MENU_OPTS_COLOR
250
+ :opt_name: menu_opts_color
251
+ :procname: val_as_str
252
+ - :default: cyan
253
+ :description: Color of menu opts
254
+ :env_var: MDE_MENU_OPTS_SET_COLOR
255
+ :opt_name: menu_opts_set_color
256
+ :procname: val_as_str
257
+ - :default: "%{key} = %{value}\n"
258
+ :description: format for menu opts output
259
+ :env_var: MDE_MENU_OPTS_SET_FORMAT
260
+ :opt_name: menu_opts_set_format
261
+ :procname: val_as_str
262
+ - :default: cyan
263
+ :description: Color of menu task
264
+ :env_var: MDE_MENU_TASK_COLOR
265
+ :opt_name: menu_task_color
266
+ :procname: val_as_str
267
+ - :default: "%{name} [%{status}]"
268
+ :description: format for menu tasks and demarcations
269
+ :env_var: MDE_MENU_TASK_FORMAT
270
+ :opt_name: menu_task_format
271
+ :procname: val_as_str
272
+ - :default: "^ *\\[(?<status>.{1,4})\\] *(?<name>.*) *$"
273
+ :description: Pattern for tasks
274
+ :env_var: MDE_MENU_TASK_MATCH
275
+ :opt_name: menu_task_match
276
+ :procname: val_as_str
277
+ - :default: ">"
278
+ :description: Symbol before each task
279
+ :env_var: MDE_MENU_TASK_SYMBOL
280
+ :opt_name: menu_task_symbol
281
+ :procname: val_as_str
282
+ - :default: blue
283
+ :description: Color of menu vars
284
+ :env_var: MDE_MENU_VARS_COLOR
285
+ :opt_name: menu_vars_color
286
+ :procname: val_as_str
287
+ - :default: cyan
288
+ :description: Color of menu vars
289
+ :env_var: MDE_MENU_VARS_SET_COLOR
290
+ :opt_name: menu_vars_set_color
291
+ :procname: val_as_str
292
+ - :default: "%{key} = %{value}\n"
293
+ :description: format for menu vars output
294
+ :env_var: MDE_MENU_VARS_SET_FORMAT
295
+ :opt_name: menu_vars_set_format
296
+ :procname: val_as_str
297
+ - :arg_name: BOOL
298
+ :default: true
299
+ :description: Display Back option in menu
300
+ :env_var: MDE_MENU_WITH_BACK
301
+ :opt_name: menu_with_back
302
+ :procname: val_as_bool
172
303
  - :arg_name: BOOL
173
304
  :default: true
174
305
  :description: Display Exit option in menu
175
306
  :env_var: MDE_MENU_WITH_EXIT
176
307
  :opt_name: menu_with_exit
177
308
  :procname: val_as_bool
309
+ - :arg_name: BOOL
310
+ :default: false
311
+ :description: Hide decorative menu entries
312
+ :env_var: MDE_NO_CHROME
313
+ :opt_name: no_chrome
314
+ :procname: val_as_bool
315
+ - :default: " #=#=#"
316
+ :description: Output divider
317
+ :env_var: MDE_OUTPUT_DIVIDER
318
+ :opt_name: output_divider
319
+ :procname: val_as_str
320
+ - :default: yellow
321
+ :description: Color of output divider
322
+ :env_var: MDE_OUTPUT_DIVIDER_COLOR
323
+ :opt_name: output_divider_color
324
+ :procname: val_as_str
178
325
  - :arg_name: BOOL
179
326
  :default: false
180
327
  :description: Display summary for execution
@@ -202,6 +349,66 @@
202
349
  :long_name: output-stdout
203
350
  :opt_name: output_stdout
204
351
  :procname: val_as_bool
352
+ - :description: Options for viewing saved output file
353
+ :env_var: MDE_OUTPUT_VIEWER_OPTIONS
354
+ :opt_name: output_viewer_options
355
+ :procname: val_as_str
356
+ - :arg_name: RELATIVE_PATH
357
+ :default: "."
358
+ :description: Path to documents
359
+ :env_var: MDE_PATH
360
+ :long_name: path
361
+ :opt_name: path
362
+ :procname: val_as_str
363
+ :short_name: p
364
+ - :default: Process?
365
+ :description: Prompt to approve a block
366
+ :env_var: MDE_PROMPT_APPROVE_BLOCK
367
+ :opt_name: prompt_approve_block
368
+ :procname: val_as_str
369
+ - :default: 'No'
370
+ :description: Prompt for no
371
+ :env_var: MDE_PROMPT_NO
372
+ :opt_name: prompt_no
373
+ :procname: val_as_str
374
+ - :default: Save script
375
+ :description: Prompt to save script
376
+ :env_var: MDE_PROMPT_SAVE_SCRIPT
377
+ :opt_name: prompt_save_script
378
+ :procname: val_as_str
379
+ - :default: Copy script to clipboard
380
+ :description: Prompt to copy script to clipboard
381
+ :env_var: MDE_PROMPT_SCRIPT_TO_CLIPBOARD
382
+ :opt_name: prompt_script_to_clipboard
383
+ :procname: val_as_str
384
+ - :default: 'Choose a block:'
385
+ :description: Prompt to select a block
386
+ :env_var: MDE_PROMPT_SELECT_BLOCK
387
+ :opt_name: prompt_select_block
388
+ :procname: val_as_str
389
+ - :default: 'Choose a file:'
390
+ :description: Prompt to select a markdown document
391
+ :env_var: MDE_PROMPT_SELECT_MD
392
+ :opt_name: prompt_select_md
393
+ :procname: val_as_str
394
+ - :default: 'Choose a file:'
395
+ :description: Prompt to select a saved file
396
+ :env_var: MDE_PROMPT_SELECT_OUTPUT
397
+ :opt_name: prompt_select_output
398
+ :procname: val_as_str
399
+ - :default: 'Yes'
400
+ :description: Prompt for yes
401
+ :env_var: MDE_PROMPT_YES
402
+ :opt_name: prompt_yes
403
+ :procname: val_as_str
404
+ - :description: Gem home folder
405
+ :long_name: pwd
406
+ :opt_name: pwd
407
+ :procname: val_as_bool
408
+ - :description: Run most recently saved script
409
+ :long_name: run-last-script
410
+ :opt_name: run_last_script
411
+ :procname: val_as_bool
205
412
  - :arg_name: BOOL
206
413
  :default: false
207
414
  :description: Save executed script
@@ -266,126 +473,19 @@
266
473
  :env_var: MDE_SELECT_BY_SHELL_REGEX
267
474
  :opt_name: select_by_shell_regex
268
475
  :procname: val_as_str
269
- - :default: "^[\\(\\[].*[\\)\\]]$"
270
- :description: Pattern for blocks to hide from user-selection
271
- :env_var: MDE_BLOCK_NAME_HIDDEN_MATCH
272
- :opt_name: block_name_hidden_match
273
- :procname: val_as_str
274
- - :default: ":(?<title>\\S+)( |$)"
275
- :env_var: MDE_BLOCK_NAME_MATCH
276
- :opt_name: block_name_match
277
- :procname: val_as_str
278
- - :default: "%\\([^\\)]+\\)"
279
- :env_var: MDE_BLOCK_CALLS_SCAN
280
- :opt_name: block_calls_scan
281
- :procname: val_as_str
282
- - :default: "\\+\\S+"
283
- :env_var: MDE_BLOCK_REQUIRED_SCAN
284
- :opt_name: block_required_scan
285
- :procname: val_as_str
286
- - :default: "<(?<full>(?<type>\\$)?(?<name>[A-Za-z_\\-\\.\\w]+))"
287
- :env_var: MDE_BLOCK_STDIN_SCAN
288
- :opt_name: block_stdin_scan
289
- :procname: val_as_str
290
- - :default: ">(?<full>(?<type>\\$)?(?<name>[A-Za-z_\\-\\.\\w]+))"
291
- :env_var: MDE_BLOCK_STDOUT_SCAN
292
- :opt_name: block_stdout_scan
293
- :procname: val_as_str
294
- - :default: "> "
295
- :env_var: MDE_DISPLAY_LEVEL_XBASE_PREFIX
296
- :opt_name: display_level_xbase_prefix
297
- :procname: val_as_str
298
- - :default: "^`{3,}"
299
- :env_var: MDE_FENCED_START_AND_END_MATCH
300
- :opt_name: fenced_start_and_end_match
301
- :procname: val_as_str
302
- - :default: "^`{3,}(?<shell>[^`\\s]*) *:?(?<name>[^\\s]*) *(?<rest>.*) *$"
303
- :env_var: MDE_FENCED_START_EX_MATCH
304
- :opt_name: fenced_start_ex_match
305
- :procname: val_as_str
306
- - :default: "^# *(?<name>[^#]*?) *$"
307
- :env_var: MDE_HEADING1_MATCH
308
- :opt_name: heading1_match
309
- :procname: val_as_str
310
- - :default: "^## *(?<name>[^#]*?) *$"
311
- :env_var: MDE_HEADING2_MATCH
312
- :opt_name: heading2_match
313
- :procname: val_as_str
314
- - :default: "^### *(?<name>.+?) *$"
315
- :env_var: MDE_HEADING3_MATCH
316
- :opt_name: heading3_match
317
- :procname: val_as_str
318
- - :default: "^ *@import (.+)$"
319
- :env_var: MDE_IMPORT_PATTERN
320
- :opt_name: import_pattern
321
- :procname: val_as_str
322
- - :default: "*.[Mm][Dd]"
323
- :env_var: MDE_MD_FILENAME_GLOB
324
- :opt_name: md_filename_glob
325
- :procname: val_as_str
326
- - :default: ".+\\.md"
327
- :env_var: MDE_MD_FILENAME_MATCH
328
- :opt_name: md_filename_match
329
- :procname: val_as_str
330
- - :default: "-:= %s =:-"
331
- :description: format for menu dividers and demarcations
332
- :env_var: MDE_MENU_DIVIDER_FORMAT
333
- :opt_name: menu_divider_format
334
- :procname: val_as_str
335
- - :default: magenta
336
- :description: Color of menu divider
337
- :env_var: MDE_MENU_DIVIDER_COLOR
338
- :opt_name: menu_divider_color
339
- :procname: val_as_str
340
- - :default: "^::: +(?<name>.+?)$"
341
- :description: Pattern for topics/dividers in block selection menu
342
- :env_var: MDE_MENU_DIVIDER_MATCH
343
- :opt_name: menu_divider_match
344
- :procname: val_as_str
345
- - :default: ">"
346
- :description: Symbol before each divider
347
- :env_var: MDE_MENU_DIVIDER_SYMBOL
348
- :opt_name: menu_divider_symbol
349
- :procname: val_as_str
350
- - :default: "~~~"
351
- :description: closing demarcations for menu
352
- :env_var: MDE_MENU_FINAL_DIVIDER
353
- :opt_name: menu_final_divider
354
- :procname: val_as_str
355
- - :default: ''
356
- :description: opening demarcation for menu
357
- :env_var: MDE_MENU_INITIAL_DIVIDER
358
- :opt_name: menu_initial_divider
359
- :procname: val_as_str
360
- - :default: "[%{status}] %{name}"
361
- :description: format for menu tasks and demarcations
362
- :env_var: MDE_MENU_TASK_FORMAT
363
- :opt_name: menu_task_format
364
- :procname: val_as_str
365
- - :default: cyan
366
- :description: Color of menu task
367
- :env_var: MDE_MENU_TASK_COLOR
368
- :opt_name: menu_task_color
369
- :procname: val_as_str
370
- - :default: "^ *\\[(?<status>.{1,4})\\] *(?<name>.*) *$"
371
- :description: Pattern for tasks
372
- :env_var: MDE_MENU_TASK_MATCH
373
- :opt_name: menu_task_match
374
- :procname: val_as_str
375
- - :default: ">"
376
- :description: Symbol before each task
377
- :env_var: MDE_MENU_TASK_SYMBOL
378
- :opt_name: menu_task_symbol
379
- :procname: val_as_str
380
- - :description: Options for viewing saved output file
381
- :env_var: MDE_OUTPUT_VIEWER_OPTIONS
382
- :opt_name: output_viewer_options
383
- :procname: val_as_str
384
476
  - :default: 36
385
477
  :description: 'Maximum # of rows in select list'
386
478
  :env_var: MDE_SELECT_PAGE_HEIGHT
387
479
  :opt_name: select_page_height
388
480
  :procname: val_as_int
481
+ - :description: Select and execute a recently saved output
482
+ :long_name: select-recent-output
483
+ :opt_name: select_recent_output
484
+ :procname: val_as_bool
485
+ - :description: Select and execute a recently saved script
486
+ :long_name: select-recent-script
487
+ :opt_name: select_recent_script
488
+ :procname: val_as_bool
389
489
  - :default: "#!/usr/bin/env"
390
490
  :description: Shebang for saved scripts
391
491
  :env_var: MDE_SHEBANG
@@ -396,53 +496,19 @@
396
496
  :env_var: MDE_SHELL
397
497
  :opt_name: shell
398
498
  :procname: val_as_str
399
- - :default: Process?
400
- :description: Prompt to approve a block
401
- :env_var: MDE_PROMPT_APPROVE_BLOCK
402
- :opt_name: prompt_approve_block
403
- :procname: val_as_str
404
- - :default: 'Choose a block:'
405
- :description: Prompt to select a block
406
- :env_var: MDE_PROMPT_SELECT_BLOCK
407
- :opt_name: prompt_select_block
408
- :procname: val_as_str
409
- - :default: 'Choose a file:'
410
- :description: Prompt to select a markdown document
411
- :env_var: MDE_PROMPT_SELECT_MD
412
- :opt_name: prompt_select_md
413
- :procname: val_as_str
414
- - :default: 'Choose a file:'
415
- :description: Prompt to select a saved file
416
- :env_var: MDE_PROMPT_SELECT_OUTPUT
417
- :opt_name: prompt_select_output
418
- :procname: val_as_str
419
- - :default: Copy script to clipboard
420
- :description: Prompt to copy script to clipboard
421
- :env_var: MDE_PROMPT_SCRIPT_TO_CLIPBOARD
422
- :opt_name: prompt_script_to_clipboard
423
- :procname: val_as_str
424
- - :default: Save script
425
- :description: Prompt to save script
426
- :env_var: MDE_PROMPT_SAVE_SCRIPT
427
- :opt_name: prompt_save_script
428
- :procname: val_as_str
429
- - :default: 'No'
430
- :description: Prompt for no
431
- :env_var: MDE_PROMPT_NO
432
- :opt_name: prompt_no
433
- :procname: val_as_str
434
- - :default: 'Yes'
435
- :description: Prompt for yes
436
- :env_var: MDE_PROMPT_YES
437
- :opt_name: prompt_yes
438
- :procname: val_as_str
439
- - :default: " #=#=#"
440
- :description: Output divider
441
- :env_var: MDE_OUTPUT_DIVIDER
442
- :opt_name: output_divider
443
- :procname: val_as_str
444
- - :default: yellow
445
- :description: Color of output divider
446
- :env_var: MDE_OUTPUT_DIVIDER_COLOR
447
- :opt_name: output_divider_color
448
- :procname: val_as_str
499
+ - :description: List tab completions
500
+ :long_name: tab-completions
501
+ :opt_name: tab_completions
502
+ :procname: val_as_bool
503
+ - :arg_name: BOOL
504
+ :default: true
505
+ :description: Pause for user to approve script
506
+ :env_var: MDE_USER_MUST_APPROVE
507
+ :long_name: user-must-approve
508
+ :opt_name: user_must_approve
509
+ :procname: val_as_bool
510
+ :short_name: q
511
+ - :description: Print the gem's version
512
+ :long_name: version
513
+ :procname: version
514
+ :short_name: v