markdown_exec 2.3.0 → 2.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (72) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +11 -2
  3. data/CHANGELOG.md +19 -0
  4. data/Gemfile.lock +1 -1
  5. data/Rakefile +32 -8
  6. data/bats/bats.bats +33 -0
  7. data/bats/block-types.bats +56 -0
  8. data/bats/cli.bats +74 -0
  9. data/bats/fail.bats +11 -0
  10. data/bats/history.bats +34 -0
  11. data/bats/markup.bats +66 -0
  12. data/bats/mde.bats +29 -0
  13. data/bats/options.bats +92 -0
  14. data/bats/test_helper.bash +152 -0
  15. data/bin/tab_completion.sh +44 -20
  16. data/docs/dev/block-type-opts.md +10 -0
  17. data/docs/dev/block-type-port.md +24 -0
  18. data/docs/dev/block-type-vars.md +7 -0
  19. data/docs/dev/pass-through-arguments.md +8 -0
  20. data/docs/dev/specs-import.md +9 -0
  21. data/docs/dev/specs.md +83 -0
  22. data/docs/dev/text-decoration.md +7 -0
  23. data/examples/bash-blocks.md +4 -4
  24. data/examples/block-names.md +2 -2
  25. data/examples/import0.md +23 -0
  26. data/examples/import1.md +13 -0
  27. data/examples/link-blocks-vars.md +3 -3
  28. data/examples/opts-blocks-require.md +6 -6
  29. data/examples/table-markup.md +31 -0
  30. data/examples/text-markup.md +58 -0
  31. data/examples/vars-blocks.md +2 -2
  32. data/examples/wrap.md +87 -9
  33. data/lib/ansi_formatter.rb +12 -6
  34. data/lib/ansi_string.rb +153 -0
  35. data/lib/argument_processor.rb +160 -0
  36. data/lib/cached_nested_file_reader.rb +4 -2
  37. data/lib/ce_get_cost_and_usage.rb +4 -3
  38. data/lib/cli.rb +1 -1
  39. data/lib/colorize.rb +39 -11
  40. data/lib/constants.rb +17 -0
  41. data/lib/directory_searcher.rb +4 -2
  42. data/lib/doh.rb +190 -0
  43. data/lib/env.rb +1 -1
  44. data/lib/exceptions.rb +9 -6
  45. data/lib/fcb.rb +0 -199
  46. data/lib/filter.rb +18 -5
  47. data/lib/find_files.rb +8 -3
  48. data/lib/format_table.rb +406 -0
  49. data/lib/hash_delegator.rb +888 -603
  50. data/lib/hierarchy_string.rb +113 -25
  51. data/lib/input_sequencer.rb +16 -10
  52. data/lib/instance_method_wrapper.rb +2 -1
  53. data/lib/layered_hash.rb +143 -0
  54. data/lib/link_history.rb +22 -8
  55. data/lib/markdown_exec/version.rb +1 -1
  56. data/lib/markdown_exec.rb +413 -165
  57. data/lib/mdoc.rb +27 -34
  58. data/lib/menu.src.yml +825 -710
  59. data/lib/menu.yml +799 -703
  60. data/lib/namer.rb +6 -12
  61. data/lib/object_present.rb +1 -1
  62. data/lib/option_value.rb +7 -3
  63. data/lib/poly.rb +33 -14
  64. data/lib/resize_terminal.rb +60 -52
  65. data/lib/saved_assets.rb +45 -34
  66. data/lib/saved_files_matcher.rb +6 -3
  67. data/lib/streams_out.rb +7 -1
  68. data/lib/table_extractor.rb +166 -0
  69. data/lib/tap.rb +5 -6
  70. data/lib/text_analyzer.rb +144 -8
  71. metadata +26 -3
  72. data/lib/std_out_err_logger.rb +0 -119
data/lib/menu.src.yml CHANGED
@@ -1,241 +1,271 @@
1
1
  ---
2
- - :description: Show current configuration values
2
+
3
+ - :short_name: '0'
4
+ :description: Show current configuration values
3
5
  :procname: show_config
4
- :short_name: '0'
5
6
 
6
- - :arg_name: BOOL
7
- :default: true
8
- :description: Display only blocks of type "bash"
7
+ - :opt_name: bash_only
9
8
  :env_var: MDE_BASH_ONLY
10
- :opt_name: bash_only
9
+ :description: Display only blocks of type "bash"
10
+ :arg_name: BOOL
11
+ :default: true
11
12
  :procname: val_as_bool
12
13
 
13
- - :default: "%\\([^\\)]+\\)"
14
+ - :opt_name: block_calls_scan
14
15
  :env_var: MDE_BLOCK_CALLS_SCAN
15
- :opt_name: block_calls_scan
16
+ :default: "%\\([^\\)]+\\)"
16
17
  :procname: val_as_str
17
18
 
18
- - :arg_name: NAME
19
- :compreply: false
20
- :description: Name of block to execute
21
- :env_var: MDE_BLOCK_NAME
19
+ - :opt_name: block_name
22
20
  :long_name: block-name
23
- :opt_name: block_name
24
- :procname: val_as_str
25
21
  :short_name: b
22
+ :env_var: MDE_BLOCK_NAME
23
+ :description: Name of block to execute
24
+ :arg_name: NAME
25
+ :compreply: false
26
+ :procname: val_as_str
26
27
 
27
- - :default: "^-.+-$"
28
- :description: Pattern for blocks to hide from user-selection
28
+ - :opt_name: block_name_hidden_match
29
29
  :env_var: MDE_BLOCK_NAME_HIDDEN_MATCH
30
- :opt_name: block_name_hidden_match
30
+ :description: Pattern for blocks to hide from user-selection
31
+ :default: "^-.+-$"
31
32
  :procname: val_as_str
32
33
 
33
- - :default: "^\\(.*\\)$"
34
- :description: Pattern for blocks to hide from user-selection
34
+ - :opt_name: block_name_include_match
35
35
  :env_var: MDE_BLOCK_NAME_INCLUDE_MATCH
36
- :opt_name: block_name_include_match
36
+ :description: Pattern for blocks to hide from user-selection
37
+ :default: "^\\(.*\\)$"
37
38
  :procname: val_as_str
38
39
 
39
- - :default: ":(?<title>\\S+)( |$)"
40
+ - :opt_name: block_name_match
40
41
  :env_var: MDE_BLOCK_NAME_MATCH
41
- :opt_name: block_name_match
42
+ :default: ":(?<title>\\S+)( |$)"
42
43
  :procname: val_as_str
43
44
 
44
- - :default: "^\\[.*\\]$"
45
- :description: Pattern for block nicknames (name is not used in menu)
45
+ - :opt_name: block_name_nick_match
46
46
  :env_var: MDE_BLOCK_NAME_NICK_MATCH
47
- :opt_name: block_name_nick_match
47
+ :description: Pattern for block nicknames (name is not used in menu)
48
+ :default: "^\\[.*\\]$"
48
49
  :procname: val_as_str
49
50
 
50
- - :default: "^{.+}$"
51
- :description: Pattern for block names to use as wrappers
51
+ - :opt_name: block_name_wrapper_match
52
52
  :env_var: MDE_BLOCK_NAME_WRAPPER_MATCH
53
- :opt_name: block_name_wrapper_match
53
+ :description: Pattern for block names to use as wrappers
54
+ :default: "^{.+}$"
54
55
  :procname: val_as_str
55
56
 
56
- - :default: "\\+\\S+"
57
+ - :opt_name: block_required_scan
57
58
  :env_var: MDE_BLOCK_REQUIRED_SCAN
58
- :opt_name: block_required_scan
59
+ :default: "\\+\\S+"
59
60
  :procname: val_as_str
60
61
 
61
- - :default: "<(?<full>(?<type>\\$)?(?<name>[A-Za-z_\\-\\.\\w]+))"
62
+ - :opt_name: block_stdin_scan
62
63
  :env_var: MDE_BLOCK_STDIN_SCAN
63
- :opt_name: block_stdin_scan
64
+ :default: "<(?<full>(?<type>\\$)?(?<name>[A-Za-z_\\-\\.\\w]+))"
64
65
  :procname: val_as_str
65
66
 
66
- - :default: ">(?<full>(?<type>\\$)?(?<name>[A-Za-z_\\-\\.\\w]+))"
67
- :description: Match to place block body into a file or a variable
67
+ - :opt_name: block_stdout_scan
68
68
  :env_var: MDE_BLOCK_STDOUT_SCAN
69
- :opt_name: block_stdout_scan
69
+ :description: Match to place block body into a file or a variable
70
+ :default: ">(?<full>(?<type>\\$)?(?<name>[A-Za-z_\\-\\.\\w]+))"
70
71
  :procname: val_as_str
71
72
 
72
- - :default: ": ${%{key}:=%{value}}"
73
+ - :opt_name: block_type_port_set_format
73
74
  :env_var: MDE_BLOCK_TYPE_PORT_SET_FORMAT
74
- :opt_name: block_type_port_set_format
75
+ :default: ": ${%{key}:=%{value}}"
75
76
  :procname: val_as_str
76
77
 
77
- - :arg_name: PATH
78
- :default: "."
78
+ - :opt_name: clear_screen_for_select_block
79
+ :env_var: MDE_CLEAR_SCREEN_FOR_SELECT_BLOCK
80
+ :description: clear_screen_for_select_block
81
+ :arg_name: BOOL
82
+ :default: true
83
+ :procname: val_as_bool
84
+
85
+ - :long_name: config
79
86
  :description: Read configuration file
80
- :long_name: config
87
+ :arg_name: PATH
88
+ :default: "."
81
89
  :procname: path
82
90
 
83
- - :arg_name: BOOL
84
- :default: true
85
- :description: debounce_execution
91
+ - :opt_name: debounce_execution
86
92
  :env_var: MDE_DEBOUNCE_EXECUTION
87
- :opt_name: debounce_execution
93
+ :description: debounce_execution
94
+ :arg_name: BOOL
95
+ :default: true
88
96
  :procname: val_as_bool
89
97
 
90
- - :arg_name: BOOL
91
- :default: false
92
- :description: Debug output
98
+ - :opt_name: tables_into_columns
99
+ :env_var: MDE_TABLES_INTO_COLUMNS
100
+ :description: Format tables as columns
101
+ :arg_name: BOOL
102
+ :default: true
103
+ :procname: val_as_bool
104
+
105
+ - :long_name: debug
106
+ :short_name: d
93
107
  :env_var: MDE_DEBUG
94
- :long_name: debug
108
+ :description: Debug output
109
+ :arg_name: BOOL
110
+ :default: false
95
111
  :procname: debug
96
- :short_name: d
97
112
 
98
- - :arg_name: BOOL
99
- :default: true
100
- :description: default_find_select_open
113
+ - :opt_name: default_find_select_open
101
114
  :env_var: MDE_DEFAULT_FIND_SELECT_OPEN
102
- :opt_name: default_find_select_open
115
+ :description: default_find_select_open
116
+ :arg_name: BOOL
117
+ :default: true
103
118
  :procname: val_as_bool
104
119
 
105
- - :default: "> "
120
+ - :opt_name: dig
121
+ :long_name: dig
122
+ :description: Dig history (Present menu of history)
123
+
124
+ - :opt_name: display_level_xbase_prefix
106
125
  :env_var: MDE_DISPLAY_LEVEL_XBASE_PREFIX
107
- :opt_name: display_level_xbase_prefix
126
+ :default: "> "
108
127
  :procname: val_as_str
109
128
 
110
- - :default: "(document_options)"
111
- :description: Name of Opts block to load with the document
129
+ - :opt_name: document_load_opts_block_name
112
130
  :env_var: MDE_DOCUMENT_LOAD_OPTS_BLOCK_NAME
113
- :opt_name: document_load_opts_block_name
131
+ :description: Name of Opts block to load with the document
132
+ :default: "(document_options)"
114
133
  :procname: val_as_str
115
134
 
116
- - :arg_name: GLOB
117
- :default: "document_configurations/%{document_filename}_*.sh"
118
- :description: Glob for saved lines for a document
135
+ - :opt_name: document_saved_lines_glob
119
136
  :env_var: MDE_DOCUMENT_SAVED_LINES_GLOB
120
- :opt_name: document_saved_lines_glob
137
+ :description: Glob for saved lines for a document
138
+ :arg_name: GLOB
139
+ :default: document_configurations/%{document_filename}_*.sh
121
140
  :procname: val_as_str
122
141
 
123
- - :arg_name: BOOL
124
- :default: true
125
- :description: Add menu options for saved lines
142
+ - :opt_name: menu_for_saved_lines
126
143
  :env_var: MDE_MENU_FOR_SAVED_LINES
127
- :opt_name: menu_for_saved_lines
144
+ :description: Add menu options for saved lines
145
+ :arg_name: BOOL
146
+ :default: true
128
147
  :procname: val_as_bool
129
148
 
130
- - :arg_name: BOOL
131
- :default: true
149
+ - :opt_name: menu_for_history
150
+ :env_var: MDE_MENU_FOR_HISTORY
132
151
  :description: Add menu options for history
133
- :env_var: MDE_menu_for_history
134
- :opt_name: menu_for_history
152
+ :arg_name: BOOL
153
+ :default: true
135
154
  :procname: val_as_bool
136
155
 
137
- - :arg_name: BOOL
156
+ - :opt_name: dump_blocks_in_file
157
+ :long_name: dump-blocks-in-file
158
+ :env_var: MDE_DUMP_BLOCKS_IN_FILE
159
+ :description: Dump BlocksInFile (stage 1)
160
+ :arg_name: BOOL
138
161
  :default: false
139
- :description: Dump @delegate_object
140
- :env_var: MDE_DUMP_DELEGATE_OBJECT
141
- :long_name: dump-delegate-object
142
- :opt_name: dump_delegate_object
143
162
  :procname: val_as_bool
144
163
 
145
- - :arg_name: BOOL
164
+ - :opt_name: dump_delegate_object
165
+ :long_name: dump-delegate-object
166
+ :env_var: MDE_DUMP_DELEGATE_OBJECT
167
+ :description: Dump @delegate_object
168
+ :arg_name: BOOL
146
169
  :default: false
147
- :description: Dump BlocksInFile (stage 1)
148
- :env_var: MDE_DUMP_BLOCKS_IN_FILE
149
- :long_name: dump-blocks-in-file
150
- :opt_name: dump_blocks_in_file
151
170
  :procname: val_as_bool
152
171
 
153
- - :arg_name: BOOL
172
+ - :opt_name: dump_dependencies
173
+ :long_name: dump-dependencies
174
+ :env_var: MDE_DUMP_DEPENDENCIES
175
+ :description: Dump dependencies
176
+ :arg_name: BOOL
154
177
  :default: false
155
- :description: Dump inherited block_names
156
- :env_var: MDE_DUMP_INHERITED_BLOCK_NAMES
157
- :long_name: dump-inherited-block_names
158
- :opt_name: dump_inherited_block_names
159
178
  :procname: val_as_bool
160
179
 
161
- - :arg_name: BOOL
180
+ - :opt_name: dump_inherited_block_names
181
+ :long_name: dump-inherited-block-names
182
+ :env_var: MDE_DUMP_INHERITED_BLOCK_NAMES
183
+ :description: Dump inherited block_names
184
+ :arg_name: BOOL
162
185
  :default: false
163
- :description: Dump inherited dependencies
164
- :env_var: MDE_DUMP_INHERITED_DEPENDENCIES
165
- :long_name: dump-inherited-dependencies
166
- :opt_name: dump_inherited_dependencies
167
186
  :procname: val_as_bool
168
187
 
169
- - :arg_name: BOOL
188
+ - :opt_name: dump_inherited_dependencies
189
+ :long_name: dump-inherited-dependencies
190
+ :env_var: MDE_DUMP_INHERITED_DEPENDENCIES
191
+ :description: Dump inherited dependencies
192
+ :arg_name: BOOL
170
193
  :default: false
171
- :description: Dump inherited lines
172
- :env_var: MDE_DUMP_INHERITED_LINES
173
- :long_name: dump-inherited-lines
174
- :opt_name: dump_inherited_lines
175
194
  :procname: val_as_bool
176
195
 
177
- - :arg_name: BOOL
196
+ - :opt_name: dump_inherited_lines
197
+ :long_name: dump-inherited-lines
198
+ :env_var: MDE_DUMP_INHERITED_LINES
199
+ :description: Dump inherited lines
200
+ :arg_name: BOOL
178
201
  :default: false
179
- :description: Dump MenuBlocks (stage 2)
180
- :env_var: MDE_DUMP_MENU_BLOCKS
181
- :long_name: dump-menu-blocks
182
- :opt_name: dump_menu_blocks
183
202
  :procname: val_as_bool
184
203
 
185
- - :arg_name: BOOL
204
+ - :opt_name: dump_menu_blocks
205
+ :long_name: dump-menu-blocks
206
+ :env_var: MDE_DUMP_MENU_BLOCKS
207
+ :description: Dump MenuBlocks (stage 2)
208
+ :arg_name: BOOL
186
209
  :default: false
187
- :description: Dump selected block
188
- :env_var: MDE_DUMP_SELECTED_BLOCK
210
+ :procname: val_as_bool
211
+
212
+ - :opt_name: dump_selected_block
189
213
  :long_name: dump-selected-block
190
- :opt_name: dump_selected_block
214
+ :env_var: MDE_DUMP_SELECTED_BLOCK
215
+ :description: Dump selected block
216
+ :arg_name: BOOL
217
+ :default: false
191
218
  :procname: val_as_bool
192
219
 
193
- - :default: fg_rgbh_ff_00_7f
194
- :description: Color of exception detail
220
+ - :opt_name: exception_color_detail
195
221
  :env_var: MDE_EXCEPTION_COLOR_DETAIL
196
- :opt_name: exception_color_detail
222
+ :description: Color of exception detail
223
+ :default: fg_rgbh_ff_00_7f
197
224
  :procname: val_as_str
198
225
 
199
- - :default: " - %{detail}\n"
200
- :description: Format for exception detail
226
+ - :opt_name: exception_format_detail
201
227
  :env_var: MDE_EXCEPTION_FORMAT_DETAIL
202
- :opt_name: exception_format_detail
228
+ :description: Format for exception detail
229
+ :default: " - %{detail}\n"
203
230
  :procname: val_as_str
204
231
 
205
- - :default: fg_rgbh_ff_00_00
206
- :description: Color of exception name
232
+ - :opt_name: exception_color_name
207
233
  :env_var: MDE_EXCEPTION_COLOR_NAME
208
- :opt_name: exception_color_name
234
+ :description: Color of exception name
235
+ :default: fg_rgbh_ff_00_00
209
236
  :procname: val_as_str
210
237
 
211
- - :default: "\n%{name}"
212
- :description: Format for exception name
238
+ - :opt_name: exception_format_name
213
239
  :env_var: MDE_EXCEPTION_FORMAT_NAME
214
- :opt_name: exception_format_name
240
+ :description: Format for exception name
241
+ :default: "\n%{name}"
215
242
  :procname: val_as_str
216
243
 
217
- - :arg_name: REGEX
218
- :default:
219
- :description: Exclude blocks with name matching
244
+ - :opt_name: exclude_by_name_regex
220
245
  :env_var: MDE_EXCLUDE_BY_NAME_REGEX
221
- :opt_name: exclude_by_name_regex
246
+ :description: Exclude blocks with name matching
247
+ :arg_name: REGEX
248
+ :default:
222
249
  :procname: val_as_str
223
250
 
224
- - :arg_name: REGEX
225
- :default:
226
- :description: Exclude blocks with shell matching
251
+ - :opt_name: exclude_by_shell_regex
227
252
  :env_var: MDE_EXCLUDE_BY_SHELL_REGEX
228
- :opt_name: exclude_by_shell_regex
253
+ :description: Exclude blocks with shell matching
254
+ :arg_name: REGEX
255
+ :default:
229
256
  :procname: val_as_str
230
257
 
231
- - :arg_name: BOOL
232
- :default: true
233
- :description: Hide all blocks of type "expect"
258
+ - :opt_name: exclude_expect_blocks
234
259
  :env_var: MDE_EXCLUDE_EXPECT_BLOCKS
235
- :opt_name: exclude_expect_blocks
260
+ :description: Hide all blocks of type "expect"
261
+ :arg_name: BOOL
262
+ :default: true
236
263
  :procname: val_as_bool
237
264
 
238
- - :default: >
265
+ - :opt_name: execute_command_format
266
+ :env_var: MDE_EXECUTE_COMMAND_FORMAT
267
+ :description: execute_command_format
268
+ :default: >
239
269
  osascript -e '
240
270
  on run argv
241
271
  set batch_index to "%{batch_index}"
@@ -257,1060 +287,1145 @@
257
287
  end tell
258
288
  end tell
259
289
  end run'
260
- :description: execute_command_format
261
- :env_var: MDE_EXECUTE_COMMAND_FORMAT
262
- :opt_name: execute_command_format
263
290
  :procname: val_as_str
291
+
264
292
  # execute_command_format using a saved script
265
293
  # - :default: >
266
294
  # osascript scripts/applescript/mde.applescript "%{batch_index}" "%{home}" " %{started_at} - %{document_filename} - %{block_name} " "%{script_filespec}" "%{output_filespec}" %{rest}
267
-
268
- - :default: "%T"
269
- :description: Format for time in window title
295
+ - :opt_name: execute_command_title_time_format
270
296
  :env_var: MDE_EXECUTE_COMMAND_TITLE_TIME_FORMAT
271
- :opt_name: execute_command_title_time_format
297
+ :description: Format for time in window title
298
+ :default: "%T"
272
299
  :procname: val_as_str
273
300
 
274
- - :arg_name: BOOL
275
- :default: false
276
- :description: Execute script in own window
301
+ - :opt_name: execute_in_own_window
302
+ :long_name: execute-in-own-window
303
+ :short_name: w
277
304
  :env_var: MDE_EXECUTE_IN_OWN_WINDOW
278
- :long_name: execute_in_own_window
279
- :opt_name: execute_in_own_window
305
+ :description: Execute script in own window
306
+ :arg_name: BOOL
307
+ :default: false
280
308
  :procname: val_as_bool
281
- :short_name: w
282
309
 
283
- - :default: fg_rgbh_7f_ff_00
284
- :description: execution_report_preview_frame_color
310
+ - :opt_name: execution_report_preview_frame_color
285
311
  :env_var: MDE_EXECUTION_REPORT_PREVIEW_FRAME_COLOR
286
- :opt_name: execution_report_preview_frame_color
312
+ :description: execution_report_preview_frame_color
313
+ :default: fg_rgbh_7f_ff_00
287
314
  :procname: val_as_str
288
315
 
289
- - :default: "\n -^-"
290
- :description: execution_report_preview_head
316
+ - :opt_name: execution_report_preview_head
291
317
  :env_var: MDE_EXECUTION_REPORT_PREVIEW_HEAD
292
- :opt_name: execution_report_preview_head
318
+ :description: execution_report_preview_head
293
319
  :procname: val_as_str
294
320
 
295
- - :default: " -v-"
321
+ - :opt_name: execution_report_preview_tail
296
322
  :description: execution_report_preview_tail
297
- :env_var: MDE_EXECUTION_REPORT_PREVIEW_TAIL
298
- :opt_name: execution_report_preview_tail
323
+ :default: " -v-"
299
324
  :procname: val_as_str
300
325
 
301
- - :description: Exit app
302
- :long_name: exit
303
- :procname: exit
326
+ - :long_name: exit
304
327
  :short_name: x
328
+ :description: Exit app
329
+ :procname: exit
305
330
 
306
331
  ## match fenced code indented by spaces
307
332
  #
308
- - :default: "^(?<indent>[ \t]*)`{3,}"
309
- :description: Matches the start and end of a fenced code block
333
+ - :opt_name: fenced_start_and_end_regex
310
334
  :env_var: MDE_FENCED_START_AND_END_REGEX
311
- :opt_name: fenced_start_and_end_regex
335
+ :description: Matches the start and end of a fenced code block
336
+ :default: "^(?<indent>[ \t]*)`{3,}"
312
337
  :procname: val_as_str
313
338
 
314
- - :default: "^(?<indent>[ \t]*)`{3,}(?<shell>[^`\\s]*) *(:(?<name>[^\\s]*))? *(?<rest>.*) *$"
315
- :description: Match the start of a fenced block
339
+ - :opt_name: fenced_start_extended_regex
316
340
  :env_var: MDE_FENCED_START_EXTENDED_REGEX
317
- :opt_name: fenced_start_extended_regex
341
+ :description: Match the start of a fenced block
342
+ :default: "^(?<indent>[ \t]*)`{3,}(?<shell>[^`\\s]*) *(:(?<name>[^\\s]*))? *(?<rest>.*) *$"
318
343
  :procname: val_as_str
319
344
 
320
- - :arg_name: RELATIVE_PATH
321
- :compreply: "."
322
- :description: Name of the document to load
323
- :env_var: MDE_FILENAME
345
+ - :opt_name: filename
324
346
  :long_name: filename
325
- :opt_name: filename
326
- :procname: val_as_str
327
347
  :short_name: f
348
+ :env_var: MDE_FILENAME
349
+ :description: Name of the document to load
350
+ :arg_name: RELATIVE_PATH
351
+ :compreply: "."
352
+ :procname: val_as_str
328
353
 
329
- - :arg_name: FIND
330
- :default: ''
354
+ - :long_name: find
355
+ :short_name: "?"
331
356
  :description: Find argument in documents
332
- :long_name: find
357
+ :arg_name: FIND
358
+ :default: ''
333
359
  :procname: find
334
- :short_name: "?"
335
360
 
336
- - :arg_name: FIND_PATH
337
- :default: ''
338
- :description: Path for find (uses PATH if empty)
339
- :env_var: MDE_FIND_PATH
361
+ - :opt_name: find_path
340
362
  :long_name: find-path
341
- :opt_name: find_path
363
+ :env_var: MDE_FIND_PATH
364
+ :description: Path for find (uses PATH if empty)
365
+ :arg_name: FIND_PATH
366
+ :default: ''
342
367
  :procname: val_as_str
343
368
 
344
- - :default: "^#(?<line>(?!#)(?<indent>[ \t]*)(?<text>.*?)(?<trailing>[ \t]*))?$"
369
+ - :opt_name: heading1_match
345
370
  :env_var: MDE_HEADING1_MATCH
346
- :opt_name: heading1_match
371
+ :default: "^#(?<line>(?!#)(?<indent>[ \t]*)(?<text>.*?)(?<trailing>[ \t]*))?$"
347
372
  :procname: val_as_str
348
373
 
349
- - :default: "^##(?<line>(?!#)(?<indent>[ \t]*)(?<text>.*?)(?<trailing>[ \t]*))?$"
374
+ - :opt_name: heading2_match
350
375
  :env_var: MDE_HEADING2_MATCH
351
- :opt_name: heading2_match
376
+ :default: "^##(?<line>(?!#)(?<indent>[ \t]*)(?<text>.*?)(?<trailing>[ \t]*))?$"
352
377
  :procname: val_as_str
353
378
 
354
- - :default: "^###(?<line>(?<indent>[ \t]*)(?<text>.*?)(?<trailing>[ \t]*))?$"
379
+ - :opt_name: heading3_match
355
380
  :env_var: MDE_HEADING3_MATCH
356
- :opt_name: heading3_match
381
+ :default: "^###(?<line>(?<indent>[ \t]*)(?<text>.*?)(?<trailing>[ \t]*))?$"
357
382
  :procname: val_as_str
358
383
 
359
- - :description: App help
360
- :long_name: help
361
- :procname: help
384
+ - :long_name: help
362
385
  :short_name: h
386
+ :description: App help
387
+ :procname: help
363
388
 
364
- - :arg_name: BOOL
365
- :default: true
389
+ - :opt_name: hide_blocks_by_name
390
+ :env_var: MDE_HIDE_BLOCKS_BY_NAME
366
391
  :description: |-
367
392
  Exclude blocks with name matching expression " \
368
393
  "`block_name_hidden_match`
369
- :env_var: MDE_HIDE_BLOCKS_BY_NAME
370
- :opt_name: hide_blocks_by_name
394
+ :arg_name: BOOL
395
+ :default: true
371
396
  :procname: val_as_bool
372
397
 
373
- - :default: "|"
398
+ - :opt_name: history
399
+ :long_name: history
400
+ :description: History
401
+
402
+ - :opt_name: history_document_separator
374
403
  :env_var: MDE_HISTORY_DOCUMENT_SEPARATOR
375
- :opt_name: history_document_separator
404
+ :default: "|"
376
405
  :procname: val_as_str
377
406
 
378
- - :default: "&"
407
+ - :opt_name: history_property_separator
379
408
  :env_var: MDE_HISTORY_PROPERTY_SEPARATOR
380
- :opt_name: history_property_separator
409
+ :default: "&"
381
410
  :procname: val_as_str
382
411
 
383
- - :arg_name: HOW
384
- :default: ''
412
+ - :long_name: how
413
+ :short_name: "?"
385
414
  :description: Find keyword in YAML configuration options
386
- :long_name: how
415
+ :arg_name: HOW
416
+ :default: ''
387
417
  :procname: how
388
- :short_name: "?"
389
418
 
390
- - :default:
419
+ - :opt_name: import_paths
391
420
  :env_var: MDE_IMPORT_PATHS
392
- :opt_name: import_paths
421
+ :default:
393
422
  :procname: val_as_str
394
423
 
395
- - :default: "^ *@import +(?<name>.+?) *$"
424
+ - :opt_name: import_pattern
396
425
  :env_var: MDE_IMPORT_PATTERN
397
- :opt_name: import_pattern
426
+ :default: "^ *@import +(?<name>.+?) *$"
398
427
  :procname: val_as_str
399
428
 
400
- - :default:
401
- - :color_method: :bold_underline
402
- :pattern: '\*\*_([^_]{0,64})_\*\*'
403
-
404
- - :color_method: :bold_italic
405
- :pattern: '\*\*~([^~]{0,64})~\*\*'
406
-
407
- - :color_method: :bold
408
- :pattern: '\*\*([^*]{0,64})\*\*'
409
- - :color_method: :bold
410
- :pattern: '__([^_]{0,64})__'
411
-
412
- - :color_method: :underline
413
- :pattern: '\*([^*]{0,64})\*'
414
-
415
- - :color_method: :underline_italic
416
- :pattern: '_~([^_]{0,64})~_'
417
-
418
- - :color_method: strikethrough
419
- :pattern: '~~([^~]{0,64})~~'
420
- :description: Line-oriented text decoration (Main)
429
+ - :opt_name: line_decor_main
421
430
  :env_var: MDE_LINE_DECOR_MAIN
422
- :opt_name: line_decor_main
423
- :procname: val_as_str
424
-
425
- - :default: []
426
- :description: Line-oriented text decoration (Post)
431
+ :description: Line-oriented text decoration (Main)
432
+ :default:
433
+ - :color_method: :bold_underline
434
+ :pattern: '\*\*_([^_]{0,64})_\*\*'
435
+ - :color_method: :bold_italic
436
+ :pattern: '\*\*~([^~]{0,64})~\*\*'
437
+ - :color_method: :bold
438
+ :pattern: '\*\*([^*]{0,64})\*\*'
439
+ - :color_method: :italic
440
+ :pattern: '`([^`]{0,64})`'
441
+ - :color_method: :underline
442
+ :pattern: __([^_]{0,64})__
443
+ - :color_method: :underline_italic
444
+ :pattern: _~([^_]{0,64})~_
445
+ - :color_method: strikethrough
446
+ :pattern: '~~([^~]{0,64})~~'
447
+
448
+ - :opt_name: line_decor_post
427
449
  :env_var: MDE_LINE_DECOR_POST
428
- :opt_name: line_decor_post
450
+ :description: Line-oriented text decoration (Post)
451
+ :default: []
429
452
  :procname: val_as_str
430
453
 
431
- - :default: []
432
- :description: Line-oriented text decoration (Pre)
454
+ - :opt_name: line_decor_pre
433
455
  :env_var: MDE_LINE_DECOR_PRE
434
- :opt_name: line_decor_pre
456
+ :description: Line-oriented text decoration (Pre)
457
+ :default: []
435
458
  :procname: val_as_str
436
459
 
437
- - :description: List blocks
460
+ - :opt_name: list_blocks
438
461
  :long_name: list-blocks
439
- :opt_name: list_blocks
440
- :procname: val_as_bool
462
+ :description: List blocks
441
463
 
442
- - :arg_name: INT.1-
443
- :default: 32
444
- :description: Max. items to return in list
445
- :env_var: MDE_LIST_COUNT
464
+ - :opt_name: list_blocks_eval
465
+ :long_name: list-blocks-eval
466
+ :env_var: MDE_LIST_BLOCKS_EVAL
467
+ :description: Eval block, supercedes Message, for report
468
+ :arg_name: EVAL
469
+ :default:
470
+ :procname: val_as_str
471
+
472
+ - :opt_name: list_blocks_message
473
+ :long_name: list-blocks-message
474
+ :env_var: MDE_LIST_BLOCKS_MESSAGE
475
+ :description: Message to blocks, for report
476
+ :arg_name: MESSAGE
477
+ :default: oname
478
+ :procname: val_as_sym
479
+
480
+ - :opt_name: list_blocks_type
481
+ :long_name: list-blocks-type
482
+ :env_var: MDE_LIST_BLOCKS_TYPE
483
+ :description: Block type to report
484
+ :arg_name: TYPE
485
+ :default: 0
486
+ :procname: val_as_int
487
+
488
+ - :opt_name: list_count
446
489
  :long_name: list-count
447
- :opt_name: list_count
490
+ :env_var: MDE_LIST_COUNT
491
+ :description: Max. items to return in list
492
+ :arg_name: INT.1-
493
+ :default: 32
448
494
  :procname: val_as_int
449
495
 
450
- - :description: List default configuration as environment variables
496
+ - :opt_name: list_default_env
451
497
  :long_name: list-default-env
452
- :opt_name: list_default_env
498
+ :description: List default configuration as environment variables
453
499
 
454
- - :description: List default configuration as YAML
500
+ - :opt_name: list_default_yaml
455
501
  :long_name: list-default-yaml
456
- :opt_name: list_default_yaml
502
+ :description: List default configuration as YAML
457
503
 
458
- - :description: List docs in current folder
504
+ - :opt_name: list_docs
459
505
  :long_name: list-docs
460
- :opt_name: list_docs
461
- :procname: val_as_bool
506
+ :description: List docs in current folder
462
507
 
463
- - :description: List recent saved output
508
+ - :opt_name: list_output_format
509
+ :long_name: format
510
+ :env_var: MDE_OUTPUT_LIST_FORMAT
511
+ :description: Format for list
512
+ :arg_name: FORMAT
513
+ :default: text
514
+ :procname: val_as_sym
515
+
516
+ - :opt_name: list_recent_output
464
517
  :long_name: list-recent-output
465
- :opt_name: list_recent_output
466
- :procname: val_as_bool
518
+ :description: List recent saved output
467
519
 
468
- - :description: List recent saved scripts
520
+ - :opt_name: list_recent_scripts
469
521
  :long_name: list-recent-scripts
470
- :opt_name: list_recent_scripts
471
- :procname: val_as_bool
522
+ :description: List recent saved scripts
472
523
 
473
- - :arg_name: PATH
474
- :default: ''
475
- :description: Load code
476
- :env_var: MDE_LOAD_CODE
524
+ - :opt_name: load_code
477
525
  :long_name: load-code
478
- :opt_name: load_code
479
- :procname: val_as_str
480
526
  :short_name: l
527
+ :env_var: MDE_LOAD_CODE
528
+ :description: Load code
529
+ :arg_name: PATH
530
+ :default: ''
531
+ :procname: val_as_str
481
532
 
482
- - :arg_name: PREFIX
483
- :default: mde
484
- :description: Name prefix for stdout files
533
+ - :opt_name: logged_stdout_filename_prefix
485
534
  :env_var: MDE_LOGGED_STDOUT_FILENAME_PREFIX
486
- :opt_name: logged_stdout_filename_prefix
535
+ :description: Name prefix for stdout files
536
+ :arg_name: PREFIX
537
+ :default: mde
487
538
  :procname: val_as_str
488
539
 
489
- - :default: "*.[Mm][Dd]"
540
+ - :opt_name: md_filename_glob
490
541
  :env_var: MDE_MD_FILENAME_GLOB
491
- :opt_name: md_filename_glob
542
+ :default: "*.[Mm][Dd]"
492
543
  :procname: val_as_str
493
544
 
494
- - :default: ".+\\.md"
545
+ - :opt_name: md_filename_match
495
546
  :env_var: MDE_MD_FILENAME_MATCH
496
- :opt_name: md_filename_match
547
+ :default: ".+\\.md"
497
548
  :procname: val_as_str
498
549
 
499
- - :arg_name: BOOL
500
- :default: true
501
- :description: Display Back option at top of menu (vs bottom)
550
+ - :opt_name: menu_back_at_top
502
551
  :env_var: MDE_MENU_BACK_AT_TOP
503
- :opt_name: menu_back_at_top
552
+ :description: Display Back option at top of menu (vs bottom)
553
+ :arg_name: BOOL
554
+ :default: true
504
555
  :procname: val_as_bool
505
556
 
506
- - :default: fg_rgbh_00_c0_c0
507
- :description: Color of menu bash
557
+ - :opt_name: menu_bash_color
508
558
  :env_var: MDE_MENU_BASH_COLOR
509
- :opt_name: menu_bash_color
559
+ :description: Color of menu bash
560
+ :default: fg_rgbh_00_c0_c0
510
561
  :procname: val_as_str
511
562
 
512
- - :arg_name: BOOL
513
- :default: false
514
- :description: Display document name in block selection menu
563
+ - :opt_name: menu_blocks_with_docname
515
564
  :env_var: MDE_MENU_BLOCKS_WITH_DOCNAME
516
- :opt_name: menu_blocks_with_docname
565
+ :description: Display document name in block selection menu
566
+ :arg_name: BOOL
567
+ :default: false
517
568
  :procname: val_as_bool
518
569
 
519
- - :arg_name: BOOL
520
- :default: true
521
- :description: Controls whether headings(levels 1,2,3) are displayed in the block selection menu
570
+ - :opt_name: menu_blocks_with_headings
522
571
  :env_var: MDE_MENU_BLOCKS_WITH_HEADINGS
523
- :opt_name: menu_blocks_with_headings
572
+ :description: Controls whether headings(levels 1,2,3) are displayed in the block selection menu
573
+ :arg_name: BOOL
574
+ :default: true
524
575
  :procname: val_as_bool
525
576
 
526
- - :default: fg_rgbh_40_c0_c0
527
- :description: Color of menu chrome
577
+ - :opt_name: menu_chrome_color
528
578
  :env_var: MDE_MENU_CHROME_COLOR
529
- :opt_name: menu_chrome_color
579
+ :description: Color of menu chrome
580
+ :default: fg_rgbh_40_c0_c0
530
581
  :procname: val_as_str
531
582
 
532
- - :default: "%{line}"
533
- :description: format for menu chromes
583
+ - :opt_name: menu_chrome_format
534
584
  :env_var: MDE_MENU_CHROME_FORMAT
535
- :opt_name: menu_chrome_format
585
+ :description: format for menu chromes
586
+ :default: "%{line}"
536
587
  :procname: val_as_str
537
588
 
538
- - :default: fg_rgbh_80_d0_c0
539
- :description: Color of menu divider
589
+ - :opt_name: menu_divider_color
540
590
  :env_var: MDE_MENU_DIVIDER_COLOR
541
- :opt_name: menu_divider_color
591
+ :description: Color of menu divider
592
+ :default: fg_rgbh_80_d0_c0
542
593
  :procname: val_as_str
543
594
 
544
- - :default: "-:= %{line} =:-"
545
- :description: format for menu dividers and demarcations
595
+ - :opt_name: menu_divider_format
546
596
  :env_var: MDE_MENU_DIVIDER_FORMAT
547
- :opt_name: menu_divider_format
597
+ :description: format for menu dividers and demarcations
598
+ :default: "-:= %{line} =:-"
548
599
  :procname: val_as_str
549
600
 
550
- - :default: "^(?<indent>[ \t]*):::(?<line>(?<text>.*?)(?<trailing>[ \t]*))?$"
551
- :description: Pattern for topics/dividers in block selection menu
601
+ - :opt_name: menu_divider_match
552
602
  :env_var: MDE_MENU_DIVIDER_MATCH
553
- :opt_name: menu_divider_match
603
+ :description: Pattern for topics/dividers in block selection menu
604
+ :default: "^(?<indent>[ \t]*):::(?<line>(?<text>.*?)(?<trailing>[ \t]*))?$"
554
605
  :procname: val_as_str
555
606
 
556
- - :default: ">"
557
- :description: Symbol before each divider
607
+ - :opt_name: menu_divider_symbol
558
608
  :env_var: MDE_MENU_DIVIDER_SYMBOL
559
- :opt_name: menu_divider_symbol
609
+ :description: Symbol before each divider
610
+ :default: ">"
560
611
  :procname: val_as_str
561
612
 
562
- - :arg_name: BOOL
563
- :default: true
564
- :description: Display Exit option at top of menu (vs bottom)
613
+ - :opt_name: menu_exit_at_top
565
614
  :env_var: MDE_MENU_EXIT_AT_TOP
566
- :opt_name: menu_exit_at_top
615
+ :description: Display Exit option at top of menu (vs bottom)
616
+ :arg_name: BOOL
617
+ :default: true
567
618
  :procname: val_as_bool
568
619
 
569
- - :arg_name: BOOL
570
- :default: false
571
- :description: Display Load option at top of menu (vs bottom)
620
+ - :opt_name: menu_load_at_top
572
621
  :env_var: MDE_MENU_LOAD_AT_TOP
573
- :opt_name: menu_load_at_top
622
+ :description: Display Load option at top of menu (vs bottom)
623
+ :arg_name: BOOL
624
+ :default: false
574
625
  :procname: val_as_bool
575
626
 
576
- - :default:
577
- :line: "~~~"
578
- :description: closing demarcations for menu
627
+ - :opt_name: menu_final_divider
579
628
  :env_var: MDE_MENU_FINAL_DIVIDER
580
- :opt_name: menu_final_divider
581
- :procname: val_as_str
629
+ :description: closing demarcations for menu
630
+ :default:
631
+ :line: "~~~"
582
632
 
583
- - :default: fg_bg_rgbh_80_80_c0_10_10_20
584
- :description: Color for heading 1 in menu
633
+ - :opt_name: menu_heading1_color
585
634
  :env_var: MDE_MENU_HEADING1_COLOR
586
- :opt_name: menu_heading1_color
635
+ :description: Color for heading 1 in menu
636
+ :default: fg_bg_rgbh_80_80_c0_10_10_20
587
637
  :procname: val_as_str
588
638
 
589
- # strip heading tag
590
- - :default: "%{line}"
591
- :description: format for menu heading1 in menu
639
+ - :opt_name: menu_heading1_format
592
640
  :env_var: MDE_MENU_HEADING1_FORMAT
593
- :opt_name: menu_heading1_format
641
+ :description: format for menu heading1 in menu
642
+ :default: "%{line}"
594
643
  :procname: val_as_str
595
644
 
596
- - :default: fg_bg_rgbh_60_60_c0_10_10_20
597
- :description: Color for heading 2 in menu
645
+ - :opt_name: menu_heading2_color
598
646
  :env_var: MDE_MENU_HEADING2_COLOR
599
- :opt_name: menu_heading2_color
647
+ :description: Color for heading 2 in menu
648
+ :default: fg_bg_rgbh_60_60_c0_10_10_20
600
649
  :procname: val_as_str
601
650
 
602
- # strip heading tag
603
- - :default: "%{line}"
604
- :description: format for menu heading2 in menu
651
+ - :opt_name: menu_heading2_format
605
652
  :env_var: MDE_MENU_HEADING2_FORMAT
606
- :opt_name: menu_heading2_format
653
+ :description: format for menu heading2 in menu
654
+ :default: "%{line}"
607
655
  :procname: val_as_str
608
656
 
609
- - :default: fg_bg_rgbh_40_40_c0_10_10_20
610
- :description: Color for heading 3 in menu
657
+ - :opt_name: menu_heading3_color
611
658
  :env_var: MDE_MENU_HEADING3_COLOR
612
- :opt_name: menu_heading3_color
659
+ :description: Color for heading 3 in menu
660
+ :default: fg_bg_rgbh_40_40_c0_10_10_20
613
661
  :procname: val_as_str
614
662
 
615
- # strip heading tag
616
- - :default: "%{line}"
617
- :description: format for menu heading3 in menu
663
+ - :opt_name: menu_heading3_format
618
664
  :env_var: MDE_MENU_HEADING3_FORMAT
619
- :opt_name: menu_heading3_format
665
+ :description: format for menu heading3 in menu
666
+ :default: "%{line}"
620
667
  :procname: val_as_str
621
668
 
622
- - :default: '0'
623
- :description: Import levels for blocks to appear in menu. Empty is all.
669
+ - :opt_name: menu_import_level_match
624
670
  :env_var: MDE_MENU_IMPORT_LEVEL_MATCH
625
- :opt_name: menu_import_level_match
671
+ :description: Import levels for blocks to appear in menu. Empty is all.
672
+ :default: '0'
626
673
  :procname: val_as_str
627
674
 
628
- - :arg_name: BOOL
629
- :default: true
630
- :description: Include imported blocks in menu
675
+ - :opt_name: menu_include_imported_blocks
631
676
  :env_var: MDE_MENU_INCLUDE_IMPORTED_BLOCKS
632
- :opt_name: menu_include_imported_blocks
677
+ :description: Include imported blocks in menu
678
+ :arg_name: BOOL
679
+ :default: true
633
680
  :procname: val_as_bool
634
681
 
635
- - :arg_name: BOOL
636
- :default: false
637
- # :description: Include imported notes in menu
638
- :description: Whether imported blocks should be included in the menu
682
+ - :opt_name: menu_include_imported_notes
639
683
  :env_var: MDE_MENU_INCLUDE_IMPORTED_NOTES
640
- :opt_name: menu_include_imported_notes
684
+ :description: Whether imported blocks should be included in the menu
685
+ :arg_name: BOOL
686
+ :default: false
641
687
  :procname: val_as_bool
642
688
 
643
- - :arg_name: BOOL
644
- :default: true
645
- :description: Display inherited lines at top of menu (vs bottom)
689
+ - :opt_name: menu_inherited_lines_at_top
646
690
  :env_var: MDE_MENU_INHERITED_LINES_AT_TOP
647
- :opt_name: menu_inherited_lines_at_top
691
+ :description: Display inherited lines at top of menu (vs bottom)
692
+ :arg_name: BOOL
693
+ :default: true
648
694
  :procname: val_as_bool
649
695
 
650
- - :default: fg_rgbh_94_00_D3
651
- :description: Color of inherited lines in menu
696
+ - :opt_name: menu_inherited_lines_color
652
697
  :env_var: MDE_MENU_INHERITED_LINES_COLOR
653
- :opt_name: menu_inherited_lines_color
698
+ :description: Color of inherited lines in menu
699
+ :default: fg_rgbh_94_00_D3
654
700
  :procname: val_as_str
655
701
 
656
- - :default: "%{line}"
657
- :description: format for inherited lines in menu
702
+ - :opt_name: menu_inherited_lines_edit_always
703
+ :env_var: MDE_INHERITED_LINES_EDIT_ALWAYS
704
+ :description: Display Edit option always (when no lines exist)
705
+ :arg_name: BOOL
706
+ :default: false
707
+ :procname: val_as_bool
708
+
709
+ - :opt_name: menu_inherited_lines_format
658
710
  :env_var: MDE_MENU_INHERITED_LINES_FORMAT
659
- :opt_name: menu_inherited_lines_format
711
+ :description: format for inherited lines in menu
712
+ :default: "%{line}"
660
713
  :procname: val_as_str
661
714
 
662
- - :default:
663
- :line: ''
664
- :description: opening demarcation for menu
715
+ - :opt_name: menu_initial_divider
665
716
  :env_var: MDE_MENU_INITIAL_DIVIDER
666
- :opt_name: menu_initial_divider
667
- :procname: val_as_str
717
+ :description: opening demarcation for menu
718
+ :default:
719
+ :line: ''
668
720
 
669
- - :default: fg_rgbh_e0_e0_20
670
- :description: Color of menu link
721
+ - :opt_name: menu_link_color
671
722
  :env_var: MDE_MENU_LINK_COLOR
672
- :opt_name: menu_link_color
723
+ :description: Color of menu link
724
+ :default: fg_rgbh_e0_e0_20
673
725
  :procname: val_as_str
674
726
 
675
- - :default: "%{line}"
676
- :description: format for menu link
727
+ - :opt_name: menu_link_format
677
728
  :env_var: MDE_MENU_LINK_FORMAT
678
- :opt_name: menu_link_format
729
+ :description: format for menu link
730
+ :default: "%{line}"
679
731
  :procname: val_as_str
680
732
 
681
- - :default: fg_rgbh_c0_c0_c0
682
- :description: Color of menu note
733
+ - :opt_name: menu_note_color
683
734
  :env_var: MDE_MENU_NOTE_COLOR
684
- :opt_name: menu_note_color
735
+ :description: Color of menu note
736
+ :default: fg_rgbh_c0_c0_c0
685
737
  :procname: val_as_str
686
738
 
687
- - :default: "%{line}"
688
- :description: format for menu notes
739
+ - :opt_name: menu_note_format
689
740
  :env_var: MDE_MENU_NOTE_FORMAT
690
- :opt_name: menu_note_format
741
+ :description: format for menu notes
742
+ :default: "%{line}"
691
743
  :procname: val_as_str
692
744
 
693
745
  ## lines that start with "/" are comments (hidden), not notes (visible)
694
746
  # - :default: "^(?<indent>[ \t]*)(?<line>(?!/)(?<text>.*?)(?<trailing>[ \t]*))?$"
695
- - :default: "^(?<line>(?![ \t]*/)(?<text>.*?)(?<trailing>[ \t]*))?$"
696
- :description: Pattern for notes in block selection menu
747
+ - :opt_name: menu_note_match
697
748
  :env_var: MDE_MENU_NOTE_MATCH
698
- :opt_name: menu_note_match
749
+ :description: Pattern for notes in block selection menu
750
+ :default: "^(?<line>(?![ \t]*/)(?<text>.*?)(?<trailing>[ \t]*))?$"
699
751
  :procname: val_as_str
700
752
 
701
- - :default:
702
- :line: "* Back"
703
- :description: Text for Back option
753
+ - :opt_name: menu_option_back_name
704
754
  :env_var: MDE_MENU_OPTION_BACK_NAME
705
- :opt_name: menu_option_back_name
706
- :procname: val_as_str
755
+ :description: Text for Back option
756
+ :default:
757
+ :line: "* Back"
707
758
 
708
- - :default:
709
- :line: "* Edit"
710
- :description: Text for Edit option
759
+ - :opt_name: menu_option_edit_name
711
760
  :env_var: MDE_MENU_OPTION_EDIT_NAME
712
- :opt_name: menu_option_edit_name
713
- :procname: val_as_str
761
+ :description: Text for Edit option
762
+ :default:
763
+ :line: "* Edit"
714
764
 
715
- - :default:
716
- :line: "* Exit"
717
- :description: Text for Exit option
765
+ - :opt_name: menu_option_exit_name
718
766
  :env_var: MDE_MENU_OPTION_EXIT_NAME
719
- :opt_name: menu_option_exit_name
720
- :procname: val_as_str
767
+ :description: Text for Exit option
768
+ :default:
769
+ :line: "* Exit"
721
770
 
722
- - :default:
723
- :line: "* History"
724
- :description: Text for History option
771
+ - :opt_name: menu_option_history_name
725
772
  :env_var: MDE_MENU_OPTION_HISTORY_NAME
726
- :opt_name: menu_option_history_name
727
- :procname: val_as_str
773
+ :description: Text for History option
774
+ :default:
775
+ :line: "* History"
728
776
 
729
- - :default:
730
- :line: "* Load"
731
- :description: Text for Load option
777
+ - :opt_name: menu_option_load_name
732
778
  :env_var: MDE_MENU_OPTION_LOAD_NAME
733
- :opt_name: menu_option_load_name
734
- :procname: val_as_str
779
+ :description: Text for Load option
780
+ :default:
781
+ :line: "* Load"
735
782
 
736
- - :default:
737
- :line: "* Save"
738
- :description: Text for Save option
783
+ - :opt_name: menu_option_save_name
739
784
  :env_var: MDE_MENU_OPTION_SAVE_NAME
740
- :opt_name: menu_option_save_name
741
- :procname: val_as_str
785
+ :description: Text for Save option
786
+ :default:
787
+ :line: "* Save"
742
788
 
743
- - :default:
744
- :line: "! Shell"
745
- :description: Text for Shell option
789
+ - :opt_name: menu_option_shell_name
746
790
  :env_var: MDE_MENU_OPTION_SHELL_NAME
747
- :opt_name: menu_option_shell_name
748
- :procname: val_as_str
791
+ :description: Text for Shell option
792
+ :default:
793
+ :line: "! Shell"
749
794
 
750
- - :default:
751
- :line: "* View"
752
- :description: Text for View option
795
+ - :opt_name: menu_option_view_name
753
796
  :env_var: MDE_MENU_OPTION_VIEW_NAME
754
- :opt_name: menu_option_view_name
755
- :procname: val_as_str
797
+ :description: Text for View option
798
+ :default:
799
+ :line: "* View"
756
800
 
757
- - :default: fg_rgbh_ff_00_ff
758
- :description: Color of menu opts
801
+ - :opt_name: menu_opts_color
759
802
  :env_var: MDE_MENU_OPTS_COLOR
760
- :opt_name: menu_opts_color
803
+ :description: Color of menu opts
804
+ :default: fg_rgbh_ff_00_ff
761
805
  :procname: val_as_str
762
806
 
763
- - :default: fg_rgbh_7f_00_ff
764
- :description: Color of menu opts
807
+ - :opt_name: menu_opts_set_color
765
808
  :env_var: MDE_MENU_OPTS_SET_COLOR
766
- :opt_name: menu_opts_set_color
809
+ :description: Color of menu opts
810
+ :default: fg_rgbh_7f_00_ff
767
811
  :procname: val_as_str
768
812
 
769
- - :default: "%{key} = %{value}\n"
770
- :description: format for menu opts output
813
+ - :opt_name: menu_opts_set_format
771
814
  :env_var: MDE_MENU_OPTS_SET_FORMAT
772
- :opt_name: menu_opts_set_format
815
+ :description: format for menu opts output
816
+ :default: "%{key} = %{value}\n"
773
817
  :procname: val_as_str
774
818
 
775
- - :default: "."
776
- :description: Block name to display menu
819
+ - :opt_name: menu_persist_block_name
777
820
  :env_var: MDE_MENU_PERSIST_BLOCK_NAME
778
- :opt_name: menu_persist_block_name
821
+ :description: Block name to display menu
822
+ :default: "."
779
823
  :procname: val_as_str
780
824
 
781
- - :arg_name: BOOL
782
- :default: true
783
- :description: Resize terminal when displaying menu.
825
+ - :opt_name: menu_resize_terminal
784
826
  :env_var: MDE_MENU_RESIZE_TERMINAL
785
- :opt_name: menu_resize_terminal
827
+ :description: Resize terminal when displaying menu.
828
+ :arg_name: BOOL
829
+ :default: true
786
830
  :procname: val_as_bool
787
831
 
788
- - :default: fg_rgbh_ff_ff_ff
789
- :description: Color of menu task
832
+ - :opt_name: menu_task_color
790
833
  :env_var: MDE_MENU_TASK_COLOR
791
- :opt_name: menu_task_color
834
+ :description: Color of menu task
835
+ :default: fg_rgbh_ff_ff_ff
792
836
  :procname: val_as_str
793
837
 
794
- - :default: "%{name} [%{status}]"
795
- :description: format for menu tasks and demarcations
838
+ - :opt_name: menu_task_format
796
839
  :env_var: MDE_MENU_TASK_FORMAT
797
- :opt_name: menu_task_format
840
+ :description: format for menu tasks and demarcations
841
+ :default: "%{name} [%{status}]"
798
842
  :procname: val_as_str
799
843
 
800
- - :default: "^ *\\[(?<status>.{1,4})\\] *(?<name>.*) *$"
801
- :description: Pattern for tasks
844
+ - :opt_name: menu_task_match
802
845
  :env_var: MDE_MENU_TASK_MATCH
803
- :opt_name: menu_task_match
846
+ :description: Pattern for tasks
847
+ :default: "^ *\\[(?<status>.{1,4})\\] *(?<name>.*) *$"
804
848
  :procname: val_as_str
805
849
 
806
- - :default: ">"
807
- :description: Symbol before each task
850
+ - :opt_name: menu_task_symbol
808
851
  :env_var: MDE_MENU_TASK_SYMBOL
809
- :opt_name: menu_task_symbol
852
+ :description: Symbol before each task
853
+ :default: ">"
810
854
  :procname: val_as_str
811
855
 
812
- - :default: fg_rgbh_ff_a0_ff
813
- :description: Color of menu vars
856
+ - :opt_name: menu_vars_color
814
857
  :env_var: MDE_MENU_VARS_COLOR
815
- :opt_name: menu_vars_color
858
+ :description: Color of menu vars
859
+ :default: fg_rgbh_ff_a0_ff
816
860
  :procname: val_as_str
817
861
 
818
- - :default: fg_rgbh_00_ff_ff
819
- :description: Color of menu vars
862
+ - :opt_name: menu_vars_set_color
820
863
  :env_var: MDE_MENU_VARS_SET_COLOR
821
- :opt_name: menu_vars_set_color
864
+ :description: Color of menu vars
865
+ :default: fg_rgbh_00_ff_ff
822
866
  :procname: val_as_str
823
867
 
824
- - :default: "%{key} = %{value}\n"
825
- :description: format for menu vars output
868
+ - :opt_name: menu_vars_set_format
826
869
  :env_var: MDE_MENU_VARS_SET_FORMAT
827
- :opt_name: menu_vars_set_format
870
+ :description: format for menu vars output
871
+ :default: "%{key} = %{value}\n"
828
872
  :procname: val_as_str
829
873
 
830
- - :arg_name: BOOL
831
- :default: true
832
- :description: Display Back option in menu
874
+ - :opt_name: menu_with_back
833
875
  :env_var: MDE_MENU_WITH_BACK
834
- :opt_name: menu_with_back
876
+ :description: Display Back option in menu
877
+ :arg_name: BOOL
878
+ :default: true
835
879
  :procname: val_as_bool
836
880
 
837
- - :arg_name: BOOL
838
- :default: true
839
- :description: Display Exit option in menu
881
+ - :opt_name: menu_with_exit
840
882
  :env_var: MDE_MENU_WITH_EXIT
841
- :opt_name: menu_with_exit
883
+ :description: Display Exit option in menu
884
+ :arg_name: BOOL
885
+ :default: true
842
886
  :procname: val_as_bool
843
887
 
844
- - :arg_name: BOOL
845
- :default: false
846
- :description: Display inherited lines in menu
888
+ - :opt_name: menu_with_inherited_lines
847
889
  :env_var: MDE_MENU_WITH_INHERITED_LINES
848
- :opt_name: menu_with_inherited_lines
890
+ :description: Display inherited lines in menu
891
+ :arg_name: BOOL
892
+ :default: false
849
893
  :procname: val_as_bool
850
894
 
851
- - :arg_name: BOOL
852
- :default: true
853
- :description: Display Shell option in menu
895
+ - :opt_name: menu_with_shell
854
896
  :env_var: MDE_MENU_WITH_SHELL
855
- :opt_name: menu_with_shell
897
+ :description: Display Shell option in menu
898
+ :arg_name: BOOL
899
+ :default: true
856
900
  :procname: val_as_bool
857
901
 
858
- - :arg_name: BOOL
859
- :default: false
860
- :description: Hide decorative menu entries
902
+ - :opt_name: mine
903
+ :long_name: mine
904
+ :description: Mine history (List lines matched by probe)
905
+
906
+ - :opt_name: no_chrome
861
907
  :env_var: MDE_NO_CHROME
862
- :opt_name: no_chrome
908
+ :description: Hide decorative menu entries
909
+ :arg_name: BOOL
910
+ :default: false
863
911
  :procname: val_as_bool
864
912
 
865
- - :arg_name: OPEN
866
- :default: ''
913
+ - :long_name: open
914
+ :short_name: o
867
915
  :description: Find argument in documents, present list, and open user selection
868
- :long_name: open
916
+ :arg_name: OPEN
917
+ :default: ''
869
918
  :procname: open
870
- :short_name: o
871
919
 
872
- - :default:
873
- :description: Expression to match to start collecting lines
920
+ - :opt_name: output_assignment_begin
874
921
  :env_var: MDE_OUTPUT_ASSIGNMENT_BEGIN
875
- :opt_name: output_assignment_begin
922
+ :description: Expression to match to start collecting lines
923
+ :default:
876
924
  :procname: val_as_str
877
925
 
878
- - :default:
879
- :description: Expression to match to stop collecting lines
926
+ - :opt_name: output_assignment_end
880
927
  :env_var: MDE_OUTPUT_ASSIGNMENT_END
881
- :opt_name: output_assignment_end
928
+ :description: Expression to match to stop collecting lines
929
+ :default:
882
930
  :procname: val_as_str
883
931
 
884
- - :default: "%{line}"
885
- :description: Format for assignments from output
932
+ - :opt_name: output_assignment_format
886
933
  :env_var: MDE_OUTPUT_ASSIGNMENT_FORMAT
887
- :opt_name: output_assignment_format
934
+ :description: Format for assignments from output
935
+ :default: "%{line}"
888
936
  :procname: val_as_str
889
937
 
890
- - :default: "^ *(?<line>\\w+=.*?) *$"
891
- :description: Pattern for assignments from output
938
+ - :opt_name: output_assignment_match
892
939
  :env_var: MDE_OUTPUT_ASSIGNMENT_MATCH
893
- :opt_name: output_assignment_match
940
+ :description: Pattern for assignments from output
941
+ :default: "^ *(?<line>\\w+=.*?) *$"
894
942
  :procname: val_as_str
895
943
 
896
- - :arg_name: BOOL
897
- :default: false
898
- :description: Display summary for execution
944
+ - :opt_name: output_execution_summary
899
945
  :env_var: MDE_OUTPUT_EXECUTION_SUMMARY
900
- :opt_name: output_execution_summary
946
+ :description: Display summary for execution
947
+ :arg_name: BOOL
948
+ :default: false
901
949
  :procname: val_as_bool
902
950
 
903
- - :default: "%{name}: %{value}"
904
- :description: format for menu dividers and demarcations
951
+ - :opt_name: output_execution_label_format
905
952
  :env_var: MDE_OUTPUT_EXECUTION_LABEL_FORMAT
906
- :opt_name: output_execution_label_format
953
+ :description: format for menu dividers and demarcations
954
+ :default: "%{name}: %{value}"
907
955
  :procname: val_as_str
908
956
 
909
- - :default: fg_rgbh_00_ff_00
910
- :description: Color of output_execution_label_name
957
+ - :opt_name: output_execution_label_name_color
911
958
  :env_var: MDE_OUTPUT_EXECUTION_LABEL_NAME_COLOR
912
- :opt_name: output_execution_label_name_color
959
+ :description: Color of output_execution_label_name
960
+ :default: fg_rgbh_00_ff_00
913
961
  :procname: val_as_str
914
962
 
915
- - :default: fg_rgbh_00_ff_00
916
- :description: Color of output_execution_label_value
963
+ - :opt_name: output_execution_label_value_color
917
964
  :env_var: MDE_OUTPUT_EXECUTION_LABEL_VALUE_COLOR
918
- :opt_name: output_execution_label_value_color
965
+ :description: Color of output_execution_label_value
966
+ :default: fg_rgbh_00_ff_00
919
967
  :procname: val_as_str
920
968
 
921
- - :arg_name: BOOL
922
- :default: true
923
- :description: Output execution report at end of execution
969
+ - :opt_name: output_execution_report
924
970
  :env_var: MDE_OUTPUT_EXECUTION_REPORT
925
- :opt_name: output_execution_report
971
+ :description: Output execution report at end of execution
972
+ :arg_name: BOOL
973
+ :default: true
926
974
  :procname: val_as_bool
927
975
 
928
- - :arg_name: BOOL
929
- :default: false
930
- :description: Output saved script filename at end of execution
976
+ - :opt_name: output_saved_script_filename
931
977
  :env_var: MDE_OUTPUT_SAVED_SCRIPT_FILENAME
932
- :opt_name: output_saved_script_filename
978
+ :description: Output saved script filename at end of execution
979
+ :arg_name: BOOL
980
+ :default: false
933
981
  :procname: val_as_bool
934
982
 
935
- - :arg_name: BOOL
936
- :default: false
937
- :description: Display script prior to execution
938
- :env_var: MDE_OUTPUT_SCRIPT
983
+ - :opt_name: output_script
939
984
  :long_name: output-script
940
- :opt_name: output_script
985
+ :env_var: MDE_OUTPUT_SCRIPT
986
+ :description: Display script prior to execution
987
+ :arg_name: BOOL
988
+ :default: false
941
989
  :procname: val_as_bool
942
990
 
943
- - :arg_name: BOOL
944
- :default: true
945
- :description: Whether standard output from execution is displayed
946
- :env_var: MDE_OUTPUT_STDOUT
991
+ - :opt_name: output_stdout
947
992
  :long_name: output-stdout
948
- :opt_name: output_stdout
993
+ :env_var: MDE_OUTPUT_STDOUT
994
+ :description: Whether standard output from execution is displayed
995
+ :arg_name: BOOL
996
+ :default: true
949
997
  :procname: val_as_bool
950
998
 
951
- - :description: Options for viewing saved output file
999
+ - :opt_name: output_viewer_options
952
1000
  :env_var: MDE_OUTPUT_VIEWER_OPTIONS
953
- :opt_name: output_viewer_options
1001
+ :description: Options for viewing saved output file
954
1002
  :procname: val_as_str
955
1003
 
956
- - :arg_name: RELATIVE_PATH
957
- :default: "."
958
- :description: Path to documents
959
- :env_var: MDE_PATH
1004
+ - :opt_name: path
960
1005
  :long_name: path
961
- :opt_name: path
962
- :procname: val_as_str
963
1006
  :short_name: p
1007
+ :env_var: MDE_PATH
1008
+ :description: Path to documents
1009
+ :arg_name: RELATIVE_PATH
1010
+ :default: "."
1011
+ :procname: val_as_str
964
1012
 
965
- - :arg_name: BOOL
966
- :default: false
967
- :description: Whether to pause after manually executing a block and the next menu
1013
+ - :opt_name: pause_after_script_execution
1014
+ :long_name: pause-after-script-execution
968
1015
  :env_var: MDE_PAUSE_AFTER_SCRIPT_EXECUTION
969
- :opt_name: pause_after_script_execution
1016
+ :description: Whether to pause after manually executing a block and the next menu
1017
+ :arg_name: BOOL
1018
+ :default: false
970
1019
  :procname: val_as_bool
971
1020
 
972
- - :default: "\nContinue?"
973
- :description: Prompt after manually executing a block and the next menu
1021
+ - :opt_name: probe
1022
+ :long_name: probe
1023
+ :env_var: MDE_PROBE
1024
+ :description: Probe history (Filter history to files with lines matching a pattern)
1025
+ :procname: val_as_str
1026
+
1027
+ - :opt_name: prompt_after_script_execution
974
1028
  :env_var: MDE_PROMPT_AFTER_SCRIPT_EXECUTION
975
- :opt_name: prompt_after_script_execution
1029
+ :description: Prompt after manually executing a block and the next menu
1030
+ :default: "\nContinue?"
976
1031
  :procname: val_as_str
977
1032
 
978
- - :default: "\nProcess?"
979
- :description: Prompt to approve a block
1033
+ - :opt_name: prompt_approve_block
980
1034
  :env_var: MDE_PROMPT_APPROVE_BLOCK
981
- :opt_name: prompt_approve_block
1035
+ :description: Prompt to approve a block
1036
+ :default: "\nProcess?"
982
1037
  :procname: val_as_str
983
1038
 
984
- - :default: fg_rgbh_00_ff_00
985
- :description: Color of prompt after script execution
1039
+ - :opt_name: prompt_color_after_script_execution
986
1040
  :env_var: MDE_PROMPT_COLOR_AFTER_SCRIPT_EXECUTION
987
- :opt_name: prompt_color_after_script_execution
1041
+ :description: Color of prompt after script execution
1042
+ :default: fg_rgbh_00_ff_00
988
1043
  :procname: val_as_str
989
1044
 
990
- - :default: "\nRepeat this block?"
991
- :description: Prompt to debounce
1045
+ - :opt_name: prompt_debounce
992
1046
  :env_var: MDE_PROMPT_DEBOUNCE
993
- :opt_name: prompt_debounce
1047
+ :description: Prompt to debounce
1048
+ :default: "\nRepeat this block?"
994
1049
  :procname: val_as_str
995
1050
 
996
- - :default: 'Name? '
997
- :description: Prompt to enter a filespec
1051
+ - :opt_name: prompt_enter_filespec
998
1052
  :env_var: MDE_PROMPT_ENTER_FILESPEC
999
- :opt_name: prompt_enter_filespec
1053
+ :description: Prompt to enter a filespec
1054
+ :default: 'Name? '
1000
1055
  :procname: val_as_str
1001
1056
 
1002
- - :default: Exit
1003
- :description: Prompt to exit app
1057
+ - :opt_name: prompt_exit
1004
1058
  :env_var: MDE_PROMPT_EXIT
1005
- :opt_name: prompt_exit
1059
+ :description: Prompt to exit app
1060
+ :default: Exit
1006
1061
  :procname: val_as_str
1007
1062
 
1008
- - :default: Back
1009
- :description: User wants out of menu
1063
+ - :opt_name: prompt_filespec_back
1010
1064
  :env_var: MDE_PROMPT_FILESPEC_BACK
1011
- :opt_name: prompt_filespec_back
1065
+ :description: User wants out of menu
1066
+ :default: Back
1012
1067
  :procname: val_as_str
1013
1068
 
1014
- - :default: Facet
1015
- :description: User wants to tailor the menu
1069
+ - :opt_name: prompt_filespec_facet
1016
1070
  :env_var: MDE_PROMPT_FILESPEC_FACET
1017
- :opt_name: prompt_filespec_facet
1071
+ :description: User wants to tailor the menu
1072
+ :default: Facet
1018
1073
  :procname: val_as_str
1019
1074
 
1020
- - :default: Other
1021
- :description: User wants a custom file name
1075
+ - :opt_name: prompt_filespec_other
1022
1076
  :env_var: MDE_PROMPT_FILESPEC_OTHER
1023
- :opt_name: prompt_filespec_other
1077
+ :description: User wants a custom file name
1078
+ :default: Other
1024
1079
  :procname: val_as_str
1025
1080
 
1026
- - :default: 'No'
1027
- :description: Prompt for no
1081
+ - :opt_name: prompt_no
1028
1082
  :env_var: MDE_PROMPT_NO
1029
- :opt_name: prompt_no
1083
+ :description: Prompt for no
1084
+ :default: 'No'
1030
1085
  :procname: val_as_str
1031
1086
 
1032
- - :default: Save script
1033
- :description: Prompt to save script
1087
+ - :opt_name: prompt_save_script
1034
1088
  :env_var: MDE_PROMPT_SAVE_SCRIPT
1035
- :opt_name: prompt_save_script
1089
+ :description: Prompt to save script
1090
+ :default: Save script
1036
1091
  :procname: val_as_str
1037
1092
 
1038
- - :default: Copy script to clipboard
1039
- :description: Prompt to copy script to clipboard
1093
+ - :opt_name: prompt_script_to_clipboard
1040
1094
  :env_var: MDE_PROMPT_SCRIPT_TO_CLIPBOARD
1041
- :opt_name: prompt_script_to_clipboard
1095
+ :description: Prompt to copy script to clipboard
1096
+ :default: Copy script to clipboard
1042
1097
  :procname: val_as_str
1043
1098
 
1044
- - :default: "\nChoose a block:"
1045
- :description: Prompt to select a block
1099
+ - :opt_name: prompt_select_block
1046
1100
  :env_var: MDE_PROMPT_SELECT_BLOCK
1047
- :opt_name: prompt_select_block
1101
+ :description: Prompt to select a block
1102
+ :default: "\nChoose a block:"
1048
1103
  :procname: val_as_str
1049
1104
 
1050
- - :default: "\nChoose a file:"
1051
- :description: Prompt to select a file with inherited lines
1105
+ - :opt_name: prompt_select_code_file
1052
1106
  :env_var: MDE_PROMPT_SELECT_CODE_FILE
1053
- :opt_name: prompt_select_code_file
1107
+ :description: Prompt to select a file with inherited lines
1108
+ :default: "\nChoose a file:"
1054
1109
  :procname: val_as_str
1055
1110
 
1056
- - :default: "\nView file:"
1057
- :description: Prompt to select a saved asset
1111
+ - :opt_name: prompt_select_history_file
1058
1112
  :env_var: MDE_PROMPT_SELECT_HISTORY_FILE
1059
- :opt_name: prompt_select_history_file
1113
+ :description: Prompt to select a saved asset
1114
+ :default: "\nView file:"
1060
1115
  :procname: val_as_str
1061
1116
 
1062
- - :default: "\nChoose a file:"
1063
- :description: Prompt to select a markdown document
1117
+ - :opt_name: prompt_select_md
1064
1118
  :env_var: MDE_PROMPT_SELECT_MD
1065
- :opt_name: prompt_select_md
1119
+
1120
+ :description: Prompt to select a markdown document
1121
+ :default: "\nChoose a file:"
1066
1122
  :procname: val_as_str
1067
1123
 
1068
- - :default: "\nChoose a file:"
1069
- :description: Prompt to select a saved file
1124
+ - :opt_name: prompt_select_output
1070
1125
  :env_var: MDE_PROMPT_SELECT_OUTPUT
1071
- :opt_name: prompt_select_output
1126
+ :default: "\nChoose a file:"
1127
+ :description: Prompt to select a saved file
1072
1128
  :procname: val_as_str
1073
1129
 
1074
- - :default: 'Expr: %{expr}'
1075
- :description: prompt_show_expr_format
1130
+ - :opt_name: prompt_show_expr_format
1076
1131
  :env_var: MDE_PROMPT_SHOW_EXPR_FORMAT
1077
- :opt_name: prompt_show_expr_format
1132
+ :description: prompt_show_expr_format
1133
+ :default: 'Expr: %{expr}'
1078
1134
  :procname: val_as_str
1079
1135
 
1080
- - :default: Uninterrupted
1081
- :description: Uninterrupted execution
1136
+ - :opt_name: prompt_uninterrupted
1082
1137
  :env_var: MDE_PROMPT_UNINTERRUPTED
1083
- :opt_name: prompt_uninterrupted
1138
+ :description: Uninterrupted execution
1139
+ :default: Uninterrupted
1084
1140
  :procname: val_as_str
1085
1141
 
1086
- - :default: 'Yes'
1087
- :description: Prompt for yes
1142
+ - :opt_name: prompt_yes
1088
1143
  :env_var: MDE_PROMPT_YES
1089
- :opt_name: prompt_yes
1144
+ :description: Prompt for yes
1145
+ :default: 'Yes'
1146
+ :procname: val_as_str
1147
+
1148
+ - :opt_name: publish_block_name_format
1149
+ :env_var: MDE_PUBLISH_BLOCK_NAME_FORMAT
1150
+ :description: format for block name published
1151
+ :default: "%{time} Blc %{document} / %{block}\n"
1152
+ :procname: val_as_str
1153
+
1154
+ - :opt_name: publish_document_file_mode
1155
+ :long_name: publish-document-file-mode
1156
+ :env_var: MDE_PUBLISH_DOCUMENT_FILE_MODE
1157
+ :description: Published file mode (fifo/append/write)
1158
+ :default: fifo
1090
1159
  :procname: val_as_str
1091
1160
 
1092
- - :description: Print the gem's home directory
1161
+ - :opt_name: publish_document_file_name
1162
+ :long_name: publish-document-file-name
1163
+ :env_var: MDE_PUBLISH_DOCUMENT_FILE_NAME
1164
+ :description: File path for publishing
1165
+ :default: ''
1166
+ :procname: val_as_str
1167
+
1168
+ - :opt_name: publish_document_name_format
1169
+ :env_var: MDE_PUBLISH_DOCUMENT_NAME_FORMAT
1170
+ :description: format for document name published
1171
+ :default: "%{time} Doc %{document}\n"
1172
+ :procname: val_as_str
1173
+
1174
+ - :opt_name: publish_time_format
1175
+ :env_var: MDE_PUBLISH_TIME_FORMAT
1176
+ :description: Format for time in published messages
1177
+ :default: "%FT%TZ"
1178
+ :procname: val_as_str
1179
+
1180
+ - :opt_name: pwd
1093
1181
  :long_name: pwd
1094
- :opt_name: pwd
1095
- :procname: val_as_bool
1182
+ :description: Print the gem's home directory
1096
1183
 
1097
- - :description: Run most recently saved script
1184
+ - :opt_name: run_last_script
1098
1185
  :long_name: run-last-script
1099
- :opt_name: run_last_script
1186
+ :description: Run most recently saved script
1100
1187
  :procname: val_as_bool
1101
1188
 
1102
- - :default: 1
1189
+ - :opt_name: runtime_exception_error_level
1103
1190
  :description: Runtime exception error level (warn if < 0, ignore if 0, abort if > 0)
1191
+ :default: 1
1104
1192
  :env_var: MDE_RUNTIME_EXCEPTION_ERROR_LEVEL
1105
- :opt_name: runtime_exception_error_level
1106
1193
  :procname: val_as_int
1107
1194
 
1108
- - :default: '%{prefix}%{join}%{time}%{join}%{filename}%{join}%{mark}%{join}%{blockname}%{join}%{exts}'
1109
- :description: Format for script and log file names
1195
+ - :opt_name: saved_asset_format
1110
1196
  :env_var: MDE_SAVED_ASSET_FORMAT
1111
- :opt_name: saved_asset_format
1197
+ :description: Format for script and log file names
1198
+ :default: "%{prefix}%{join}%{time}%{join}%{filename}%{join}%{mark}%{join}%{blockname}%{join}%{exts}"
1112
1199
  :procname: val_as_str
1113
1200
 
1114
- - :default: "^(?<prefix>.+)(?<join>_)(?<time>[0-9\\-]+)\\g'join'(?<filename>.+)\\g'join'(?<mark>~)\\g'join'(?<blockname>.+)\\g'join'(?<exts>\\..+)$"
1115
- :description: Regexp for script and log file names
1201
+ - :opt_name: saved_asset_match
1116
1202
  :env_var: MDE_SAVED_ASSET_MATCH
1117
- :opt_name: saved_asset_match
1203
+ :description: Regexp for script and log file names
1204
+ :default: "^(?<prefix>.+)(?<join>_)(?<time>[0-9\\-]+)\\g'join'(?<filename>.+)\\g'join'(?<mark>~)\\g'join'(?<blockname>.+)\\g'join'(?<exts>\\..+)$"
1118
1205
  :procname: val_as_str
1119
1206
 
1120
- - :arg_name: BOOL
1121
- :default: false
1122
- :description: Whether to save an executed script
1207
+ - :opt_name: save_executed_script
1123
1208
  :env_var: MDE_SAVE_EXECUTED_SCRIPT
1124
- :opt_name: save_executed_script
1209
+ :description: Whether to save an executed script
1210
+ :arg_name: BOOL
1211
+ :default: false
1125
1212
  :procname: val_as_bool
1126
1213
 
1127
- - :arg_name: BOOL
1128
- :default: false
1129
- :description: Save standard output of the executed script
1214
+ - :opt_name: save_execution_output
1130
1215
  :env_var: MDE_SAVE_EXECUTION_OUTPUT
1131
- :opt_name: save_execution_output
1216
+ :description: Save standard output of the executed script
1217
+ :arg_name: BOOL
1218
+ :default: false
1132
1219
  :procname: val_as_bool
1133
1220
 
1134
- - :default: "/"
1135
- :description: Pattern to replace in file names
1221
+ - :opt_name: saved_filename_pattern
1136
1222
  :env_var: MDE_SAVED_FILENAME_PATTERN
1137
- :opt_name: saved_filename_pattern
1223
+ :description: Pattern to replace in file names
1224
+ :default: "/"
1138
1225
  :procname: val_as_str
1139
1226
 
1140
- - :default: ",~"
1141
- :description: Replacement for pattern in file names
1227
+ - :opt_name: saved_filename_replacement
1142
1228
  :env_var: MDE_SAVED_FILENAME_REPLACEMENT
1143
- :opt_name: saved_filename_replacement
1229
+ :description: Replacement for pattern in file names
1230
+ :default: ",~"
1144
1231
  :procname: val_as_str
1145
1232
 
1146
- - :default: '%{time} %{blockname} %{exts}'
1147
- :description: Format for each row displayed in history
1233
+ - :opt_name: saved_history_format
1148
1234
  :env_var: MDE_SAVED_HISTORY_FORMAT
1149
- :opt_name: saved_history_format
1235
+ :description: Format for each row displayed in history
1236
+ :default: "%{time} %{blockname} %{exts}"
1150
1237
  :procname: val_as_str
1151
1238
 
1152
- - :arg_name: INT
1153
- :default: 493
1154
- :description: chmod for saved scripts
1239
+ - :opt_name: saved_script_chmod
1155
1240
  :env_var: MDE_SAVED_SCRIPT_CHMOD
1156
- :opt_name: saved_script_chmod
1241
+ :description: chmod for saved scripts
1242
+ :arg_name: INT
1243
+ :default: 493
1157
1244
  :procname: val_as_int
1158
1245
 
1159
- - :arg_name: PREFIX
1160
- :default: mde
1161
- :description: Name prefix for saved scripts
1246
+ - :opt_name: saved_script_filename_prefix
1162
1247
  :env_var: MDE_SAVED_SCRIPT_FILENAME_PREFIX
1163
- :opt_name: saved_script_filename_prefix
1248
+ :description: Name prefix for saved scripts
1249
+ :arg_name: PREFIX
1250
+ :default: mde
1164
1251
  :procname: val_as_str
1165
1252
 
1166
- - :arg_name: RELATIVE_PATH
1167
- :default: logs
1168
- :description: Folder where saved scripts are stored
1253
+ - :opt_name: saved_script_folder
1169
1254
  :env_var: MDE_SAVED_SCRIPT_FOLDER
1170
- :opt_name: saved_script_folder
1255
+ :description: Folder where saved scripts are stored
1256
+ :arg_name: RELATIVE_PATH
1257
+ :default: logs
1171
1258
  :procname: val_as_str
1172
1259
 
1173
- - :arg_name: GLOB
1174
- :default: mde_*.sh
1175
- :description: Glob matching saved scripts
1260
+ - :opt_name: saved_script_glob
1176
1261
  :env_var: MDE_SAVED_SCRIPT_GLOB
1177
- :opt_name: saved_script_glob
1262
+ :description: Glob matching saved scripts
1263
+ :arg_name: GLOB
1264
+ :default: mde_*.sh
1178
1265
  :procname: val_as_str
1179
1266
 
1180
- - :arg_name: RELATIVE_PATH
1181
- :default: logs
1182
- :description: Saved stdout folder
1267
+ - :opt_name: saved_stdout_folder
1183
1268
  :env_var: MDE_SAVED_STDOUT_FOLDER
1184
- :opt_name: saved_stdout_folder
1269
+ :description: Saved stdout folder
1270
+ :arg_name: RELATIVE_PATH
1271
+ :default: logs
1185
1272
  :procname: val_as_str
1186
1273
 
1187
- - :arg_name: GLOB
1188
- :default: mde_*.out.txt
1189
- :description: Glob matching saved outputs
1274
+ - :opt_name: saved_stdout_glob
1190
1275
  :env_var: MDE_SAVED_STDOUT_GLOB
1191
- :opt_name: saved_stdout_glob
1276
+ :description: Glob matching saved outputs
1277
+ :arg_name: GLOB
1278
+ :default: mde_*.out.txt
1192
1279
  :procname: val_as_str
1193
1280
 
1194
- - :default: fg_rgbh_00_ff_7f
1195
- :description: script_execution_frame_color
1281
+ - :opt_name: script_execution_frame_color
1196
1282
  :env_var: MDE_SCRIPT_EXECUTION_FRAME_COLOR
1197
- :opt_name: script_execution_frame_color
1283
+ :description: script_execution_frame_color
1284
+ :default: fg_rgbh_00_ff_7f
1198
1285
  :procname: val_as_str
1199
1286
 
1200
- - :default: "\n -^-"
1201
- :description: script_execution_head
1287
+ - :opt_name: script_execution_head
1202
1288
  :env_var: MDE_SCRIPT_EXECUTION_HEAD
1203
- :opt_name: script_execution_head
1289
+ :description: script_execution_head
1290
+ :default: "\n -^-"
1291
+
1204
1292
  :procname: val_as_str
1205
1293
 
1206
- - :default: " -v-\n"
1207
- :description: script_execution_tail
1294
+ - :opt_name: script_execution_tail
1208
1295
  :env_var: MDE_SCRIPT_EXECUTION_TAIL
1209
- :opt_name: script_execution_tail
1296
+ :description: script_execution_tail
1297
+ :default: " -v-\n"
1210
1298
  :procname: val_as_str
1211
1299
 
1212
- - :default: fg_rgbh_7f_ff_00
1213
- :description: Color of output divider
1300
+ - :opt_name: script_preview_frame_color
1214
1301
  :env_var: MDE_OUTPUT_DIVIDER_COLOR
1215
- :opt_name: script_preview_frame_color
1302
+ :description: Color of output divider
1303
+ :default: fg_rgbh_7f_ff_00
1216
1304
  :procname: val_as_str
1217
1305
 
1218
- - :default: "\n -^-"
1219
- :description: script_preview_head
1306
+ - :opt_name: script_preview_head
1220
1307
  :env_var: MDE_SCRIPT_PREVIEW_HEAD
1221
- :opt_name: script_preview_head
1308
+ :description: script_preview_head
1309
+ :default: "\n -^-"
1222
1310
  :procname: val_as_str
1223
1311
 
1224
- - :default: " -v-\n"
1225
- :description: script_preview_tail
1312
+ - :opt_name: script_preview_tail
1226
1313
  :env_var: MDE_SCRIPT_PREVIEW_TAIL
1227
- :opt_name: script_preview_tail
1314
+ :description: script_preview_tail
1315
+ :default: " -v-\n"
1228
1316
  :procname: val_as_str
1229
1317
 
1230
- - :arg_name: REGEX
1231
- :default:
1232
- :description: Select blocks with name matching
1318
+ - :opt_name: select_by_name_regex
1233
1319
  :env_var: MDE_SELECT_BY_NAME_REGEX
1234
- :opt_name: select_by_name_regex
1320
+ :description: Select blocks with name matching
1321
+ :arg_name: REGEX
1322
+ :default:
1235
1323
  :procname: val_as_str
1236
1324
 
1237
- - :arg_name: REGEX
1238
- :default:
1239
- :description: Select blocks with shell matching
1325
+ - :opt_name: select_by_shell_regex
1240
1326
  :env_var: MDE_SELECT_BY_SHELL_REGEX
1241
- :opt_name: select_by_shell_regex
1327
+ :description: Select blocks with shell matching
1328
+ :arg_name: REGEX
1329
+ :default:
1242
1330
  :procname: val_as_str
1243
1331
 
1244
- - :default: 0
1245
- :description: 'Maximum # of rows in select list. Detects current limit if not specified.'
1332
+ - :opt_name: select_page_height
1246
1333
  :env_var: MDE_SELECT_PAGE_HEIGHT
1247
- :opt_name: select_page_height
1334
+ :description: 'Maximum # of rows in select list. Detects current limit if not specified.'
1335
+ :default: 0
1248
1336
  :procname: val_as_int
1249
1337
 
1250
- - :default: "#!/usr/bin/env"
1251
- :description: Shebang for saved scripts
1338
+ - :opt_name: shebang
1252
1339
  :env_var: MDE_SHEBANG
1253
- :opt_name: shebang
1340
+ :description: Shebang for saved scripts
1341
+ :default: "#!/usr/bin/env"
1254
1342
  :procname: val_as_str
1255
1343
 
1256
- - :default: bash
1257
- :description: Shell for launched scripts
1344
+ - :opt_name: shell
1258
1345
  :env_var: MDE_SHELL
1259
- :opt_name: shell
1346
+ :description: Shell for launched scripts
1347
+ :default: bash
1260
1348
  :procname: val_as_str
1261
1349
 
1262
- - :default: "# -^-"
1263
- :description: shell_code_label_format_above
1350
+ - :opt_name: shell_code_label_format_above
1264
1351
  :env_var: MDE_SHELL_CODE_LABEL_FORMAT_ABOVE
1265
- :opt_name: shell_code_label_format_above
1352
+ :description: shell_code_label_format_above
1353
+ :default:
1266
1354
  :procname: val_as_str
1267
1355
 
1268
- - :default: "# -v- +%{block_name} -o- %{document_filename} -o- %{time_now_date} -v-"
1269
- :description: shell_code_label_format_below
1356
+ - :opt_name: shell_code_label_format_below
1270
1357
  :env_var: MDE_SHELL_CODE_LABEL_FORMAT_BELOW
1271
- :opt_name: shell_code_label_format_below
1358
+ :description: shell_code_label_format_below
1359
+ :default:
1272
1360
  :procname: val_as_str
1273
1361
 
1274
- - :default: "%FT%TZ"
1275
- :description: Format for time in code lael
1362
+ - :opt_name: shell_code_label_time_format
1276
1363
  :env_var: MDE_SHELL_CODE_LABEL_TIME_FORMAT
1277
- :opt_name: shell_code_label_time_format
1364
+ :description: Format for time in code lael
1365
+ :default: "%FT%TZ"
1278
1366
  :procname: val_as_str
1279
1367
 
1280
- - :arg_name: BOOL
1281
- :default: true
1282
- :description: Whether saved file names include shell parameter expansion
1368
+ - :opt_name: shell_parameter_expansion
1283
1369
  :env_var: MDE_SHELL_PARAMETER_EXPANSION
1284
- :opt_name: shell_parameter_expansion
1370
+ :description: Whether saved file names include shell parameter expansion
1371
+ :arg_name: BOOL
1372
+ :default: true
1285
1373
  :procname: val_as_bool
1286
1374
 
1287
- - :description: List tab completions
1375
+ - :opt_name: sift
1376
+ :long_name: sift
1377
+ :env_var: MDE_SIFT
1378
+ :description: Sift history (Filter history to file names matching a pattern)
1379
+ :procname: val_as_str
1380
+
1381
+ - :opt_name: tab_completions
1288
1382
  :long_name: tab-completions
1289
- :opt_name: tab_completions
1290
- :procname: val_as_bool
1383
+ :description: List tab completions
1291
1384
 
1292
- - :arg_name: BOOL
1293
- :default: false
1294
- :description: Requires user approval before executing a script
1295
- :env_var: MDE_USER_MUST_APPROVE
1385
+ - :opt_name: table_border_color
1386
+ :env_var: MDE_TABLE_BORDER_COLOR
1387
+ :description: Color for table border
1388
+ :default: fg_bg_rgbh_00_00_df_14_18_1c
1389
+
1390
+ - :opt_name: table_header_row_color
1391
+ :env_var: MDE_TABLE_HEADER_ROW_COLOR
1392
+ :description: Color for table header row
1393
+ :default: fg_bg_rgbh_df_7f_00_14_18_1c
1394
+
1395
+ - :opt_name: table_row_color
1396
+ :env_var: MDE_TABLE_ROW_COLOR
1397
+ :description: Color for table row
1398
+ :default:
1399
+ - fg_bg_rgbh_cf_cf_cf_14_18_1c
1400
+ - fg_bg_rgbh_df_df_df_24_24_24
1401
+
1402
+ - :opt_name: table_separator_line_color
1403
+ :env_var: MDE_TABLE_SEPARATOR_LINE_COLOR
1404
+ :description: Color for table separator line
1405
+ :default: fg_bg_rgbh_df_df_00_14_18_1c
1406
+
1407
+ - :opt_name: user_must_approve
1296
1408
  :long_name: user-must-approve
1297
- :opt_name: user_must_approve
1298
- :procname: val_as_bool
1299
1409
  :short_name: q
1410
+ :env_var: MDE_USER_MUST_APPROVE
1411
+ :description: Requires user approval before executing a script
1412
+ :arg_name: BOOL
1413
+ :default: false
1414
+ :procname: val_as_bool
1300
1415
 
1301
- - :description: Print the gem's version
1302
- :long_name: version
1303
- :procname: version
1416
+ - :long_name: version
1304
1417
  :short_name: v
1418
+ :description: Print the gem's version
1419
+ :procname: version
1305
1420
 
1306
- - :default: fg_rgbh_ff_7f_00
1307
- :description: Color of warning message
1421
+ - :opt_name: warning_color
1308
1422
  :env_var: MDE_WARNING_COLOR
1309
- :opt_name: warning_color
1423
+ :description: Color of warning message
1424
+ :default: fg_rgbh_ff_7f_00
1310
1425
  :procname: val_as_str
1311
1426
 
1312
- - :default: 'Error: %{error}'
1313
- :description: Format of warning message
1427
+ - :opt_name: warning_format
1314
1428
  :env_var: MDE_WARNING_FORMAT
1315
- :opt_name: warning_format
1429
+ :description: Format of warning message
1430
+ :default: 'Error: %{error}'
1316
1431
  :procname: val_as_str