Fix labelling of global-jump-to-pane for .tmux.conf
This commit is contained in:
parent
155f6e7b1f
commit
c8e1ad9261
1 changed files with 1 additions and 1 deletions
|
@ -100,7 +100,7 @@ bind C-k new-window -n "global-pane-switcher" "\
|
||||||
CURRENT_INFO=\"\$(tmux display-message -p '0:#{pane_active}:#{session_id}:#{window_index}.#{pane_index}')\";\
|
CURRENT_INFO=\"\$(tmux display-message -p '0:#{pane_active}:#{session_id}:#{window_index}.#{pane_index}')\";\
|
||||||
tmux list-panes -aF '#{window_last_flag}:#{pane_active}:#{session_id}:#{window_index}.#{pane_index} #{session_name} > #{window_name} > #{pane_title}' |\
|
tmux list-panes -aF '#{window_last_flag}:#{pane_active}:#{session_id}:#{window_index}.#{pane_index} #{session_name} > #{window_name} > #{pane_title}' |\
|
||||||
awk -v cur_info_raw=\"\$CURRENT_INFO\" 'BEGIN{split(cur_info_raw,cur_info,\":\")} {split($1,this_info,\":\"); if($1 == cur_info_raw || (this_info[1] && this_info[3] == cur_info[3] && this_info[2] == cur_info[2])) next; print gensub(\"^[01]:[01]:\",\"\",1)}' |\
|
awk -v cur_info_raw=\"\$CURRENT_INFO\" 'BEGIN{split(cur_info_raw,cur_info,\":\")} {split($1,this_info,\":\"); if($1 == cur_info_raw || (this_info[1] && this_info[3] == cur_info[3] && this_info[2] == cur_info[2])) next; print gensub(\"^[01]:[01]:\",\"\",1)}' |\
|
||||||
fzf --reverse --header jump-to-pane --preview 'tmux capture-pane -pt {1}' |\
|
fzf --reverse --header global-jump-to-pane --preview 'tmux capture-pane -pt {1}' |\
|
||||||
awk '{print $1}' |\
|
awk '{print $1}' |\
|
||||||
xargs tmux switch-client -t"
|
xargs tmux switch-client -t"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue