From 77406ddd1112df84725570b6ab1834f16d00c8e1 Mon Sep 17 00:00:00 2001 From: Ilya Grigoriev Date: Mon, 18 Nov 2024 16:03:35 -0800 Subject: [PATCH] completions/tmux: complete commands inside `tmux lscm` Make `tmux lscm ` work. --- share/completions/tmux.fish | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/share/completions/tmux.fish b/share/completions/tmux.fish index 3ff1f811f..13086b8b0 100644 --- a/share/completions/tmux.fish +++ b/share/completions/tmux.fish @@ -64,6 +64,10 @@ end __fish_tmux_parse_lscm_usage functions -e __fish_tmux_parse_lscm_usage +# Completions for `tmux list-commands` itself +set -l all_commands (tmux list-commands -F "#{command_list_name} #{command_list_alias}" 2>/dev/null) +and complete -c tmux -n "__fish_seen_subcommand_from list-commands lscm" -x -a "$all_commands" + ############### End: Dynamic Completions Using `tmux list-commands` ############### ############### Begin: Front Flags ###############