mirror of
https://github.com/FliegendeWurst/tmux-thumbs.git
synced 2024-11-09 16:00:35 +00:00
Fix swaping
This commit is contained in:
parent
36434b6df7
commit
e498ef61bf
@ -2,9 +2,7 @@
|
|||||||
|
|
||||||
CURRENT_PANE_ID=$(tmux list-panes -F "#{pane_id}:#{?pane_active,active,nope}" | grep active | cut -d: -f1)
|
CURRENT_PANE_ID=$(tmux list-panes -F "#{pane_id}:#{?pane_active,active,nope}" | grep active | cut -d: -f1)
|
||||||
COMMAND="tmux-thumbs -a qwerty -r -u --tmux-pane ${CURRENT_PANE_ID}"
|
COMMAND="tmux-thumbs -a qwerty -r -u --tmux-pane ${CURRENT_PANE_ID}"
|
||||||
|
NEW_ID=$(tmux new-window -P -d -n "[thumbs]" ${COMMAND})
|
||||||
|
NEW_PANE_ID=$(tmux list-panes -a | grep ${NEW_ID} | grep --color=never -o '%[0-9]\+')
|
||||||
|
|
||||||
tmux new-window -d -n "[thumbs]" ${COMMAND}
|
tmux swap-pane -d -s ${CURRENT_PANE_ID} -t ${NEW_PANE_ID}
|
||||||
|
|
||||||
NEW_PANE_ID=$(tmux list-panes -a | grep 0:3.1 | grep -o '%[0-9]\+')
|
|
||||||
|
|
||||||
tmux swap-pane -t ${NEW_PANE_ID}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user