From 3979dd5cf917619da47bb4fff428d1e08050d943 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Wed, 20 Apr 2022 19:00:03 +0200 Subject: =?UTF-8?q?completions:=20bash:=20new=20completions=20for=20the=20?= =?UTF-8?q?=E2=80=98hide-cursor=E2=80=99=20command?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- completions/bash/riverctl | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'completions/bash') diff --git a/completions/bash/riverctl b/completions/bash/riverctl index 692dcaa..b39cf26 100644 --- a/completions/bash/riverctl +++ b/completions/bash/riverctl @@ -45,6 +45,7 @@ function __riverctl_completion () border-color-urgent \ border-width \ focus-follows-cursor \ + hide-cursor \ set-repeat \ set-cursor-warp \ xcursor-theme" @@ -60,6 +61,7 @@ function __riverctl_completion () "attach-mode") OPTS="top bottom" ;; "focus-follows-cursor") OPTS="disabled normal" ;; "set-cursor-warp") OPTS="disabled on-output-change" ;; + "hide-cursor") OPTS="timeout when-typing" ;; *) return ;; esac COMPREPLY=($(compgen -W "${OPTS}" -- "${COMP_WORDS[2]}")) @@ -82,6 +84,13 @@ function __riverctl_completion () scroll-method \ scroll-button" 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 elif [ "${COMP_CWORD}" -eq 4 ] then -- cgit v1.2.3