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