From 50c9e3d81bcd0f5d7aba9f136aece36960ed197e Mon Sep 17 00:00:00 2001 From: Isaac Freund Date: Fri, 3 Jun 2022 11:09:18 +0200 Subject: Cursor: revive 'always' focus-follows-cursor mode This was removed a while back because it was buggy and I didn't know of anyone using it. Since refactoring it is now trivial to implement and I know of at least one person using it, so I don't mind reviving it. --- completions/bash/riverctl | 2 +- completions/fish/riverctl.fish | 2 +- completions/zsh/_riverctl | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'completions') diff --git a/completions/bash/riverctl b/completions/bash/riverctl index 881946f..14a5bfb 100644 --- a/completions/bash/riverctl +++ b/completions/bash/riverctl @@ -59,7 +59,7 @@ function __riverctl_completion () "map") OPTS="-release -repeat -layout" ;; "unmap") OPTS="-release" ;; "attach-mode") OPTS="top bottom" ;; - "focus-follows-cursor") OPTS="disabled normal" ;; + "focus-follows-cursor") OPTS="disabled normal always" ;; "set-cursor-warp") OPTS="disabled on-output-change" ;; "hide-cursor") OPTS="timeout when-typing" ;; *) return ;; diff --git a/completions/fish/riverctl.fish b/completions/fish/riverctl.fish index 7a09063..443e986 100644 --- a/completions/fish/riverctl.fish +++ b/completions/fish/riverctl.fish @@ -73,7 +73,7 @@ complete -c riverctl -x -n '__fish_seen_subcommand_from swap' -a complete -c riverctl -x -n '__fish_seen_subcommand_from map' -a '-release -repeat -layout' complete -c riverctl -x -n '__fish_seen_subcommand_from unmap' -a '-release' complete -c riverctl -x -n '__fish_seen_subcommand_from attach-mode' -a 'top bottom' -complete -c riverctl -x -n '__fish_seen_subcommand_from focus-follows-cursor' -a 'disabled normal' +complete -c riverctl -x -n '__fish_seen_subcommand_from focus-follows-cursor' -a 'disabled normal always' complete -c riverctl -x -n '__fish_seen_subcommand_from set-cursor-warp' -a 'disabled on-output-change' # Subcommands for 'input' diff --git a/completions/zsh/_riverctl b/completions/zsh/_riverctl index 8fec8fe..ed2662d 100644 --- a/completions/zsh/_riverctl +++ b/completions/zsh/_riverctl @@ -172,7 +172,7 @@ _riverctl() map) _alternative 'arguments:optional:(-release -repeat -layout)' ;; unmap) _alternative 'arguments:optional:(-release)' ;; attach-mode) _alternative 'arguments:args:(top bottom)' ;; - focus-follows-cursor) _alternative 'arguments:args:(disabled normal)' ;; + focus-follows-cursor) _alternative 'arguments:args:(disabled normal always)' ;; set-cursor-warp) _alternative 'arguments:args:(disabled on-output-change)' ;; hide-cursor) _riverctl_hide_cursor ;; *) return 0 ;; -- cgit v1.2.3