aboutsummaryrefslogtreecommitdiffstats
path: root/completions/bass.fish
diff options
context:
space:
mode:
Diffstat (limited to 'completions/bass.fish')
-rw-r--r--completions/bass.fish12
1 files changed, 12 insertions, 0 deletions
diff --git a/completions/bass.fish b/completions/bass.fish
new file mode 100644
index 0000000..748954d
--- /dev/null
+++ b/completions/bass.fish
@@ -0,0 +1,12 @@
+set -l commands search find id browse love hate
+
+complete -c bass -f
+complete -c bass -n "not __fish_seen_subcommand_from $commands" -a search -d 'Search with a filter expression'
+complete -c bass -n "not __fish_seen_subcommand_from $commands" -a find -d 'Exact search with a filter expression'
+complete -c bass -n "not __fish_seen_subcommand_from $commands" -a id -d 'Print MusicBrainz ID of the currently playing track'
+complete -c bass -n "__fish_seen_subcommand_from id" -s a -l album -d 'Show ID of the album instead'
+complete -c bass -n "not __fish_seen_subcommand_from $commands" -a browse -d 'Open the currently playing track on MusicBrainz'
+complete -c bass -n "__fish_seen_subcommand_from browse" -s a -l album -d 'Open the album instead'
+complete -c bass -n "__fish_seen_subcommand_from browse" -s o -l open -d 'Open the file in the file manager instead'
+complete -c bass -n "not __fish_seen_subcommand_from $commands" -a love -d 'Mark the currently playing track as loved on ListenBrainz'
+complete -c bass -n "not __fish_seen_subcommand_from $commands" -a hate -d 'Mark the currently playing track as hated on ListenBrainz'