bin/tab_completion.sh in markdown_exec-2.3.0 vs bin/tab_completion.sh in markdown_exec-2.4.0

- old
+ new

@@ -11,11 +11,11 @@ { COMPREPLY='.' } _mde_echo_version() { - echo "2.3.0" + echo "2.4.0" } _mde() { local cur prev opts cur="${COMP_WORDS[COMP_CWORD]}" @@ -30,32 +30,34 @@ if [[ ${prev} == -* ]] ; then case $prev in --config) COMPREPLY="."; return 0 ;; - --debug) COMPREPLY="0"; return 0 ;; + --debug) COMPREPLY="f"; return 0 ;; - -d) COMPREPLY="0"; return 0 ;; + -d) COMPREPLY="f"; return 0 ;; - --dump-delegate-object) COMPREPLY="0"; return 0 ;; + --dump-blocks-in-file) COMPREPLY="f"; return 0 ;; - --dump-blocks-in-file) COMPREPLY="0"; return 0 ;; + --dump-delegate-object) COMPREPLY="f"; return 0 ;; - --dump-inherited-block_names) COMPREPLY="0"; return 0 ;; + --dump-dependencies) COMPREPLY="f"; return 0 ;; - --dump-inherited-dependencies) COMPREPLY="0"; return 0 ;; + --dump-inherited-block-names) COMPREPLY="f"; return 0 ;; - --dump-inherited-lines) COMPREPLY="0"; return 0 ;; + --dump-inherited-dependencies) COMPREPLY="f"; return 0 ;; - --dump-menu-blocks) COMPREPLY="0"; return 0 ;; + --dump-inherited-lines) COMPREPLY="f"; return 0 ;; - --dump-selected-block) COMPREPLY="0"; return 0 ;; + --dump-menu-blocks) COMPREPLY="f"; return 0 ;; - --execute_in_own_window) COMPREPLY="0"; return 0 ;; + --dump-selected-block) COMPREPLY="f"; return 0 ;; - -w) COMPREPLY="0"; return 0 ;; + --execute-in-own-window) COMPREPLY="f"; return 0 ;; + -w) COMPREPLY="f"; return 0 ;; + --filename) COMPREPLY="."; return 0 ;; -f) COMPREPLY="."; return 0 ;; --find) COMPREPLY="''"; return 0 ;; @@ -66,43 +68,53 @@ --how) COMPREPLY="''"; return 0 ;; -?) COMPREPLY="''"; return 0 ;; + --list-blocks-eval) COMPREPLY="''"; return 0 ;; + + --list-blocks-message) COMPREPLY="oname"; return 0 ;; + + --list-blocks-type) COMPREPLY="0"; return 0 ;; + --list-count) COMPREPLY="32"; return 0 ;; + --format) COMPREPLY="text"; return 0 ;; + --load-code) COMPREPLY="''"; return 0 ;; -l) COMPREPLY="''"; return 0 ;; --open) COMPREPLY="''"; return 0 ;; -o) COMPREPLY="''"; return 0 ;; - --output-script) COMPREPLY="0"; return 0 ;; + --output-script) COMPREPLY="f"; return 0 ;; - --output-stdout) COMPREPLY="1"; return 0 ;; + --output-stdout) COMPREPLY="t"; return 0 ;; --path) COMPREPLY="."; return 0 ;; -p) COMPREPLY="."; return 0 ;; - --user-must-approve) COMPREPLY="0"; return 0 ;; + --pause-after-script-execution) COMPREPLY="f"; return 0 ;; - -q) COMPREPLY="0"; return 0 ;; + --user-must-approve) COMPREPLY="f"; return 0 ;; + -q) COMPREPLY="f"; return 0 ;; + --display-level) COMPREPLY="1"; return 0 ;; esac fi fi # current word is an option name or start of # present matching option names # if [[ ${cur} == -* ]] ; then - opts=("--block-name" "--config" "--debug" "--dump-delegate-object" "--dump-blocks-in-file" "--dump-inherited-block_names" "--dump-inherited-dependencies" "--dump-inherited-lines" "--dump-menu-blocks" "--dump-selected-block" "--execute_in_own_window" "--exit" "--filename" "--find" "--find-path" "--help" "--how" "--list-blocks" "--list-count" "--list-default-env" "--list-default-yaml" "--list-docs" "--list-recent-output" "--list-recent-scripts" "--load-code" "--open" "--output-script" "--output-stdout" "--path" "--pwd" "--run-last-script" "--tab-completions" "--user-must-approve" "--version" "--display-level") + opts=("--block-name" "--config" "--debug" "--dig" "--dump-blocks-in-file" "--dump-delegate-object" "--dump-dependencies" "--dump-inherited-block-names" "--dump-inherited-dependencies" "--dump-inherited-lines" "--dump-menu-blocks" "--dump-selected-block" "--execute-in-own-window" "--exit" "--filename" "--find" "--find-path" "--help" "--history" "--how" "--list-blocks" "--list-blocks-eval" "--list-blocks-message" "--list-blocks-type" "--list-count" "--list-default-env" "--list-default-yaml" "--list-docs" "--format" "--list-recent-output" "--list-recent-scripts" "--load-code" "--mine" "--open" "--output-script" "--output-stdout" "--path" "--pause-after-script-execution" "--probe" "--publish-document-file-mode" "--publish-document-file-name" "--pwd" "--run-last-script" "--sift" "--tab-completions" "--user-must-approve" "--version" "--display-level") COMPREPLY=( $(compgen -W "$(printf "'%s' " "${opts[@]}")" -- "${cur}") ) return 0 fi @@ -121,25 +133,27 @@ --debug) COMPREPLY=".BOOL."; return 0 ;; -d) COMPREPLY=".BOOL."; return 0 ;; + --dump-blocks-in-file) COMPREPLY=".BOOL."; return 0 ;; + --dump-delegate-object) COMPREPLY=".BOOL."; return 0 ;; - --dump-blocks-in-file) COMPREPLY=".BOOL."; return 0 ;; + --dump-dependencies) COMPREPLY=".BOOL."; return 0 ;; - --dump-inherited-block_names) COMPREPLY=".BOOL."; return 0 ;; + --dump-inherited-block-names) COMPREPLY=".BOOL."; return 0 ;; --dump-inherited-dependencies) COMPREPLY=".BOOL."; return 0 ;; --dump-inherited-lines) COMPREPLY=".BOOL."; return 0 ;; --dump-menu-blocks) COMPREPLY=".BOOL."; return 0 ;; --dump-selected-block) COMPREPLY=".BOOL."; return 0 ;; - --execute_in_own_window) COMPREPLY=".BOOL."; return 0 ;; + --execute-in-own-window) COMPREPLY=".BOOL."; return 0 ;; -w) COMPREPLY=".BOOL."; return 0 ;; --filename) COMPREPLY=".RELATIVE_PATH."; return 0 ;; @@ -153,12 +167,20 @@ --how) COMPREPLY=".HOW."; return 0 ;; -?) COMPREPLY=".HOW."; return 0 ;; + --list-blocks-eval) COMPREPLY=".EVAL."; return 0 ;; + + --list-blocks-message) COMPREPLY=".MESSAGE."; return 0 ;; + + --list-blocks-type) COMPREPLY=".TYPE."; return 0 ;; + --list-count) COMPREPLY=".INT.1-."; return 0 ;; + --format) COMPREPLY=".FORMAT."; return 0 ;; + --load-code) COMPREPLY=".PATH."; return 0 ;; -l) COMPREPLY=".PATH."; return 0 ;; --open) COMPREPLY=".OPEN."; return 0 ;; @@ -170,9 +192,11 @@ --output-stdout) COMPREPLY=".BOOL."; return 0 ;; --path) COMPREPLY=".RELATIVE_PATH."; return 0 ;; -p) COMPREPLY=".RELATIVE_PATH."; return 0 ;; + + --pause-after-script-execution) COMPREPLY=".BOOL."; return 0 ;; --user-must-approve) COMPREPLY=".BOOL."; return 0 ;; -q) COMPREPLY=".BOOL."; return 0 ;;