From 2bdf9e20a5816d12697fc5770eab10351dca609c Mon Sep 17 00:00:00 2001 From: Keith Hubbard Date: Sun, 15 Aug 2021 08:49:11 -0400 Subject: 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 --- completions/bash/riverctl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'completions/bash/riverctl') 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" ;; -- cgit v1.2.3