m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-20 01:23:43 -05:00

Fix ftpane (tested on bash)

Junegunn Choi
2015-02-13 11:19:28 +09:00
parent 4448019fb1
commit 993a79e7bc

@@ -179,7 +179,7 @@ ftpane () {
panes=$(tmux list-panes -s -F '#I:#P - #{pane_current_path} #{pane_current_command}') panes=$(tmux list-panes -s -F '#I:#P - #{pane_current_path} #{pane_current_command}')
current_window=$(tmux display-message -p '#I') current_window=$(tmux display-message -p '#I')
target=$(echo $panes | fzf) target=$(echo "$panes" | fzf) || return
target_window=$(echo $target | awk 'BEGIN{FS=":|-"} {print$1}') target_window=$(echo $target | awk 'BEGIN{FS=":|-"} {print$1}')
target_pane=$(echo $target | awk 'BEGIN{FS=":|-"} {print$2}' | cut -c 1) target_pane=$(echo $target | awk 'BEGIN{FS=":|-"} {print$2}' | cut -c 1)