bin/tab_completion.sh in markdown_exec-2.1.0 vs bin/tab_completion.sh in markdown_exec-2.2.0

- old
+ new

@@ -11,11 +11,11 @@ { COMPREPLY='.' } _mde_echo_version() { - echo "2.1.0" + echo "2.2.0" } _mde() { local cur prev opts cur="${COMP_WORDS[COMP_CWORD]}" @@ -48,10 +48,14 @@ --dump-menu-blocks) COMPREPLY="0"; return 0 ;; --dump-selected-block) COMPREPLY="0"; return 0 ;; + --execute_in_own_window) COMPREPLY="0"; return 0 ;; + + -w) COMPREPLY="0"; return 0 ;; + --filename) COMPREPLY="."; return 0 ;; -f) COMPREPLY="."; return 0 ;; --find) COMPREPLY="''"; return 0 ;; @@ -66,10 +70,12 @@ --list-count) COMPREPLY="32"; 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 ;; @@ -92,11 +98,11 @@ # 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" "--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" "--select-recent-output" "--select-recent-script" "--tab-completions" "--user-must-approve" "--version" "--display-level") + 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") COMPREPLY=( $(compgen -W "$(printf "'%s' " "${opts[@]}")" -- "${cur}") ) return 0 fi @@ -129,10 +135,14 @@ --dump-menu-blocks) COMPREPLY=".BOOL."; return 0 ;; --dump-selected-block) COMPREPLY=".BOOL."; return 0 ;; + --execute_in_own_window) COMPREPLY=".BOOL."; return 0 ;; + + -w) COMPREPLY=".BOOL."; return 0 ;; + --filename) COMPREPLY=".RELATIVE_PATH."; return 0 ;; -f) COMPREPLY=".RELATIVE_PATH."; return 0 ;; --find) COMPREPLY=".FIND."; return 0 ;; @@ -147,10 +157,12 @@ --list-count) COMPREPLY=".INT.1-."; return 0 ;; --load-code) COMPREPLY=".PATH."; return 0 ;; + -l) COMPREPLY=".PATH."; return 0 ;; + --open) COMPREPLY=".OPEN."; return 0 ;; -o) COMPREPLY=".OPEN."; return 0 ;; --output-script) COMPREPLY=".BOOL."; return 0 ;; @@ -176,6 +188,5 @@ __filedirs } complete -o filenames -o nospace -F _mde mde # _mde_echo_version -# echo "Updated: 2024-07-16 20:54:59 UTC"