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/zsh/_riverctl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'completions/zsh/_riverctl') 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)' ;; -- cgit v1.2.3