From d87bbf9433175b6761dc57a9f59627516d8cfd23 Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Sun, 3 Apr 2022 12:38:30 +0200 Subject: [PATCH] completions/status: fix wrong completion for test-feature Reported in https://github.com/lacygoill/config/blob/5f94dfd09430f72c74c4401a2eedd8c3d26c4926/.config/fish/README/bug.md#wrong-tab-completion-for-status-test-feature --- share/completions/status.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/completions/status.fish b/share/completions/status.fish index 4e584c7b6..28de9e6f7 100644 --- a/share/completions/status.fish +++ b/share/completions/status.fish @@ -26,7 +26,7 @@ complete -f -c status -n "not __fish_seen_subcommand_from $__fish_status_all_com complete -f -c status -n "not __fish_seen_subcommand_from $__fish_status_all_commands" -a stack-trace -d "Print a list of all function calls leading up to running the current command" complete -f -c status -n "not __fish_seen_subcommand_from $__fish_status_all_commands" -a features -d "List all feature flags" complete -f -c status -n "not __fish_seen_subcommand_from $__fish_status_all_commands" -a test-feature -d "Test if a feature flag is enabled" -complete -f -c status -n "__fish_seen_subcommand_from test-feature" -a '(status features)' +complete -f -c status -n "__fish_seen_subcommand_from test-feature" -a '(status features | sed "s/\s\+\S*\s\+\S*/\t/")' complete -f -c status -n "not __fish_seen_subcommand_from $__fish_status_all_commands" -a fish-path -d "Print the path to the current instance of fish" # The job-control command changes fish state.