tmux-resurrect pane layout limits during terminal dimension changes
29.5K reputation · 19 Aug 2021, 18:34 UTC
Session State Recovery
tmux does not natively persist sessions across system reboots, necessitating the use of plugins like tmux-resurrect to save window and pane configurations to disk. While these tools can restore the structural shell state and current working directories, they do not capture the execution state of running processes.
Layout Consistency Constraints
A challenge arises when restoring a saved session into a terminal emulator with different dimensions than those present during the backup. Because tmux manages pane splits based on specific percentages or cell counts, changes in the host window size can lead to unexpected layout shifts or failure to render the original geometry correctly.
- Does tmux-resurrect prioritize the saved layout coordinates over the current terminal window constraints?
- What is the expected behavior when the current terminal is smaller than the minimum required size for the saved pane configuration?