CHANGELOG.md in markdown_exec-0.2.3 vs CHANGELOG.md in markdown_exec-0.2.4

- old
+ new

@@ -1,40 +1,33 @@ # Changelog -## [ToDo] -- pipe stdin to script -- yes/no/write/clipboard/record/edit/history -- add confirm block to generated file -- present timestamp, result of last exec for each command -- user settings -- hidden w , w/o () in names -- exit in menus -- fix regexp in pathnames -- tab completion from md file -- read file once to allow for tempdoc stream -- include md or blocks file +## [0.2.4] - 2022-04-01 -- tree display +### Added -- mde options in md file or included file +- Command `--list-recent-scripts` to list the last *N* saved scripts. +- Command `--run-last-script` to re-run the last saved script. +- Command `--select-recent-script` to select and execute a recently saved script. -- include blocks from local md file +| YAML Name | Environment Variable | Option Name | Default | Purpose | +| :--- | :--- | :--- | :--- | :--- | +| list_count | MDE_LIST_COUNT | `--list_count` | `16` | Max. items to return in list | +| logged_stdout_filename_prefix | MDE_LOGGED_STDOUT_FILENAME_PREFIX | | `mde` | Name prefix for stdout files | +| save_execution_output | MDE_SAVE_EXECUTION_OUTPUT | `--save-execution-output` | False | Save standard output of the executed script | +| saved_script_filename_prefix | MDE_SAVED_SCRIPT_FILENAME_PREFIX | | `mde` | Name prefix for saved scripts | +| saved_script_folder | MDE_SAVED_SCRIPT_FOLDER | `--saved-script-folder` | `logs` | Saved script folder | +| saved_script_glob | MDE_SAVED_SCRIPT_GLOB | | `mde_*.sh` | Glob matching saved scripts | +| saved_stdout_folder | MDE_SAVED_STDOUT_FOLDER | `--saved-stdout-folder` | `logs` | Saved stdout folder | -- save outputs, errors +### Changed -- chmod a+x logged script +- Fix saving of executed script. +- Sort configuration keys output by `-0` (Show configuration.) -- exec most recent logged scripts +## [0.2.3] - 2022-03-29 -- cmd to list last n -- cmd to repeat last - -## [Unreleased] - -## [0.2.3] - 2022-03 - ### Added - `rubocop` checks. - Added optional command-line positional arguments: 1. document file @@ -43,13 +36,11 @@ e.g. `mde doc1 block1` will execute the block named `block1` in file `doc1`. ### Changed - Naming saved script files: The file name contains the time stamp, document name, and block name. - - Renamed folder with fixtures. - - Command options: | YAML Name | Environment Variable | Option Name | Default | Purpose | | :--- | :--- | :--- | :--- | :--- | | debug | MDE_DEBUG | `--debug` | False | Output debugging information (verbose) | @@ -68,11 +59,11 @@ | YAML Name | Environment Variable | Default | | :--- | :--- | :--- | | block_name_excluded_match | MDE_BLOCK_NAME_EXCLUDED_MATCH | `^\(.+\)$` | | block_name_match | MDE_BLOCK_NAME_MATCH | `:(?<title>\S+)( \|$)` | | block_required_scan | MDE_BLOCK_REQUIRED_SCAN | `\+\S+` | -| fenced_start_and_end_match | MDE_FENCED_START_AND_END_MATCH | `^\`{3,}` | -| fenced_start_ex_match | MDE_FENCED_START_EX_MATCH | `^\`{3,}(?<shell>[^\`\s]*) *(?<name>.*)$` | +| fenced_start_and_end_match | MDE_FENCED_START_AND_END_MATCH | ``^`{3,}`` | +| fenced_start_ex_match | MDE_FENCED_START_EX_MATCH | ``^`{3,}(?<shell>[^`\s]*) *(?<name>.*)$`` | | heading1_match | MDE_HEADING1_MATCH | `^# *(?<name>[^#]*?) *$` | | heading2_match | MDE_HEADING2_MATCH | `^## *(?<name>[^#]*?) *$` | | heading3_match | MDE_HEADING3_MATCH | `^### *(?<name>.+?) *$` | | md_filename_glob | MDE_MD_FILENAME_GLOB | `*.[Mm][Dd]` | | md_filename_match | MDE_MD_FILENAME_MATCH | `.+\\.md` |