lib/menu.src.yml in markdown_exec-2.6.0 vs lib/menu.src.yml in markdown_exec-2.7.0
- old
+ new
@@ -100,15 +100,15 @@
:description: clear_screen_for_select_block
:arg_name: BOOL
:default: true
:procname: val_as_bool
-# - :opt_name: command_substitution_regexp
-# :env_var: MDE_COMMAND_SUBSTITUTION_REGEXP
-# :description: command_substitution_regexp
-# :default: "(?<expression>\\$\\((?<variable>[A-Z0-9a-z_]+)\\))"
-# :procname: val_as_str
+- :opt_name: command_substitution_regexp
+ :env_var: MDE_COMMAND_SUBSTITUTION_REGEXP
+ :description: command_substitution_regexp
+ :default: "(?<expression>\\$\\((?<command>([^()]*(\\([^()]*\\))*[^()]*)*)\\))"
+ :procname: val_as_str
- :long_name: config
:description: Read configuration file
:arg_name: PATH
:default: "."
@@ -460,11 +460,11 @@
:default: false
:procname: val_as_bool
- :opt_name: heading1_match
:env_var: MDE_HEADING1_MATCH
- :default: "^#(?<line>(?!#)(?<collapse>[+-~]?)(?<indent>[ \t]*)(?<text>.*?)(?<trailing>[ \t]*))?$"
+ :default: "^(?<indent>[ \t]*)#(?<collapse>[+-~]?)(?<leading>[ \t]*)(?<line>(?!#)(?<text>.*?))?(?<trailing>[ \t]*)$"
:procname: val_as_str
- :opt_name: heading2_center
:env_var: MDE_HEADING2_CENTER
:default: true
@@ -480,11 +480,12 @@
:default: true
:procname: val_as_bool
- :opt_name: heading2_match
:env_var: MDE_HEADING2_MATCH
- :default: "^##(?<line>(?!#)(?<collapse>[+-~]?)(?<indent>[ \t]*)(?<text>.*?)(?<trailing>[ \t]*))?$"
+ :default: "^(?<indent>[ \t]*)#{2}(?<collapse>[+-~]?)(?<leading>[ \t]*)(?<line>(?!#)(?<text>.*?))?(?<trailing>[ \t]*)$"
+
:procname: val_as_str
- :opt_name: heading3_center
:env_var: MDE_HEADING3_CENTER
:default: true
@@ -500,11 +501,11 @@
:default: true
:procname: val_as_bool
- :opt_name: heading3_match
:env_var: MDE_HEADING3_MATCH
- :default: "^###(?<collapse>[+-~]?)(?<line>(?<indent>[ \t]*)(?<text>.*?)(?<trailing>[ \t]*))?$"
+ :default: "^(?<indent>[ \t]*)#{3}(?<collapse>[+-~]?)(?<gap>[ \t]*)(?<line>(?!#)(?<text>.*?))?(?<trailing>[ \t]*)$"
:procname: val_as_str
- :long_name: help
:short_name: h
:description: App help
@@ -992,11 +993,11 @@
:procname: val_as_str
- :opt_name: menu_table_rows_match
:env_var: MDE_MENU_TABLE_ROWS_MATCH
:description: Pattern for table rows
- :default: '^(?<line>(?<indent>[ \t]*)(?<text>\|.*?)(?<trailing>[ \t]*))$'
+ :default: '^(?<indent>[ \t]*)(?<line>(?<text>\|.*?)(?<trailing>[ \t]*))$'
:procname: val_as_str
- :opt_name: menu_task_color
:env_var: MDE_MENU_TASK_COLOR
:description: Color of menu task
@@ -1254,10 +1255,16 @@
:env_var: MDE_PROMPT_FILESPEC_OTHER
:description: User wants a custom file name
:default: Other
:procname: val_as_str
+- :opt_name: prompt_margin_left_text
+ :env_var: MDE_PROMPT_MARGIN_LEFT_TEXT
+ :description: prompt_margin_left_text
+ :default: "ยป "
+ :procname: val_as_str
+
- :opt_name: prompt_no
:env_var: MDE_PROMPT_NO
:description: Prompt for no
:default: 'No'
:procname: val_as_str
@@ -1452,9 +1459,15 @@
:env_var: MDE_SAVED_STDOUT_GLOB
:description: Glob matching saved outputs
:arg_name: GLOB
:default: mde_*.out.txt
:procname: val_as_str
+
+- :opt_name: screen_width
+ :env_var: MDE_SCREEN_WIDTH
+ :description: Screen width for document and interface. 0 to use the actual dimension.
+ :default: 0
+ :procname: val_as_int
- :opt_name: script_execution_frame_color
:env_var: MDE_SCRIPT_EXECUTION_FRAME_COLOR
:description: script_execution_frame_color
:default: fg_rgbh_00_ff_7f