river: focus-view and swap by spatial direction

This commit is contained in:
Leon Henrik Plickat
2023-07-08 06:30:27 +02:00
parent 5ce2ca1bc0
commit b35d779122
9 changed files with 205 additions and 172 deletions

View File

@ -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" ;;