diff options
| author | Leon Henrik Plickat <leonhenrik.plickat@stud.uni-goettingen.de> | 2023-07-08 06:30:27 +0200 |
|---|---|---|
| committer | Leon Henrik Plickat <leonhenrik.plickat@stud.uni-goettingen.de> | 2023-07-09 23:20:06 +0200 |
| commit | b35d779122eeb2a31a8300e407191f12bb883e8c (patch) | |
| tree | 85383f4d22b4480015ab014f3bff683caa39e650 /completions | |
| parent | 5ce2ca1bc0411b43e94e8a1dfdf3a90a5dc7fd20 (diff) | |
| download | river-b35d779122eeb2a31a8300e407191f12bb883e8c.tar.gz river-b35d779122eeb2a31a8300e407191f12bb883e8c.tar.xz | |
river: focus-view and swap by spatial direction
Diffstat (limited to 'completions')
| -rw-r--r-- | completions/bash/riverctl | 3 | ||||
| -rw-r--r-- | completions/fish/riverctl.fish | 4 | ||||
| -rw-r--r-- | completions/zsh/_riverctl | 4 |
3 files changed, 6 insertions, 5 deletions
diff --git a/completions/bash/riverctl b/completions/bash/riverctl index f3325d3..f3d8674 100644 --- a/completions/bash/riverctl +++ b/completions/bash/riverctl @@ -59,7 +59,8 @@ function __riverctl_completion () elif [ "${COMP_CWORD}" -eq 2 ] then case "${COMP_WORDS[1]}" in - "focus-output"|"focus-view"|"send-to-output"|"swap") OPTS="next previous" ;; + "focus-output"|"send-to-output") OPTS="next previous" ;; + "focus-view"|"swap") OPTS="next previous up down left right" ;; "move"|"snap") OPTS="up down left right" ;; "resize") OPTS="horizontal vertical" ;; "rule-add"|"rule-del") OPTS="float no-float ssd csd tag" ;; diff --git a/completions/fish/riverctl.fish b/completions/fish/riverctl.fish index 05829d0..065d439 100644 --- a/completions/fish/riverctl.fish +++ b/completions/fish/riverctl.fish @@ -72,12 +72,12 @@ complete -c riverctl -x -n '__fish_riverctl_complete_arg 1' -a 'keyboard-layout' # Subcommands complete -c riverctl -x -n '__fish_seen_subcommand_from focus-output' -a 'next previous' -complete -c riverctl -x -n '__fish_seen_subcommand_from focus-view' -a 'next previous' +complete -c riverctl -x -n '__fish_seen_subcommand_from focus-view' -a 'next previous up down left right' complete -c riverctl -x -n '__fish_seen_subcommand_from move' -a 'up down left right' complete -c riverctl -x -n '__fish_seen_subcommand_from resize' -a 'horizontal vertical' 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 swap' -a 'next previous up down left right' 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' diff --git a/completions/zsh/_riverctl b/completions/zsh/_riverctl index e874c78..2c3c418 100644 --- a/completions/zsh/_riverctl +++ b/completions/zsh/_riverctl @@ -170,13 +170,13 @@ _riverctl() args) case "$words[1]" in focus-output) _alternative 'arguments:args:(next previous)' ;; - focus-view) _alternative 'arguments:args:(next previous)' ;; + focus-view) _alternative 'arguments:args:(next previous up down left right)' ;; input) _riverctl_input ;; move) _alternative 'arguments:args:(up down left right)' ;; resize) _alternative 'arguments:args:(horizontal vertical)' ;; snap) _alternative 'arguments:args:(up down left right)' ;; send-to-output) _alternative 'arguments:args:(next previous)' ;; - swap) _alternative 'arguments:args:(next previous)' ;; + swap) _alternative 'arguments:args:(next previous up down left right)' ;; map) _alternative 'arguments:optional:(-release -repeat -layout)' ;; unmap) _alternative 'arguments:optional:(-release)' ;; attach-mode) _alternative 'arguments:args:(top bottom)' ;; |
