aboutsummaryrefslogtreecommitdiff
path: root/completions
diff options
context:
space:
mode:
authorKeith Hubbard <keithhub@users.noreply.github.com>2021-08-15 08:49:11 -0400
committerGitHub <noreply@github.com>2021-08-15 14:49:11 +0200
commit2bdf9e20a5816d12697fc5770eab10351dca609c (patch)
tree073462266b4d6c010b99c4737deace8aafe72616 /completions
parent6e51a8fcdda64fd1c2d34b969c0758c82895b9a5 (diff)
downloadriver-2bdf9e20a5816d12697fc5770eab10351dca609c.tar.gz
river-2bdf9e20a5816d12697fc5770eab10351dca609c.tar.xz
command: support repeating keyboard mappings
Repeating mappings are created using the -repeat option to the map command: % riverctl map normal $mod+Mod1 K -repeat move up 10 - repeating is only supported for key press (not -release) mappings - unlike -release, -repeat does not create distinct mappings: mapping a key with -repeat will replace an existing bare mapping and vice-versa Resolves #306
Diffstat (limited to 'completions')
-rw-r--r--completions/bash/riverctl3
-rw-r--r--completions/fish/riverctl.fish2
-rw-r--r--completions/zsh/_riverctl2
3 files changed, 4 insertions, 3 deletions
diff --git a/completions/bash/riverctl b/completions/bash/riverctl
index b5fb34b..3475386 100644
--- a/completions/bash/riverctl
+++ b/completions/bash/riverctl
@@ -51,7 +51,8 @@ function __riverctl_completion ()
"focus-output"|"focus-view"|"send-to-output"|"swap") OPTS="next previous" ;;
"move"|"snap") OPTS="up down left right" ;;
"resize") OPTS="horizontal vertical" ;;
- "map"|"unmap") OPTS="-release" ;;
+ "map") OPTS="-release -repeat" ;;
+ "unmap") OPTS="-release" ;;
"attach-mode") OPTS="top bottom" ;;
"focus-follows-cursor") OPTS="disabled normal" ;;
"set-cursor-warp") OPTS="disabled on-output-change" ;;
diff --git a/completions/fish/riverctl.fish b/completions/fish/riverctl.fish
index 3609e57..88be779 100644
--- a/completions/fish/riverctl.fish
+++ b/completions/fish/riverctl.fish
@@ -90,7 +90,7 @@ complete -c riverctl -x -n '__fish_seen_subcommand_from resize' -a
complete -c riverctl -x -n '__fish_seen_subcommand_from snap' -a 'up down left right'
complete -c riverctl -x -n '__fish_seen_subcommand_from send-to-output' -a 'next previous'
complete -c riverctl -x -n '__fish_seen_subcommand_from swap' -a 'next previous'
-complete -c riverctl -x -n '__fish_seen_subcommand_from map' -a '-release'
+complete -c riverctl -x -n '__fish_seen_subcommand_from map' -a '-release -repeat'
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'
diff --git a/completions/zsh/_riverctl b/completions/zsh/_riverctl
index f606565..d782340 100644
--- a/completions/zsh/_riverctl
+++ b/completions/zsh/_riverctl
@@ -133,7 +133,7 @@ _riverctl()
snap) _alternative 'arguments:args:(up down left right)' ;;
send-to-output) _alternative 'arguments:args:(next previous)' ;;
swap) _alternative 'arguments:args:(next previous)' ;;
- map) _alternative 'arguments:optional:(-release)' ;;
+ map) _alternative 'arguments:optional:(-release -repeat)' ;;
unmap) _alternative 'arguments:optional:(-release)' ;;
attach-mode) _alternative 'arguments:args:(top bottom)' ;;
focus-follows-cursor) _alternative 'arguments:args:(disabled normal)' ;;