markdown_exec 1.3.8 → 1.4

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