diff options
author | 2013-04-05 00:20:18 -0500 | |
---|---|---|
committer | 2013-04-12 14:03:26 -0700 | |
commit | c78c1427be7ee39d87d5aab0653ef944303a5c26 (patch) | |
tree | fbb55b91b4f9ffdaa81d71e99c6dfeed28dde3fe /share | |
parent | 953e7fd717bfdb49c2682c7491a97a368dd7369e (diff) |
tmux: use status-left short flags
Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu>
Conflicts:
share/completions/tmux.fish
Diffstat (limited to 'share')
-rw-r--r-- | share/completions/tmux.fish | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/share/completions/tmux.fish b/share/completions/tmux.fish index 14060877..85811d0b 100644 --- a/share/completions/tmux.fish +++ b/share/completions/tmux.fish @@ -3,28 +3,18 @@ function __fish_tmux_sessions --description 'available sessions' end function __fish_tmux_clients --description 'connected clients' - tmux list-clients -F "#{client_tty} #{session_name}: Created: #{client_created_string} [#{client_width}x#{client_height} #{client_termname}]" ^/dev/null + tmux list-clients -F "#{client_tty} #S: Created: #{client_created_string} [#{client_width}x#{client_height} #{client_termname}]" ^/dev/null end function __fish_tmux_panes --description 'window panes' - set -l panes (tmux list-panes -F "#S:#{window_name}." ^ /dev/null) - #fully qualified pane names - if count $panes - for i in (seq (count $panes)) - echo "$panes[$i]"(math $i - 1)' session:window.pane' - end - end + tmux list-panes -F '#S:#W.#P session:window.pane' ^/dev/null #panes by themselves - if count $panes - for i in (seq (count $panes)) - echo (math $i - 1)' pane' - end - end + tmux list-panes -F '#P pane' ^/dev/null #windows by themselves - tmux list-panes -F '#{window_name} window' ^ /dev/null + tmux list-panes -F '#W window' ^/dev/null end #don't allow dirs in the completion list... |