completions: Add bash completion for set-cursor-warp commands

This commit is contained in:
Leon Henrik Plickat 2021-06-22 15:53:22 +02:00 committed by Isaac Freund
parent 085cca0d5e
commit 61829d82fe

View file

@ -43,6 +43,7 @@ function __riverctl_completion ()
focus-follow-cursor \ focus-follow-cursor \
opacity \ opacity \
set-repeat \ set-repeat \
set-cursor-warp \
xcursor-theme" xcursor-theme"
COMPREPLY=($(compgen -W "${OPTS}" -- "${COMP_WORDS[1]}")) COMPREPLY=($(compgen -W "${OPTS}" -- "${COMP_WORDS[1]}"))
elif [ "${COMP_CWORD}" -eq 2 ] elif [ "${COMP_CWORD}" -eq 2 ]
@ -54,6 +55,7 @@ function __riverctl_completion ()
"map"|"unmap") OPTS="-release" ;; "map"|"unmap") OPTS="-release" ;;
"attach-mode") OPTS="top bottom" ;; "attach-mode") OPTS="top bottom" ;;
"focus-follows-cursor") OPTS="disabled normal strict" ;; "focus-follows-cursor") OPTS="disabled normal strict" ;;
"set-cursor-warp") OPTS="disabled on-output-change" ;;
*) return ;; *) return ;;
esac esac
COMPREPLY=($(compgen -W "${OPTS}" -- "${COMP_WORDS[2]}")) COMPREPLY=($(compgen -W "${OPTS}" -- "${COMP_WORDS[2]}"))