From 953e7fd717bfdb49c2682c7491a97a368dd7369e Mon Sep 17 00:00:00 2001 From: Greg Dietsche Date: Fri, 5 Apr 2013 00:11:27 -0500 Subject: [PATCH] tmux: implement Status Line Signed-off-by: Greg Dietsche --- share/completions/tmux.fish | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/share/completions/tmux.fish b/share/completions/tmux.fish index 15d2681a8..140608779 100644 --- a/share/completions/tmux.fish +++ b/share/completions/tmux.fish @@ -183,9 +183,19 @@ complete -c tmux -xs t -n "__fish_seen_subcommand_from $showenv" -a '(__fish_tmu ############### End: Environment ############### ############### Begin: Status Line ############### -#TODO - these commands are not currently implemented. -#there is a section in the tmux man page that has the same title as this section -#use the "Clients and Sessions" code as an example when implementing this +set -l commandprompt 'command-prompt' +set -l display 'display-message display' + +complete -c tmux -n '__fish_use_subcommand' -a $commandprompt -d 'Open the command prompt in a client' +complete -c tmux -n "__fish_seen_subcommand_from $commandprompt" -s I -x -d 'Comma-separated list of initial text for each prompt' +complete -c tmux -n "__fish_seen_subcommand_from $commandprompt" -s p -x -d 'Comma-separated list of prompts' +complete -c tmux -n "__fish_seen_subcommand_from $commandprompt" -s t -xa '(__fish_tmux_clients)' -d 'target-client' + +complete -c tmux -n '__fish_use_subcommand' -a $display -d 'Display a message' +complete -c tmux -n "__fish_seen_subcommand_from $display" -s p -d 'print to stdout' +complete -c tmux -n "__fish_seen_subcommand_from $display" -s t -xa '(__fish_tmux_panes)' -d 'target-pane' +complete -c tmux -n "__fish_seen_subcommand_from $display" -s c -xa '(__fish_tmux_clients)' -d 'target-client' + ############### End: Status Line ############### ############### Begin: Buffers ###############