bin/tab_completion.sh in markdown_exec-1.7 vs bin/tab_completion.sh in markdown_exec-1.8

- old
+ new

@@ -11,11 +11,11 @@ { COMPREPLY='.' } _mde_echo_version() { - echo "1.7" + echo "1.8" } _mde() { local cur prev opts cur="${COMP_WORDS[COMP_CWORD]}" @@ -38,10 +38,18 @@ --filename) COMPREPLY="."; return 0 ;; -f) COMPREPLY="."; return 0 ;; + --find) COMPREPLY="''"; return 0 ;; + + -?) COMPREPLY="''"; return 0 ;; + + --how) COMPREPLY="''"; return 0 ;; + + -?) COMPREPLY="''"; return 0 ;; + --list-count) COMPREPLY="32"; return 0 ;; --output-execution-summary) COMPREPLY="0"; return 0 ;; --output-script) COMPREPLY="0"; return 0 ;; @@ -72,11 +80,11 @@ # current word is an option name or start of # present matching option names # if [[ ${cur} == -* ]] ; then - opts=("--block-name" "--config" "--debug" "--exit" "--filename" "--help" "--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" "--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 @@ -99,10 +107,18 @@ --filename) COMPREPLY=".RELATIVE_PATH."; return 0 ;; -f) COMPREPLY=".RELATIVE_PATH."; return 0 ;; + --find) COMPREPLY=".FIND."; return 0 ;; + + -?) COMPREPLY=".FIND."; return 0 ;; + + --how) COMPREPLY=".HOW."; return 0 ;; + + -?) COMPREPLY=".HOW."; return 0 ;; + --list-count) COMPREPLY=".INT.1-."; return 0 ;; --output-execution-summary) COMPREPLY=".BOOL."; return 0 ;; --output-script) COMPREPLY=".BOOL."; return 0 ;; @@ -136,6 +152,6 @@ __filedirs } complete -o filenames -o nospace -F _mde mde # _mde_echo_version -# echo "Updated: 2023-12-01 18:34:38 UTC" +# echo "Updated: 2023-12-11 19:58:50 UTC"