lib/menu.src.yml in markdown_exec-2.4.0 vs lib/menu.src.yml in markdown_exec-2.5.0

- old
+ new

@@ -4,20 +4,25 @@ :description: Show current configuration values :procname: show_config - :opt_name: bash_only :env_var: MDE_BASH_ONLY - :description: Display only blocks of type "bash" + :description: Execute only blocks of type "bash" :arg_name: BOOL - :default: true + :default: false :procname: val_as_bool - :opt_name: block_calls_scan :env_var: MDE_BLOCK_CALLS_SCAN :default: "%\\([^\\)]+\\)" :procname: val_as_str +- :opt_name: block_disable_match + :env_var: MDE_BLOCK_DISABLE_MATCH + :default: '@disable' + :procname: val_as_str + - :opt_name: block_name :long_name: block-name :short_name: b :env_var: MDE_BLOCK_NAME :description: Name of block to execute @@ -68,10 +73,15 @@ :env_var: MDE_BLOCK_STDOUT_SCAN :description: Match to place block body into a file or a variable :default: ">(?<full>(?<type>\\$)?(?<name>[A-Za-z_\\-\\.\\w]+))" :procname: val_as_str +- :opt_name: block_type_default + :env_var: MDE_BLOCK_TYPE_DEFAULT + :default: bash + :procname: val_as_str + - :opt_name: block_type_port_set_format :env_var: MDE_BLOCK_TYPE_PORT_SET_FORMAT :default: ": ${%{key}:=%{value}}" :procname: val_as_str @@ -124,10 +134,31 @@ - :opt_name: display_level_xbase_prefix :env_var: MDE_DISPLAY_LEVEL_XBASE_PREFIX :default: "> " :procname: val_as_str +- :opt_name: document_configurations_directory + :env_var: MDE_DOCUMENT_CONFIGURATIONS_DIRECTORY + :description: Directory with files + :arg_name: DIRECTORY + :default: document_configurations + :procname: val_as_str + +- :opt_name: document_configurations_extension + :env_var: MDE_DOCUMENT_CONFIGURATIONS_EXTENSION + :description: extension for filenames + :arg_name: EXTENSION + :default: .sh + :procname: val_as_str + +- :opt_name: document_configurations_glob + :env_var: MDE_DOCUMENT_CONFIGURATIONS_GLOB + :description: filenames to match + :arg_name: GLOB + :default: '*.sh' + :procname: val_as_str + - :opt_name: document_load_opts_block_name :env_var: MDE_DOCUMENT_LOAD_OPTS_BLOCK_NAME :description: Name of Opts block to load with the document :default: "(document_options)" :procname: val_as_str @@ -262,11 +293,11 @@ :default: true :procname: val_as_bool - :opt_name: execute_command_format :env_var: MDE_EXECUTE_COMMAND_FORMAT - :description: execute_command_format + :description: AppleScript to execute a command in a window :default: > osascript -e ' on run argv set batch_index to "%{batch_index}" set home to "%{home}" @@ -337,11 +368,11 @@ :procname: val_as_str - :opt_name: fenced_start_extended_regex :env_var: MDE_FENCED_START_EXTENDED_REGEX :description: Match the start of a fenced block - :default: "^(?<indent>[ \t]*)`{3,}(?<shell>[^`\\s]*) *(:(?<name>[^\\s]*))? *(?<rest>.*) *$" + :default: "^(?<indent>[ \t]*)`{3,}(?<type>[^`\\s]*) *(:(?<name>[^\\s]*))? *(?<rest>.*) *$" :procname: val_as_str - :opt_name: filename :long_name: filename :short_name: f @@ -364,10 +395,25 @@ :description: Path for find (uses PATH if empty) :arg_name: FIND_PATH :default: '' :procname: val_as_str +- :opt_name: heading1_center + :env_var: MDE_HEADING1_CENTER + :default: true + :procname: val_as_bool + +- :opt_name: heading2_center + :env_var: MDE_HEADING1_CENTER + :default: true + :procname: val_as_bool + +- :opt_name: heading3_center + :env_var: MDE_HEADING1_CENTER + :default: true + :procname: val_as_bool + - :opt_name: heading1_match :env_var: MDE_HEADING1_MATCH :default: "^#(?<line>(?!#)(?<indent>[ \t]*)(?<text>.*?)(?<trailing>[ \t]*))?$" :procname: val_as_str @@ -421,11 +467,11 @@ :default: :procname: val_as_str - :opt_name: import_pattern :env_var: MDE_IMPORT_PATTERN - :default: "^ *@import +(?<name>.+?) *$" + :default: "^(?<indention> *)@import +(?<name>.+?) *$" :procname: val_as_str - :opt_name: line_decor_main :env_var: MDE_LINE_DECOR_MAIN :description: Line-oriented text decoration (Main) @@ -608,24 +654,23 @@ :env_var: MDE_MENU_DIVIDER_SYMBOL :description: Symbol before each divider :default: ">" :procname: val_as_str +- :opt_name: menu_edit_color + :env_var: MDE_MENU_EDIT_COLOR + :description: Color of Edit link + :default: fg_rgbh_e0_e0_20 + :procname: val_as_str + - :opt_name: menu_exit_at_top :env_var: MDE_MENU_EXIT_AT_TOP :description: Display Exit option at top of menu (vs bottom) :arg_name: BOOL :default: true :procname: val_as_bool -- :opt_name: menu_load_at_top - :env_var: MDE_MENU_LOAD_AT_TOP - :description: Display Load option at top of menu (vs bottom) - :arg_name: BOOL - :default: false - :procname: val_as_bool - - :opt_name: menu_final_divider :env_var: MDE_MENU_FINAL_DIVIDER :description: closing demarcations for menu :default: :line: "~~~" @@ -664,10 +709,16 @@ :env_var: MDE_MENU_HEADING3_FORMAT :description: format for menu heading3 in menu :default: "%{line}" :procname: val_as_str +- :opt_name: menu_history_color + :env_var: MDE_MENU_HISTORY_COLOR + :description: Color of History link + :default: fg_rgbh_e0_e0_20 + :procname: val_as_str + - :opt_name: menu_import_level_match :env_var: MDE_MENU_IMPORT_LEVEL_MATCH :description: Import levels for blocks to appear in menu. Empty is all. :default: '0' :procname: val_as_str @@ -728,10 +779,23 @@ :env_var: MDE_MENU_LINK_FORMAT :description: format for menu link :default: "%{line}" :procname: val_as_str +- :opt_name: menu_load_at_top + :env_var: MDE_MENU_LOAD_AT_TOP + :description: Display Load option at top of menu (vs bottom) + :arg_name: BOOL + :default: false + :procname: val_as_bool + +- :opt_name: menu_load_color + :env_var: MDE_MENU_LOAD_COLOR + :description: Color of Load link + :default: fg_rgbh_e0_e0_20 + :procname: val_as_str + - :opt_name: menu_note_color :env_var: MDE_MENU_NOTE_COLOR :description: Color of menu note :default: fg_rgbh_c0_c0_c0 :procname: val_as_str @@ -745,11 +809,11 @@ ## lines that start with "/" are comments (hidden), not notes (visible) # - :default: "^(?<indent>[ \t]*)(?<line>(?!/)(?<text>.*?)(?<trailing>[ \t]*))?$" - :opt_name: menu_note_match :env_var: MDE_MENU_NOTE_MATCH :description: Pattern for notes in block selection menu - :default: "^(?<line>(?![ \t]*/)(?<text>.*?)(?<trailing>[ \t]*))?$" + :default: "^(?<line>(?![ \t]*/)(?<text>.*?)(?<trailing>[ \t]*))$" :procname: val_as_str - :opt_name: menu_option_back_name :env_var: MDE_MENU_OPTION_BACK_NAME :description: Text for Back option @@ -827,10 +891,23 @@ :description: Resize terminal when displaying menu. :arg_name: BOOL :default: true :procname: val_as_bool +- :opt_name: menu_save_color + :env_var: MDE_MENU_SAVE_COLOR + :description: Color of Save link + :default: fg_rgbh_ff_ff_20 + # :default: fg_rgbh_e0_e0_20 + :procname: val_as_str + +- :opt_name: menu_table_rows_match + :env_var: MDE_MENU_TABLE_ROWS_MATCH + :description: Pattern for table rows + :default: '^(?<line>[ \t]*(?<text>\|.*?)(?<trailing>[ \t]*))$' + :procname: val_as_str + - :opt_name: menu_task_color :env_var: MDE_MENU_TASK_COLOR :description: Color of menu task :default: fg_rgbh_ff_ff_ff :procname: val_as_str @@ -1114,11 +1191,10 @@ :default: "\nView file:" :procname: val_as_str - :opt_name: prompt_select_md :env_var: MDE_PROMPT_SELECT_MD - :description: Prompt to select a markdown document :default: "\nChoose a file:" :procname: val_as_str - :opt_name: prompt_select_output @@ -1327,10 +1403,16 @@ :description: Select blocks with shell matching :arg_name: REGEX :default: :procname: val_as_str +- :opt_name: select_page_cycle + :env_var: MDE_SELECT_PAGE_CYCLE + :description: Enable cycling past top or bottom + :default: true + :procname: val_as_bool + - :opt_name: select_page_height :env_var: MDE_SELECT_PAGE_HEIGHT :description: 'Maximum # of rows in select list. Detects current limit if not specified.' :default: 0 :procname: val_as_int @@ -1390,10 +1472,15 @@ - :opt_name: table_header_row_color :env_var: MDE_TABLE_HEADER_ROW_COLOR :description: Color for table header row :default: fg_bg_rgbh_df_7f_00_14_18_1c +- :opt_name: table_parse_regexp + :env_var: MDE_TABLE_PARSE_REGEXP + :description: Match table for formatting + :default: '^[ \t]*\|? *(?::?-+:?) *( *\| *(?::?-+:?) *)*\|? *$' + - :opt_name: table_row_color :env_var: MDE_TABLE_ROW_COLOR :description: Color for table row :default: - fg_bg_rgbh_cf_cf_cf_14_18_1c @@ -1410,9 +1497,29 @@ :env_var: MDE_USER_MUST_APPROVE :description: Requires user approval before executing a script :arg_name: BOOL :default: false :procname: val_as_bool + +- :opt_name: variable_expression_regexp + :env_var: MDE_VARIABLE_EXPRESSION_REGEXP + :description: variable_expression_regexp + :default: "(?<expression>\\${(?<variable>[A-Z0-9a-z_]+)})" + :procname: val_as_str + +- :opt_name: vars_block_filename_view + :env_var: MDE_VARS_BLOCK_VIEW + :description: Portions of filename to display + :arg_name: FORMAT + :default: '%{base}' + :procname: val_as_str + +- :opt_name: vars_block_filename_pattern + :env_var: MDE_VARS_BLOCK_filename_pattern + :description: vars_block_filename_pattern + :arg_name: PATTERN + :default: '^(?<path>.*/)(?<base>[^/]+?)(?<extension>\.?[^./]*)?$' + :procname: val_as_str - :long_name: version :short_name: v :description: Print the gem's version :procname: version