diff options
author | Kirill Chibisov <wchibisovkirill@gmail.com> | 2019-07-08 18:19:42 +0300 |
---|---|---|
committer | Christian Duerr <chrisduerr@users.noreply.github.com> | 2019-07-08 15:19:42 +0000 |
commit | 7331e89122c464e7b1a73b2e7b20399f832a5913 (patch) | |
tree | de8388a99a0ef340cf2749e22569c80e1816ac7d /extra/completions | |
parent | 165246f50aead3a4311df6304830a6e24ef522c8 (diff) | |
download | alacritty-7331e89122c464e7b1a73b2e7b20399f832a5913.tar.gz alacritty-7331e89122c464e7b1a73b2e7b20399f832a5913.zip |
Add class and short title completions
Fixes #2612.
Diffstat (limited to 'extra/completions')
-rw-r--r-- | extra/completions/_alacritty | 3 | ||||
-rw-r--r-- | extra/completions/alacritty.bash | 4 | ||||
-rw-r--r-- | extra/completions/alacritty.fish | 4 |
3 files changed, 8 insertions, 3 deletions
diff --git a/extra/completions/_alacritty b/extra/completions/_alacritty index 0d3df1c3..a0e38bad 100644 --- a/extra/completions/_alacritty +++ b/extra/completions/_alacritty @@ -17,7 +17,8 @@ _alacritty() { "--config-file[Specify an alternative config file]:file:_files" \ "(-d --dimensions)"{-d,--dimensions}"[Window dimensions]:dimensions:_guard '<->' width: :_guard '<->' length" \ "--position[Window position]:position:_guard '<->' x-pos: :_guard '<->' y-pos" \ - "--title[Defines the window title]:title:" \ + "(-t --title)"{-t,--title}"[Defines the window title]:title:" \ + "--class[Defines the window class]:class:" \ "--working-directory[Start shell in specified directory]:directory:_dir_list" \ "(-e --command)"{-e,--command}"[Execute command (must be last arg)]:program: _command_names -e:*::program arguments: _normal" } diff --git a/extra/completions/alacritty.bash b/extra/completions/alacritty.bash index 086e3cdc..fc39eb17 100644 --- a/extra/completions/alacritty.bash +++ b/extra/completions/alacritty.bash @@ -11,7 +11,7 @@ _alacritty() cur="${COMP_WORDS[COMP_CWORD]}" prev="${COMP_WORDS[COMP_CWORD-1]}" prevprev="${COMP_WORDS[COMP_CWORD-2]}" - opts="-h --help -V --version --live-config-reload --no-live-config-reload --persistent-logging --print-events -q -qq -v -vv -vvv --ref-test -e --command --config-file -d --dimensions --position -t --title --working-directory" + opts="-h --help -V --version --live-config-reload --no-live-config-reload --persistent-logging --print-events -q -qq -v -vv -vvv --ref-test -e --command --config-file -d --dimensions --position -t --title --class --working-directory" # If `--command` or `-e` is used, stop completing for i in "${!COMP_WORDS[@]}"; do @@ -40,7 +40,7 @@ _alacritty() compopt -o filenames COMPREPLY=( $(compgen -f -- "${cur}") ) return 0;; - --dimensions | -d | --title | -t) + --dimensions | -d | --class | --title | -t) # Don't complete here return 0;; --working-directory) diff --git a/extra/completions/alacritty.fish b/extra/completions/alacritty.fish index 5f605349..dedf6c47 100644 --- a/extra/completions/alacritty.fish +++ b/extra/completions/alacritty.fish @@ -23,9 +23,13 @@ complete -c alacritty \ -l "config-file" \ -d "Specify an alternative config file" complete -c alacritty \ + -s "t" \ -l "title" \ -d "Defines the window title" complete -c alacritty \ + -l "class" \ + -d "Defines the window class" +complete -c alacritty \ -x \ -a '(__fish_complete_directories (commandline -ct))' \ -l "working-directory" \ |