lib/menu.yml in markdown_exec-1.8.9 vs lib/menu.yml in markdown_exec-2.0.0

- old
+ new

@@ -1,6 +1,6 @@ -# MDE - Markdown Executor (1.8.9) +# MDE - Markdown Executor (2.0.0) --- - :description: Show current configuration values :procname: show_config :short_name: '0' - :arg_name: BOOL @@ -102,10 +102,24 @@ :long_name: dump-blocks-in-file :opt_name: dump_blocks_in_file :procname: val_as_bool - :arg_name: BOOL :default: false + :description: Dump inherited block_names + :env_var: MDE_DUMP_INHERITED_BLOCK_NAMES + :long_name: dump-dump-inherited-block_names + :opt_name: dump_inherited_block_names + :procname: val_as_bool +- :arg_name: BOOL + :default: false + :description: Dump inherited dependencies + :env_var: MDE_DUMP_INHERITED_DEPENDENCIES + :long_name: dump-dump-inherited-dependencies + :opt_name: dump_inherited_dependencies + :procname: val_as_bool +- :arg_name: BOOL + :default: false :description: Dump inherited lines :env_var: MDE_DUMP_INHERITED_LINES :long_name: dump-dump-inherited-lines :opt_name: dump_inherited_lines :procname: val_as_bool @@ -171,16 +185,16 @@ 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 \"# %{script_filespec}\"\n write text - \"# %{output_filespec}\"\n write text \"echo -ne \\\"\\\\033]; + \ write text \"s=\\\"%{script_filespec}\\\"\"\n write + text \"o=\\\"%{output_filespec}\\\"\"\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 end tell\n end tell\n end - tell'\n" + text \"cd \\\"%{home}\\\"\"\n write text \"# \\\"%{script_filename}\\\" + | tee -a \\\"%{output_filespec}\\\"\"\n write text \"\\\"$s\\\" + | tee -a \\\"$o\\\"\"\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" @@ -489,11 +503,11 @@ - :default: "%{line}" :description: format for menu notes :env_var: MDE_MENU_NOTE_FORMAT :opt_name: menu_note_format :procname: val_as_str -- :default: "^(?<line>.*?) *$" +- :default: "^(?<line>(?!/ ).*)?$" :description: Pattern for notes in block selection menu :env_var: MDE_MENU_NOTE_MATCH :opt_name: menu_note_match :procname: val_as_str - :default: @@ -593,13 +607,13 @@ :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 + :opt_name: output_assignment_end :procname: val_as_str -- :default: "%{line} # !!!" +- :default: "%{line}" :description: Format for assignments from output :env_var: MDE_OUTPUT_ASSIGNMENT_FORMAT :opt_name: output_assignment_format :procname: val_as_str - :default: "^ *(?<line>\\w+=.*?) *$" @@ -691,15 +705,25 @@ Repeat this block? :description: Prompt to debounce :env_var: MDE_PROMPT_DEBOUNCE :opt_name: prompt_debounce :procname: val_as_str +- :default: 'Name? ' + :description: Prompt to enter a filespec + :env_var: MDE_PROMPT_ENTER_FILESPEC + :opt_name: prompt_enter_filespec + :procname: val_as_str - :default: Exit :description: Prompt to exit app :env_var: MDE_PROMPT_EXIT :opt_name: prompt_exit :procname: val_as_str +- :default: Other + :description: Prompt for a custom file name + :env_var: MDE_PROMPT_FILESPEC_OTHER + :opt_name: prompt_filespec_other + :procname: val_as_str - :default: 'No' :description: Prompt for no :env_var: MDE_PROMPT_NO :opt_name: prompt_no :procname: val_as_str @@ -721,10 +745,17 @@ :opt_name: prompt_select_block :procname: val_as_str - :default: |2- Choose a file: + :description: Prompt to select a file with inherited lines + :env_var: MDE_PROMPT_SELECT_CODE_FILE + :opt_name: prompt_select_code_file + :procname: val_as_str +- :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: |2- @@ -732,10 +763,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: 'Expr: %{expr}' + :description: prompt_show_expr_format + :env_var: MDE_PROMPT_SHOW_EXPR_FORMAT + :opt_name: prompt_show_expr_format + :procname: val_as_str - :default: Uninterrupted :description: Uninterrupted execution :env_var: MDE_PROMPT_UNINTERRUPTED :opt_name: prompt_uninterrupted :procname: val_as_str @@ -892,13 +928,19 @@ - :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} -o- %{document_filename} -v-" +- :default: "# -v- +%{block_name} -o- %{document_filename} -o- %{time_now_date} + \ -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 +- :default: "%FT%TZ" + :description: Format for time in code lael + :env_var: MDE_SHELL_CODE_LABEL_TIME_FORMAT + :opt_name: shell_code_label_time_format :procname: val_as_str - :description: List tab completions :long_name: tab-completions :opt_name: tab_completions :procname: val_as_bool