Closed

Description
Possibly a new bug - freeze
doesn't seem to respect the value of TMUX_PANE
and will output the configuration of the first listed session rather than the currently attached one. This is also the case when multiple sessions are attached.
Output of tmuxp debug-info
:
-------------------------
environment:
dist: Linux-5.9.16-100.fc32.x86_64-x86_64-with-glibc2.29
arch: x86_64
uname: Linux; localhost.localdomain; 5.9.16-100.fc32.x86_64
version: #1 SMP Mon Dec 21 14:10:00 UTC 2020
-------------------------
python version: 3.8.6 (default, Dec 15 2020, 14:46:26) [GCC 10.2.1 20201016 (Red Hat 10.2.1-6)]
system PATH: /home/will/code/AXO381/venv/bin:/home/will/.poetry/bin:/home/will/.pyenv/shims:/home/will/.pyenv/bin:/home/will/.poetry/bin:/home/will/.pyenv/shims:/home/will/.pyenv/bin:/home/will/.poetry/bin:/home/will/.pyenv/shims:/home/will/.pyenv/bin:/home/will/.poetry/bin:/home/will/.pyenv/shims:/home/will/.pyenv/bin:/home/will/.poetry/bin:/home/will/.nvm/versions/node/v14.15.2/bin:/home/will/.pyenv/shims:/home/will/.pyenv/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/home/will/bin:/var/lib/snapd/snap/bin:/home/will/.dotfiles/misc_scripts:/home/will/.fzf/bin:/home/will/go/bin:/home/will/.local/bin:/home/will/.dotfiles/misc_scripts:/home/will/go/bin:/home/will/.local/bin:/home/will/.dotfiles/misc_scripts:/home/will/go/bin:/home/will/.local/bin:/home/will/bin:/home/will/.dotfiles/misc_scripts:/home/will/go/bin:/home/will/.local/bin:/home/will/bin:/home/will/.dotfiles/misc_scripts:/home/will/go/bin:/home/will/.local/bin
tmux version: 3.1
libtmux version: 0.8.5
tmuxp version: 1.7.0
tmux path: /usr/bin/tmux
tmuxp path: /home/will/.local/lib/python3.8/site-packages/tmuxp/__init__.py
shell: /usr/bin/zsh
-------------------------
tmux sessions:
AXO373: 2 windows (created Mon Jan 11 18:16:52 2021)
AXO381: 1 windows (created Mon Jan 11 18:17:07 2021) (attached)
tmux windows:
0: AXO381* (2 panes) [384x92] [layout 63ef,384x92,0,0{245x92,0,0,6,138x92,246,0,7}] @4 (active)
tmux panes:
0: [245x92] [history 0/2000, 0 bytes] %6
1: [138x92] [history 0/2000, 0 bytes] %7 (active)
tmux global options:
@plugin tmux-plugins/tmux-yank
activity-action other
assume-paste-time 1
base-index 0
bell-action any
default-command
default-shell /usr/bin/zsh
default-size 80x24
destroy-unattached off
detach-on-destroy on
display-panes-active-colour red
display-panes-colour blue
display-panes-time 1000
display-time 4000
history-limit 50000
key-table root
lock-after-time 0
lock-command "lock -np"
message-command-style fg=yellow,bg=black
message-style fg=black,bg=yellow
mouse off
prefix C-b
prefix2 Invalid#1fff00000000
renumber-windows off
repeat-time 500
set-titles off
set-titles-string "#S:#I:#W - \"#T\" #{session_alerts}"
silence-action other
status on
status-bg green
status-fg black
status-format[0] "#[align=left range=left #{status-left-style}]#[push-default]#{T;=/#{status-left-length}:status-left}#[pop-default]#[norange default]#[list=on align=#{status-justify}]#[list=left-marker]<#[list=right-marker]>#[list=on]#{W:#[range=window|#{window_index} #{window-status-style}#{?#{&&:#{window_last_flag},#{!=:#{window-status-last-style},default}}, #{window-status-last-style},}#{?#{&&:#{window_bell_flag},#{!=:#{window-status-bell-style},default}}, #{window-status-bell-style},#{?#{&&:#{||:#{window_activity_flag},#{window_silence_flag}},#{!=:#{window-status-activity-style},default}}, #{window-status-activity-style},}}]#[push-default]#{T:window-status-format}#[pop-default]#[norange default]#{?window_end_flag,,#{window-status-separator}},#[range=window|#{window_index} list=focus #{?#{!=:#{window-status-current-style},default},#{window-status-current-style},#{window-status-style}}#{?#{&&:#{window_last_flag},#{!=:#{window-status-last-style},default}}, #{window-status-last-style},}#{?#{&&:#{window_bell_flag},#{!=:#{window-status-bell-style},default}}, #{window-status-bell-style},#{?#{&&:#{||:#{window_activity_flag},#{window_silence_flag}},#{!=:#{window-status-activity-style},default}}, #{window-status-activity-style},}}]#[push-default]#{T:window-status-current-format}#[pop-default]#[norange list=on default]#{?window_end_flag,,#{window-status-separator}}}#[nolist align=right range=right #{status-right-style}]#[push-default]#{T;=/#{status-right-length}:status-right}#[pop-default]#[norange default]"
status-format[1] "#[align=centre]#{P:#{?pane_active,#[reverse],}#{pane_index}[#{pane_width}x#{pane_height}]#[default] }"
status-interval 5
status-justify left
status-keys emacs
status-left "[#S] "
status-left-length 10
status-left-style default
status-position bottom
status-right "#{?window_bigger,[#{window_offset_x}#,#{window_offset_y}] ,}\"#{=21:pane_title}\" %H:%M %d-%b-%y"
status-right-length 40
status-right-style default
status-style fg=black,bg=green
update-environment[0] DISPLAY
update-environment[1] KRB5CCNAME
update-environment[2] SSH_ASKPASS
update-environment[3] SSH_AUTH_SOCK
update-environment[4] SSH_AGENT_PID
update-environment[5] SSH_CONNECTION
update-environment[6] WINDOWID
update-environment[7] XAUTHORITY
visual-activity off
visual-bell off
visual-silence off
word-separators " "
tmux window options:
aggressive-resize on
allow-rename off
alternate-screen on
automatic-rename on
automatic-rename-format "#{b:pane_current_path}"
clock-mode-colour blue
clock-mode-style 24
main-pane-height 24
main-pane-width 80
mode-keys vi
mode-style fg=black,bg=yellow
monitor-activity off
monitor-bell on
monitor-silence 0
other-pane-height 0
other-pane-width 0
pane-active-border-style fg=green
pane-base-index 0
pane-border-format "#{?pane_active,#[reverse],}#{pane_index}#[default] \"#{pane_title}\""
pane-border-status off
pane-border-style default
remain-on-exit off
synchronize-panes off
window-active-style default
window-size latest
window-style default
window-status-activity-style reverse
window-status-bell-style reverse
window-status-current-format "#I:#W#{?window_flags,#{window_flags}, }"
window-status-current-style default
window-status-format "#I:#W#{?window_flags,#{window_flags}, }"
window-status-last-style default
window-status-separator " "
window-status-style default
wrap-search on
xterm-keys on
Steps to reproduce:
- Create new session, and then at least one more session
- Attach to any session that isn't first in the list of sessions (from
tmux list-sessions
or<prefix> s
) - Run
tmuxp freeze
Observed Results:
No error message, just the wrong session configuration produced
Expected Results:
The attached session's configuration to be output