fix(completion): use new function to complete streams

This commit is contained in:
EmilyGraceSeville7cf 2024-09-17 02:03:22 +10:00
parent 5b9c2096be
commit 9fad7e9936
2 changed files with 4 additions and 1 deletions

View file

@ -38,7 +38,7 @@ complete -c $command \
-x
complete -c $command \
-a 'notification\tdefault alarm music ring system voice_call' \
-a '(__fish_termux_api__complete_stream_ids | string replace --regex "(notification)" "\$1\tdefault")' \
-s s \
-d 'Specify the [s]tream for a speech' \
-x

View file

@ -0,0 +1,3 @@
function __fish_termux_api__complete_stream_ids
string join \n -- notification alarm music ring system voice_call
end