bin/tab_completion.sh in markdown_exec-1.8.2 vs bin/tab_completion.sh in markdown_exec-1.8.4

- old
+ new

@@ -11,11 +11,11 @@ { COMPREPLY='.' } _mde_echo_version() { - echo "1.8.2" + echo "1.8.4" } _mde() { local cur prev opts cur="${COMP_WORDS[COMP_CWORD]}" @@ -34,10 +34,16 @@ --debug) COMPREPLY="0"; return 0 ;; -d) COMPREPLY="0"; return 0 ;; + --dump-blocks-in-file) COMPREPLY="0"; return 0 ;; + + --dump-menu-blocks) COMPREPLY="0"; return 0 ;; + + --dump-selected-block) COMPREPLY="0"; return 0 ;; + --filename) COMPREPLY="."; return 0 ;; -f) COMPREPLY="."; return 0 ;; --find) COMPREPLY="''"; return 0 ;; @@ -80,11 +86,11 @@ # current word is an option name or start of # present matching option names # if [[ ${cur} == -* ]] ; then - opts=("--block-name" "--config" "--debug" "--exit" "--filename" "--find" "--help" "--how" "--list-blocks" "--list-count" "--list-default-env" "--list-default-yaml" "--list-docs" "--list-recent-output" "--list-recent-scripts" "--output-execution-summary" "--output-script" "--output-stdout" "--path" "--pwd" "--run-last-script" "--save-executed-script" "--save-execution-output" "--saved-script-folder" "--saved-stdout-folder" "--select-recent-output" "--select-recent-script" "--tab-completions" "--user-must-approve" "--version" "--display-level") + opts=("--block-name" "--config" "--debug" "--dump-blocks-in-file" "--dump-menu-blocks" "--dump-selected-block" "--exit" "--filename" "--find" "--help" "--how" "--list-blocks" "--list-count" "--list-default-env" "--list-default-yaml" "--list-docs" "--list-recent-output" "--list-recent-scripts" "--output-execution-summary" "--output-script" "--output-stdout" "--path" "--pwd" "--run-last-script" "--save-executed-script" "--save-execution-output" "--saved-script-folder" "--saved-stdout-folder" "--select-recent-output" "--select-recent-script" "--tab-completions" "--user-must-approve" "--version" "--display-level") COMPREPLY=( $(compgen -W "$(printf "'%s' " "${opts[@]}")" -- "${cur}") ) return 0 fi @@ -103,10 +109,16 @@ --debug) COMPREPLY=".BOOL."; return 0 ;; -d) COMPREPLY=".BOOL."; return 0 ;; + --dump-blocks-in-file) COMPREPLY=".BOOL."; return 0 ;; + + --dump-menu-blocks) COMPREPLY=".BOOL."; return 0 ;; + + --dump-selected-block) COMPREPLY=".BOOL."; return 0 ;; + --filename) COMPREPLY=".RELATIVE_PATH."; return 0 ;; -f) COMPREPLY=".RELATIVE_PATH."; return 0 ;; --find) COMPREPLY=".FIND."; return 0 ;; @@ -152,6 +164,6 @@ __filedirs } complete -o filenames -o nospace -F _mde mde # _mde_echo_version -# echo "Updated: 2023-12-12 16:37:57 UTC" +# echo "Updated: 2023-12-16 00:15:53 UTC"