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

- old
+ new

@@ -121,10 +121,26 @@ :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 @@ -209,15 +225,16 @@ create window with default profile tell the first window set bounds to {xoff, yoff, xoff + winWidth, yoff + winHeight} tell the current session - write text "# %{script_filespec}" - write text "# %{output_filespec}" + write text "s=\"%{script_filespec}\"" + write text "o=\"%{output_filespec}\"" write text "echo -ne \"\\033]; %{started_at} - %{document_filename} - %{block_name} \\007\"" write text "cd \"%{home}\"" - write text "\"%{script_filename}\" | tee \"%{output_filespec}\"" + write text "# \"%{script_filename}\" | tee -a \"%{output_filespec}\"" + write text "\"$s\" | tee -a \"$o\"" end tell end tell end tell' :description: execute_command_format :env_var: MDE_EXECUTE_COMMAND_FORMAT @@ -589,13 +606,12 @@ :description: format for menu notes :env_var: MDE_MENU_NOTE_FORMAT :opt_name: menu_note_format :procname: val_as_str -## all non-blank lines are notes -# -- :default: "^(?<line>.*?) *$" +## all lines that do not start with "/ " are notes +- :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 @@ -710,25 +726,29 @@ - :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 + :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+=.*?) *$" :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 @@ -819,16 +839,28 @@ :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 @@ -850,10 +882,16 @@ :env_var: MDE_PROMPT_SELECT_BLOCK :opt_name: prompt_select_block :procname: val_as_str - :default: "\nChoose 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: "\nChoose a file:" :description: Prompt to select a markdown document :env_var: MDE_PROMPT_SELECT_MD :opt_name: prompt_select_md :procname: val_as_str @@ -861,10 +899,16 @@ :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 @@ -1045,13 +1089,19 @@ :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