completions: bash: new completions for the ‘hide-cursor’ command
This commit is contained in:
parent
790de95726
commit
3979dd5cf9
@ -45,6 +45,7 @@ function __riverctl_completion ()
|
|||||||
border-color-urgent \
|
border-color-urgent \
|
||||||
border-width \
|
border-width \
|
||||||
focus-follows-cursor \
|
focus-follows-cursor \
|
||||||
|
hide-cursor \
|
||||||
set-repeat \
|
set-repeat \
|
||||||
set-cursor-warp \
|
set-cursor-warp \
|
||||||
xcursor-theme"
|
xcursor-theme"
|
||||||
@ -60,6 +61,7 @@ function __riverctl_completion ()
|
|||||||
"attach-mode") OPTS="top bottom" ;;
|
"attach-mode") OPTS="top bottom" ;;
|
||||||
"focus-follows-cursor") OPTS="disabled normal" ;;
|
"focus-follows-cursor") OPTS="disabled normal" ;;
|
||||||
"set-cursor-warp") OPTS="disabled on-output-change" ;;
|
"set-cursor-warp") OPTS="disabled on-output-change" ;;
|
||||||
|
"hide-cursor") OPTS="timeout when-typing" ;;
|
||||||
*) return ;;
|
*) return ;;
|
||||||
esac
|
esac
|
||||||
COMPREPLY=($(compgen -W "${OPTS}" -- "${COMP_WORDS[2]}"))
|
COMPREPLY=($(compgen -W "${OPTS}" -- "${COMP_WORDS[2]}"))
|
||||||
@ -82,6 +84,13 @@ function __riverctl_completion ()
|
|||||||
scroll-method \
|
scroll-method \
|
||||||
scroll-button"
|
scroll-button"
|
||||||
COMPREPLY=($(compgen -W "${OPTS}" -- "${COMP_WORDS[2]}"))
|
COMPREPLY=($(compgen -W "${OPTS}" -- "${COMP_WORDS[2]}"))
|
||||||
|
elif [ "${COMP_WORDS[1]}" == "hide-cursor" ]
|
||||||
|
then
|
||||||
|
case "${COMP_WORDS[2]}" in
|
||||||
|
"when-typing") OPTS="enabled disabled" ;;
|
||||||
|
*) return ;;
|
||||||
|
esac
|
||||||
|
COMPREPLY=($(compgen -W "${OPTS}" -- "${COMP_WORDS[3]}"))
|
||||||
fi
|
fi
|
||||||
elif [ "${COMP_CWORD}" -eq 4 ]
|
elif [ "${COMP_CWORD}" -eq 4 ]
|
||||||
then
|
then
|
||||||
|
Loading…
Reference in New Issue
Block a user