lib/menu.yml in markdown_exec-1.8.7 vs lib/menu.yml in markdown_exec-1.8.8

- old
+ new

@@ -1,12 +1,12 @@ -# MDE - Markdown Executor (1.8.7) +# MDE - Markdown Executor (1.8.8) --- - :description: Show current configuration values :procname: show_config :short_name: '0' - :arg_name: BOOL - :default: false + :default: true :description: Display only blocks of type "bash" :env_var: MDE_BASH_ONLY :opt_name: bash_only :procname: val_as_bool - :default: "%\\([^\\)]+\\)" @@ -24,19 +24,24 @@ - :default: "^-.+-$" :description: Pattern for blocks to hide from user-selection :env_var: MDE_BLOCK_NAME_HIDDEN_MATCH :opt_name: block_name_hidden_match :procname: val_as_str -- :default: "^[\\(\\[].*[\\)\\]]$" +- :default: "^\\(.*\\)$" :description: Pattern for blocks to hide from user-selection :env_var: MDE_BLOCK_NAME_INCLUDE_MATCH :opt_name: block_name_include_match :procname: val_as_str - :default: ":(?<title>\\S+)( |$)" :env_var: MDE_BLOCK_NAME_MATCH :opt_name: block_name_match :procname: val_as_str +- :default: "^\\[.*\\]$" + :description: Pattern for block nicknames (name is not used in menu) + :env_var: MDE_BLOCK_NAME_NICK_MATCH + :opt_name: block_name_nick_match + :procname: val_as_str - :default: "^{.+}$" :description: Pattern for block names to use as wrappers :env_var: MDE_BLOCK_NAME_WRAPPER_MATCH :opt_name: block_name_wrapper_match :procname: val_as_str @@ -60,10 +65,16 @@ :default: "." :description: Read configuration file :long_name: config :procname: path - :arg_name: BOOL + :default: true + :description: debounce_execution + :env_var: MDE_debounce_execution + :opt_name: debounce_execution + :procname: val_as_bool +- :arg_name: BOOL :default: false :description: Debug output :env_var: MDE_DEBUG :long_name: debug :procname: debug @@ -150,10 +161,50 @@ :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: "osascript -e '\n tell application \"iTerm\"\n tell application + \"System Events\"\n tell application \"Finder\"\n set + {posx, posy, screenWidth, screenHeight} to bounds of window of desktop\n end + tell\n tell application process \"Finder\"\n set {missing + value, menubarHeight} to the size of menu bar 1\n end tell\n end + tell\n\n set winHeight to (screenHeight * 2 / 3)\n set winWidth + to (screenWidth / 2)\n set xoff to menubarHeight * %{batch_index}\n set + yoff to xoff mod (screenHeight - winHeight)\n \n create window with + default profile\n tell the first window\n set bounds to {xoff, + yoff, xoff + winWidth, yoff + winHeight}\n tell the current session\n + \ write text \"alias cat_script=\\\"cat -n \\\\\\\"%{script_filespec}\\\\\\\"\\\"\"\n + \ write text \"alias less_script=\\\"less \\\\\\\"%{script_filespec}\\\\\\\"\\\"\"\n + \ write text \"alias run_script=\\\"%{script_filespec}\\\"\"\n write + text \"alias vim_script=\\\"vim \\\\\\\"%{script_filespec}\\\\\\\"\\\"\"\n delay + 1\n\n write text \"alias cat_output=\\\"cat -n \\\\\\\"%{output_filespec}\\\\\\\"\\\"\"\n + \ write text \"alias grep_output=\\\"read -p Pattern: pattern && + grep \\\\\\\"\\\\$pattern\\\\\\\" \\\\\\\"%{output_filespec}\\\\\\\"\\\"\"\n write + text \"alias less_output=\\\"less \\\\\\\"%{output_filespec}\\\\\\\"\\\"\"\n delay + 1\n\n write text \"alias menu=\\\"select cmd in cat_script less_script + run_script vim_script cat_output grep_output less_output exit; do eval \\\\\\\"\\\\$cmd\\\\\\\"; + done\\\"\"\n delay 1\n\n write text \"echo -ne \\\"\\\\033]; + %{started_at} - %{document_filename} - %{block_name} \\\\007\\\"\"\n write + text \"cd \\\"%{home}\\\"\"\n write text \"\\\"%{script_filename}\\\" + | tee \\\"%{output_filespec}\\\"\"\n delay 2\n\n write + text \"menu\"\n end tell\n end tell\n end tell'\n" + :description: execute_command_format + :env_var: MDE_EXECUTE_COMMAND_FORMAT + :opt_name: execute_command_format + :procname: val_as_str +- :default: "%T" + :description: Format for time in window title + :env_var: MDE_EXECUTE_COMMAND_TITLE_TIME_FORMAT + :opt_name: execute_command_title_time_format + :procname: val_as_str +- :arg_name: BOOL + :default: true + :description: Execute script in own window + :env_var: MDE_EXECUTE_IN_OWN_WINDOW + :opt_name: execute_in_own_window + :procname: val_as_bool - :default: fg_rgbh_7f_ff_00 :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 @@ -241,10 +292,14 @@ :default: '' :description: Find in YAML configuration options :long_name: how :procname: how :short_name: "?" +- :default: + :env_var: MDE_IMPORT_PATHS + :opt_name: import_paths + :procname: val_as_str - :default: "^ *@import +(?<name>.+?) *$" :env_var: MDE_IMPORT_PATTERN :opt_name: import_pattern :procname: val_as_str - :description: List blocks @@ -539,10 +594,30 @@ :default: false :description: Hide decorative menu entries :env_var: MDE_NO_CHROME :opt_name: no_chrome :procname: val_as_bool +- :default: + :description: Expression to match to start collecting lines + :env_var: MDE_OUTPUT_ASSIGNMENT_BEGIN + :opt_name: output_assignment_begin + :procname: val_as_str +- :default: + :description: Expression to match to stop collecting lines + :env_var: MDE_OUTPUT_ASSIGNMENT_END + :opt_name: output_assignment_begin + :procname: val_as_str +- :default: "%{line} # !!!" + :description: Format for assignments from output + :env_var: MDE_OUTPUT_ASSIGNMENT_FORMAT + :opt_name: output_assignment_format + :procname: val_as_str +- :default: "^ *(\\w+=.*?) *$" + :description: Pattern for assignments from output + :env_var: MDE_OUTPUT_ASSIGNMENT_MATCH + :opt_name: output_assignment_match + :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 @@ -594,11 +669,11 @@ :long_name: path :opt_name: path :procname: val_as_str :short_name: p - :arg_name: BOOL - :default: true + :default: false :description: Wheter to pause after manually executing a block and the next menu :env_var: MDE_PAUSE_AFTER_SCRIPT_EXECUTION :opt_name: pause_after_script_execution :procname: val_as_bool - :default: |2- @@ -618,10 +693,17 @@ - :default: fg_rgbh_00_ff_00 :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: |2- + + Repeat this block? + :description: Prompt to debounce + :env_var: MDE_PROMPT_DEBOUNCE + :opt_name: prompt_debounce + :procname: val_as_str - :default: Exit :description: Prompt to exit app :env_var: MDE_PROMPT_EXIT :opt_name: prompt_exit :procname: val_as_str @@ -659,10 +741,15 @@ 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: Uninterrupted + :description: Uninterrupted execution + :env_var: MDE_PROMPT_UNINTERRUPTED + :opt_name: prompt_uninterrupted + :procname: val_as_str - :default: 'Yes' :description: Prompt for yes :env_var: MDE_PROMPT_YES :opt_name: prompt_yes :procname: val_as_str @@ -809,25 +896,25 @@ - :default: bash :description: Shell for launched scripts :env_var: MDE_SHELL :opt_name: shell :procname: val_as_str -- :default: "# -^- +%{block_name} -o- %{document_filename} -^-" +- :default: "# -^-" :description: shell_code_label_format_above :env_var: MDE_SHELL_CODE_LABEL_FORMAT_ABOVE :opt_name: shell_code_label_format_above :procname: val_as_str -- :default: "# -v- +%{block_name} -v-" +- :default: "# -v- +%{block_name} -o- %{document_filename} -v-" :description: shell_code_label_format_below :env_var: MDE_SHELL_CODE_LABEL_FORMAT_BELOW :opt_name: shell_code_label_format_below :procname: val_as_str - :description: List tab completions :long_name: tab-completions :opt_name: tab_completions :procname: val_as_bool - :arg_name: BOOL - :default: true + :default: false :description: Requires user approval before executing a script :env_var: MDE_USER_MUST_APPROVE :long_name: user-must-approve :opt_name: user_must_approve :procname: val_as_bool