From dbf6dfd5d24c003ee78b232aa69c07a55a5b2f78 Mon Sep 17 00:00:00 2001 From: Mahmoud Al-Qudsi Date: Sun, 26 May 2024 22:03:27 -0500 Subject: [PATCH] completions/flatpak: dynamically complete `flatpak install` --- share/completions/flatpak.fish | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/share/completions/flatpak.fish b/share/completions/flatpak.fish index 59094d223..c8c60bfcb 100644 --- a/share/completions/flatpak.fish +++ b/share/completions/flatpak.fish @@ -62,6 +62,7 @@ complete -f -c flatpak -n "__fish_seen_subcommand_from info uninstall" -a "(__fi complete -f -c flatpak -n "__fish_seen_subcommand_from enter kill" -a "(__fish_flatpak ps --columns=instance,application)" complete -f -c flatpak -n "__fish_seen_subcommand_from remote-info remote-ls remote-modify remote-delete" -a "(__fish_flatpak remotes --columns=name,title)" -# Note that "remote-ls" opens an internet connection, so we don't want to complete "install" +complete -c flatpak -n '__fish_seen_subcommand_from install' -xa "(__fish_flatpak remote-ls --columns=application,name)" + # Plenty of the other stuff is too free-form to complete (e.g. remote-add). complete -f -c flatpak -s h -l help