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