lib/menu.yml in markdown_exec-1.6 vs lib/menu.yml in markdown_exec-1.7
- old
+ new
@@ -1,6 +1,6 @@
-# MDE - Markdown Executor (1.6)
+# MDE - Markdown Executor (1.7)
---
- :description: Show current configuration values
:procname: show_config
:short_name: '0'
- :arg_name: BOOL
@@ -93,10 +93,27 @@
:default: true
:description: Hide all blocks of type "expect"
:env_var: MDE_EXCLUDE_EXPECT_BLOCKS
:opt_name: exclude_expect_blocks
:procname: val_as_bool
+- :default: magenta
+ :description: execution_report_preview_frame_color
+ :env_var: MDE_EXECUTION_REPORT_PREVIEW_FRAME_COLOR
+ :opt_name: execution_report_preview_frame_color
+ :procname: val_as_str
+- :default: |2-
+
+ -^-
+ :description: execution_report_preview_head
+ :env_var: MDE_EXECUTION_REPORT_PREVIEW_HEAD
+ :opt_name: execution_report_preview_head
+ :procname: val_as_str
+- :default: " -v-"
+ :description: execution_report_preview_tail
+ :env_var: MDE_EXECUTION_REPORT_PREVIEW_TAIL
+ :opt_name: execution_report_preview_tail
+ :procname: val_as_str
- :description: Exit app
:long_name: exit
:procname: exit
:short_name: x
- :default: "^(?<indent> *)`{3,}"
@@ -146,11 +163,11 @@
:procname: val_as_str
- :default: "&"
:env_var: MDE_HISTORY_PROPERTY_SEPARATOR
:opt_name: history_property_separator
:procname: val_as_str
-- :default: "^ *@import (.+)$"
+- :default: "^ *@import +(?<name>.+?) *$"
:env_var: MDE_IMPORT_PATTERN
:opt_name: import_pattern
:procname: val_as_str
- :description: List blocks
:long_name: list-blocks
@@ -258,10 +275,27 @@
:line: "~~~"
:description: closing demarcations for menu
:env_var: MDE_MENU_FINAL_DIVIDER
:opt_name: menu_final_divider
:procname: val_as_str
+- :default: '0'
+ :description: Import levels for blocks to appear in menu. Empty is all.
+ :env_var: MDE_MENU_IMPORT_LEVEL_MATCH
+ :opt_name: menu_import_level_match
+ :procname: val_as_str
+- :arg_name: BOOL
+ :default: true
+ :description: Include imported blocks in menu
+ :env_var: MDE_MENU_INCLUDE_IMPORTED_BLOCKS
+ :opt_name: menu_include_imported_blocks
+ :procname: val_as_bool
+- :arg_name: BOOL
+ :default: false
+ :description: Include imported notes in menu
+ :env_var: MDE_MENU_INCLUDE_IMPORTED_NOTES
+ :opt_name: menu_include_imported_notes
+ :procname: val_as_bool
- :default:
:line: ''
:description: opening demarcation for menu
:env_var: MDE_MENU_INITIAL_DIVIDER
:opt_name: menu_initial_divider
@@ -369,27 +403,32 @@
:default: false
:description: Hide decorative menu entries
:env_var: MDE_NO_CHROME
:opt_name: no_chrome
:procname: val_as_bool
-- :default: " #=#=#"
- :description: Output divider
- :env_var: MDE_OUTPUT_DIVIDER
- :opt_name: output_divider
- :procname: val_as_str
-- :default: yellow
- :description: Color of output divider
- :env_var: MDE_OUTPUT_DIVIDER_COLOR
- :opt_name: output_divider_color
- :procname: val_as_str
- :arg_name: BOOL
:default: false
:description: Display summary for execution
:env_var: MDE_OUTPUT_EXECUTION_SUMMARY
:long_name: output-execution-summary
:opt_name: output_execution_summary
:procname: val_as_bool
+- :default: "%{name}: %{value}"
+ :description: format for menu dividers and demarcations
+ :env_var: MDE_OUTPUT_EXECUTION_LABEL_FORMAT
+ :opt_name: output_execution_label_format
+ :procname: val_as_str
+- :default: yellow
+ :description: Color of output_execution_label_name
+ :env_var: MDE_OUTPUT_EXECUTION_LABEL_NAME_COLOR
+ :opt_name: output_execution_label_name_color
+ :procname: val_as_str
+- :default: plain
+ :description: Color of output_execution_label_value
+ :env_var: MDE_OUTPUT_EXECUTION_LABEL_VALUE_COLOR
+ :opt_name: output_execution_label_value_color
+ :procname: val_as_str
- :arg_name: BOOL
:default: false
:description: Output saved script filename at end of execution
:env_var: MDE_OUTPUT_SAVED_SCRIPT_FILENAME
:opt_name: output_saved_script_filename
@@ -421,23 +460,32 @@
:procname: val_as_str
:short_name: p
- :arg_name: BOOL
:default: true
:description: Pause afte executing a BASH block
- :env_var: MDE_PAUSE_AFTER_BASH_EXEC
- :opt_name: pause_after_bash_exec
+ :env_var: MDE_PAUSE_after_script_execution
+ :opt_name: pause_after_script_execution
:procname: val_as_bool
-- :default: Continue?
- :description: Prompt to continue
- :env_var: MDE_PROMPT_AFTER_BASH_EXEC
- :opt_name: prompt_after_bash_exec
+- :default: |2-
+
+ Continue?
+ :description: Prompt after script execution
+ :env_var: MDE_PROMPT_after_script_execution
+ :opt_name: prompt_after_script_execution
:procname: val_as_str
-- :default: Process?
+- :default: |2-
+
+ Process?
:description: Prompt to approve a block
:env_var: MDE_PROMPT_APPROVE_BLOCK
:opt_name: prompt_approve_block
:procname: val_as_str
+- :default: cyan
+ :description: Color of prompt after script execution
+ :env_var: MDE_PROMPT_COLOR_AFTER_SCRIPT_EXECUTION
+ :opt_name: prompt_color_after_script_execution
+ :procname: val_as_str
- :default: Exit
:description: Prompt to exit app
:env_var: MDE_PROMPT_EXIT
:opt_name: prompt_exit
:procname: val_as_str
@@ -454,21 +502,27 @@
- :default: Copy script to clipboard
:description: Prompt to copy script to clipboard
:env_var: MDE_PROMPT_SCRIPT_TO_CLIPBOARD
:opt_name: prompt_script_to_clipboard
:procname: val_as_str
-- :default: 'Choose a block:'
+- :default: |2-
+
+ Choose a block:
:description: Prompt to select a block
:env_var: MDE_PROMPT_SELECT_BLOCK
:opt_name: prompt_select_block
:procname: val_as_str
-- :default: 'Choose a file:'
+- :default: |2-
+
+ Choose a file:
:description: Prompt to select a markdown document
:env_var: MDE_PROMPT_SELECT_MD
:opt_name: prompt_select_md
:procname: val_as_str
-- :default: 'Choose a file:'
+- :default: |2-
+
+ Choose a file:
:description: Prompt to select a saved file
:env_var: MDE_PROMPT_SELECT_OUTPUT
:opt_name: prompt_select_output
:procname: val_as_str
- :default: 'Yes'
@@ -496,10 +550,20 @@
:description: Save standard output of the executed script
:env_var: MDE_SAVE_EXECUTION_OUTPUT
:long_name: save-execution-output
:opt_name: save_execution_output
:procname: val_as_bool
+- :default: "/"
+ :description: Pattern to replace in file names
+ :env_var: MDE_SAVED_FILENAME_PATTERN
+ :opt_name: saved_filename_pattern
+ :procname: val_as_str
+- :default: ",~"
+ :description: Replacement for pattern in file names
+ :env_var: MDE_SAVED_FILENAME_REPLACEMENT
+ :opt_name: saved_filename_replacement
+ :procname: val_as_str
- :arg_name: INT
:default: 493
:description: chmod for saved scripts
:env_var: MDE_SAVED_SCRIPT_CHMOD
:opt_name: saved_script_chmod
@@ -534,10 +598,44 @@
:default: mde_*.out.txt
:description: Glob matching saved outputs
:env_var: MDE_SAVED_STDOUT_GLOB
:opt_name: saved_stdout_glob
:procname: val_as_str
+- :default: green
+ :description: script_execution_frame_color
+ :env_var: MDE_SCRIPT_EXECUTION_FRAME_COLOR
+ :opt_name: script_execution_frame_color
+ :procname: val_as_str
+- :default: |2-
+
+ -^-
+ :description: script_execution_head
+ :env_var: MDE_SCRIPT_EXECUTION_HEAD
+ :opt_name: script_execution_head
+ :procname: val_as_str
+- :default: " -v-\n"
+ :description: script_execution_tail
+ :env_var: MDE_SCRIPT_EXECUTION_TAIL
+ :opt_name: script_execution_tail
+ :procname: val_as_str
+- :default: yellow
+ :description: Color of output divider
+ :env_var: MDE_OUTPUT_DIVIDER_COLOR
+ :opt_name: script_preview_frame_color
+ :procname: val_as_str
+- :default: |2-
+
+ -^-
+ :description: script_preview_head
+ :env_var: MDE_SCRIPT_PREVIEW_HEAD
+ :opt_name: script_preview_head
+ :procname: val_as_str
+- :default: " -v-\n"
+ :description: script_preview_tail
+ :env_var: MDE_SCRIPT_PREVIEW_TAIL
+ :opt_name: script_preview_tail
+ :procname: val_as_str
- :arg_name: REGEX
:default:
:description: Select blocks with name matching
:env_var: MDE_SELECT_BY_NAME_REGEX
:opt_name: select_by_name_regex
@@ -585,9 +683,19 @@
:short_name: q
- :description: Print the gem's version
:long_name: version
:procname: version
:short_name: v
+- :default: red
+ :description: Color of warning message
+ :env_var: MDE_WARNING_COLOR
+ :opt_name: warning_color
+ :procname: val_as_str
+- :default: 'Error: %{error}'
+ :description: Format of warning message
+ :env_var: MDE_WARNING_FORMAT
+ :opt_name: warning_format
+ :procname: val_as_str
- :arg_name: INT.0-3
:default: 1
:description: Output display level (0 to 3 [data, +context, +info])
:env_var: MDE_DISPLAY_LEVEL
:long_name: display-level