Skip to content

Commit

Permalink
docs and derived files for zoom-pane
Browse files Browse the repository at this point in the history
refs: #4160
  • Loading branch information
wez committed Aug 29, 2023
1 parent f4db686 commit 99c9613
Show file tree
Hide file tree
Showing 7 changed files with 188 additions and 64 deletions.
63 changes: 59 additions & 4 deletions assets/shell-completion/bash
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@ _wezterm() {
wezterm__cli,tlscreds)
cmd="wezterm__cli__tlscreds"
;;
wezterm__cli,zoom-pane)
cmd="wezterm__cli__zoom__pane"
;;
wezterm__cli__help,activate-pane)
cmd="wezterm__cli__help__activate__pane"
;;
Expand Down Expand Up @@ -165,6 +168,9 @@ _wezterm() {
wezterm__cli__help,tlscreds)
cmd="wezterm__cli__help__tlscreds"
;;
wezterm__cli__help,zoom-pane)
cmd="wezterm__cli__help__zoom__pane"
;;
wezterm__help,cli)
cmd="wezterm__help__cli"
;;
Expand Down Expand Up @@ -258,6 +264,9 @@ _wezterm() {
wezterm__help__cli,tlscreds)
cmd="wezterm__help__cli__tlscreds"
;;
wezterm__help__cli,zoom-pane)
cmd="wezterm__help__cli__zoom__pane"
;;
*)
;;
esac
Expand Down Expand Up @@ -287,7 +296,7 @@ _wezterm() {
return 0
;;
wezterm__cli)
opts="-h --no-auto-start --prefer-mux --class --help list list-clients proxy tlscreds move-pane-to-new-tab split-pane spawn send-text get-text activate-pane-direction get-pane-direction kill-pane activate-pane adjust-pane-size activate-tab set-tab-title set-window-title rename-workspace help"
opts="-h --no-auto-start --prefer-mux --class --help list list-clients proxy tlscreds move-pane-to-new-tab split-pane spawn send-text get-text activate-pane-direction get-pane-direction kill-pane activate-pane adjust-pane-size activate-tab set-tab-title set-window-title rename-workspace zoom-pane help"
if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
Expand Down Expand Up @@ -437,7 +446,7 @@ _wezterm() {
return 0
;;
wezterm__cli__help)
opts="list list-clients proxy tlscreds move-pane-to-new-tab split-pane spawn send-text get-text activate-pane-direction get-pane-direction kill-pane activate-pane adjust-pane-size activate-tab set-tab-title set-window-title rename-workspace help"
opts="list list-clients proxy tlscreds move-pane-to-new-tab split-pane spawn send-text get-text activate-pane-direction get-pane-direction kill-pane activate-pane adjust-pane-size activate-tab set-tab-title set-window-title rename-workspace zoom-pane help"
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
Expand Down Expand Up @@ -716,6 +725,20 @@ _wezterm() {
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
;;
wezterm__cli__help__zoom__pane)
opts=""
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
fi
case "${prev}" in
*)
COMPREPLY=()
;;
esac
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
;;
wezterm__cli__kill__pane)
opts="-h --pane-id --help"
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
Expand Down Expand Up @@ -976,6 +999,24 @@ _wezterm() {
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
;;
wezterm__cli__zoom__pane)
opts="-h --pane-id --zoom --unzoom --toggle --help"
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
fi
case "${prev}" in
--pane-id)
COMPREPLY=($(compgen -f "${cur}"))
return 0
;;
*)
COMPREPLY=()
;;
esac
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
;;
wezterm__connect)
opts="-h --class --workspace --position --help <DOMAIN_NAME> [PROG]..."
if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
Expand Down Expand Up @@ -1017,7 +1058,7 @@ _wezterm() {
return 0
;;
wezterm__help__cli)
opts="list list-clients proxy tlscreds move-pane-to-new-tab split-pane spawn send-text get-text activate-pane-direction get-pane-direction kill-pane activate-pane adjust-pane-size activate-tab set-tab-title set-window-title rename-workspace"
opts="list list-clients proxy tlscreds move-pane-to-new-tab split-pane spawn send-text get-text activate-pane-direction get-pane-direction kill-pane activate-pane adjust-pane-size activate-tab set-tab-title set-window-title rename-workspace zoom-pane"
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
Expand Down Expand Up @@ -1282,6 +1323,20 @@ _wezterm() {
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
;;
wezterm__help__cli__zoom__pane)
opts=""
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
fi
case "${prev}" in
*)
COMPREPLY=()
;;
esac
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
;;
wezterm__help__connect)
opts=""
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
Expand Down Expand Up @@ -1693,4 +1748,4 @@ _wezterm() {
esac
}

complete -F _wezterm -o bashdefault -o default wezterm
complete -F _wezterm -o nosort -o bashdefault -o default wezterm
Loading

0 comments on commit 99c9613

Please sign in to comment.