From 932436d47af1c73b6d5781dedec84bd82bfe7ff4 Mon Sep 17 00:00:00 2001 From: salmonik Date: Wed, 6 May 2026 13:20:02 +0200 Subject: Add toggle command to resume/pause playback and fix queue display bug - Add 'rsp toggle' command to toggle between play and pause - Fix queue display showing wrong track as playing when shuffle is enabled - Update shell completion scripts for new toggle command --- completions/rsp.bash | 2 +- completions/rsp.fish | 2 +- completions/rsp.zsh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'completions') diff --git a/completions/rsp.bash b/completions/rsp.bash index 55a25b0..b625927 100644 --- a/completions/rsp.bash +++ b/completions/rsp.bash @@ -6,7 +6,7 @@ _rsp() { case $prev in rsp) - COMPREPLY=($(compgen -W "start stop restart play pause resume next previous volume shuffle queue status scan settings" -- "$cur")) + COMPREPLY=($(compgen -W "start stop restart play pause resume toggle next previous volume shuffle queue status scan settings" -- "$cur")) ;; play) _filedir diff --git a/completions/rsp.fish b/completions/rsp.fish index 1fd7483..4f44f63 100644 --- a/completions/rsp.fish +++ b/completions/rsp.fish @@ -1,6 +1,6 @@ # rsp fish completion -complete -c rsp -n '__fish_use_subcommand' -a 'start stop restart play pause resume next previous volume shuffle queue status scan settings' -d 'Command' +complete -c rsp -n '__fish_use_subcommand' -a 'start stop restart play pause resume toggle next previous volume shuffle queue status scan settings' -d 'Command' complete -c rsp -n '__fish_seen_subcommand_from play' -f -d 'Audio file or directory' diff --git a/completions/rsp.zsh b/completions/rsp.zsh index c07feb1..cfba4e5 100644 --- a/completions/rsp.zsh +++ b/completions/rsp.zsh @@ -8,7 +8,7 @@ _rsp() { case $state in cmd) _values 'command' \ - 'start' 'stop' 'restart' 'play' 'pause' 'resume' 'next' 'previous' \ + 'start' 'stop' 'restart' 'play' 'pause' 'resume' 'toggle' 'next' 'previous' \ 'volume' 'shuffle' 'queue' 'status' 'scan' 'settings' ;; args) -- cgit v1.2.3