From ce59fa4165500d8e242ae7a73e3da065e11e461e Mon Sep 17 00:00:00 2001 From: Kirill Chibisov Date: Mon, 3 Jan 2022 21:55:22 +0300 Subject: Add title/class CLI parameters to create-window This adds the ability to pass title and class over IPC via the create-window subcommand, so users can run only one instance for windows of different spurposes in the window managers of their choice. --- extra/completions/alacritty.bash | 38 +++++++++++++++++++++++++------------- 1 file changed, 25 insertions(+), 13 deletions(-) (limited to 'extra/completions/alacritty.bash') diff --git a/extra/completions/alacritty.bash b/extra/completions/alacritty.bash index 7ce57f9d..cc1c1f42 100644 --- a/extra/completions/alacritty.bash +++ b/extra/completions/alacritty.bash @@ -29,54 +29,54 @@ _alacritty() { case "${cmd}" in alacritty) - opts=" -q -v -h -V -t -o -e --print-events --ref-test --hold --help --version --title --class --embed --config-file --socket --option --working-directory --command msg help" + opts=" -q -v -h -V -o -e -t --print-events --ref-test --hold --help --version --embed --config-file --socket --option --working-directory --command --title --class msg help" if [[ ${cur} == -* || ${COMP_CWORD} -eq 1 ]] ; then COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) return 0 fi case "${prev}" in - --title) + --embed) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; - -t) + --config-file) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; - --class) + --socket) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; - --embed) + --option) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; - --config-file) + -o) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; - --socket) + --working-directory) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; - --option) + --command) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; - -o) + -e) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; - --working-directory) + --title) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; - --command) + -t) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; - -e) + --class) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; @@ -127,7 +127,7 @@ _alacritty() { return 0 ;; alacritty__msg__create__window) - opts=" -h -V -e --hold --help --version --working-directory --command " + opts=" -h -V -e -t --hold --help --version --working-directory --command --title --class " if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) return 0 @@ -146,6 +146,18 @@ _alacritty() { COMPREPLY=($(compgen -f "${cur}")) return 0 ;; + --title) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -t) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --class) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; *) COMPREPLY=() ;; -- cgit v1.2.3-54-g00ecf