updated _maximize_pane() that stopped working with tmux 3.2 (2), fixes #415
This commit is contained in:
parent
8e2502abb3
commit
13689839d4
1 changed files with 1 additions and 1 deletions
|
@ -243,7 +243,7 @@ run -b '[ -z "#{window_active}" ] && [ -z "#{version}" ] && tmux set display-tim
|
||||||
# current_pane=${2:-$(tmux display -p '#{pane_id}')}
|
# current_pane=${2:-$(tmux display -p '#{pane_id}')}
|
||||||
#
|
#
|
||||||
# dead_panes=$(tmux list-panes -s -t "$current_session" -F '#{pane_dead} #{pane_id} #{pane_start_command}' | grep -E -o '^1 %.+maximized.+$' || true)
|
# dead_panes=$(tmux list-panes -s -t "$current_session" -F '#{pane_dead} #{pane_id} #{pane_start_command}' | grep -E -o '^1 %.+maximized.+$' || true)
|
||||||
# restore=$(echo "$dead_panes" | sed -n -E -e "s/^1 $current_pane .+maximized.+'(%[0-9]+)'\"?$/tmux swap-pane -s \1 -t $current_pane \; kill-pane -t $current_pane/p"\
|
# restore=$(printf "%s" "$dead_panes" | sed -n -E -e "s/^1 $current_pane .+maximized.+'(%[0-9]+)'\"?$/tmux swap-pane -s \1 -t $current_pane \; kill-pane -t $current_pane/p"\
|
||||||
# -e "s/^1 (%[0-9]+) .+maximized.+'$current_pane'\"?$/tmux swap-pane -s \1 -t $current_pane \; kill-pane -t \1/p")
|
# -e "s/^1 (%[0-9]+) .+maximized.+'$current_pane'\"?$/tmux swap-pane -s \1 -t $current_pane \; kill-pane -t \1/p")
|
||||||
#
|
#
|
||||||
# if [ -z "$restore" ]; then
|
# if [ -z "$restore" ]; then
|
||||||
|
|
Loading…
Reference in a new issue