From 21473b20ec221d99ff6b7efe9f4e0cf834bbaedd Mon Sep 17 00:00:00 2001 From: Mahmoud Al-Qudsi Date: Mon, 9 Oct 2017 07:29:48 +0200 Subject: [PATCH] Update flatpak completions to work with latest flatpak Closes #4456 --- share/completions/flatpak.fish | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/share/completions/flatpak.fish b/share/completions/flatpak.fish index 5860c6bc3..565ab0b78 100644 --- a/share/completions/flatpak.fish +++ b/share/completions/flatpak.fish @@ -30,9 +30,9 @@ complete -f -c flatpak -n "not __fish_seen_subcommand_from $commands" -a build-i complete -f -c flatpak -n "not __fish_seen_subcommand_from $commands" -a build-sign -d 'Sign an application or runtime' complete -f -c flatpak -n "not __fish_seen_subcommand_from $commands" -a build-update-repo -d 'Update the summary file in a repository' -complete -f -c flatpak -n "__fish_seen_subcommand_from run" -a "(flatpak list --app | string trim)" -complete -f -c flatpak -n "__fish_seen_subcommand_from info uninstall" -a "(flatpak list | string trim)" -complete -f -c flatpak -n "__fish_seen_subcommand_from remote-ls remote-modify remote-delete" -a "(flatpak remote-list | string trim)" +complete -f -c flatpak -n "__fish_seen_subcommand_from run" -a "(flatpak list --app | string trim | string match -r '^\S+')" +complete -f -c flatpak -n "__fish_seen_subcommand_from info uninstall" -a "(flatpak list | string trim | string match -r '^\S+')" +complete -f -c flatpak -n "__fish_seen_subcommand_from remote-ls remote-modify remote-delete" -a "(flatpak remote-list | string trim | string match -r '^\S+')" # Note that "remote-ls" opens an internet connection, so we don't want to complete "install" # Plenty of the other stuff is too free-form to complete (e.g. remote-add).