river: add send-to-previous-tags command

This commit is contained in:
Peter Rice
2021-09-11 16:21:48 -04:00
committed by Isaac Freund
parent 5f6428bafe
commit 81d103d425
6 changed files with 24 additions and 0 deletions

View File

@ -25,6 +25,7 @@ function __riverctl_completion ()
send-layout-cmd \
set-focused-tags \
focus-previous-tags \
send-to-previous-tags \
set-view-tags \
toggle-focused-tags \
toggle-view-tags \

View File

@ -64,6 +64,7 @@ complete -c riverctl -x -n '__fish_riverctl_complete_no_subcommand' -a toggle-fo
complete -c riverctl -x -n '__fish_riverctl_complete_no_subcommand' -a toggle-view-tags -d 'Toggle the tags of the currently focused view'
complete -c riverctl -x -n '__fish_riverctl_complete_no_subcommand' -a spawn-tagmask -d 'Set a tagmask to filter the tags assigned to newly spawned views on the focused output'
complete -c riverctl -x -n '__fish_riverctl_complete_no_subcommand' -a focus-previous-tags -d 'Sets tags to their previous value on the focused output'
complete -c riverctl -x -n '__fish_riverctl_complete_no_subcommand' -a send-to-previous-tags -d 'Assign the currently focused view the previous tags of the focused output'
# Mappings
complete -c riverctl -x -n '__fish_riverctl_complete_no_subcommand' -a declare-mode -d 'Create a new mode'
complete -c riverctl -x -n '__fish_riverctl_complete_no_subcommand' -a enter-mode -d 'Switch to given mode if it exists'

View File

@ -33,6 +33,7 @@ _riverctl_subcommands()
'toggle-view-tags:Toggle the tags of the currently focused view'
'spawn-tagmask:Set a tagmask to filter the tags assigned to newly spawned views on the focused output'
'focus-previous-tags:Sets tags to their previous value on the focused output'
'send-to-previous-tags:Assign the currently focused view the previous tags of the focused output'
# Mappings
'declare-mode:Create a new mode'
'enter-mode:Switch to given mode if it exists'