tmux-resurrect icon indicating copy to clipboard operation
tmux-resurrect copied to clipboard

restore reports success but does not restore

Open meangrape opened this issue 1 year ago • 2 comments

The plugin saves and creates a new ~/.tmux/resurrect/...txt file. The symlink to last is created. Restoration fails to make any changes to my tmux layout. I've uninstalled and reinstalled the plugin.

tmux-resurrect version cff343cf9e81983d3da0c8562b01616f12e8d548

tmux version tmux 3.4

macOS version Sonoma 14.5; Apple M1 Silicon

Steps to reproduce I save state <PREFIX>+<CTRL-S> and the status line reports a successful save. I make a change by adding a window. I attempt to restore <PREFIX>+<CTRL-R> and the status line reports success. However no changes are made; I still have three windows and not two.

additional info If I make a change and save an additional resurrection file, it correctly reflects the new tmux state. So if I add a new pane, the new pane's description is saved. (So the plugin correctly saves the state repeatedly.)

resurrect file that is not restored

pane    0       0       0       :-      0       merlot.local    :/Users/jayed   1       zsh     :
pane    0       1       1       :*      0       merlot.local    :/Users/jayed   1       zsh     :
window  0       0       :zsh    0       :-      c8bd,171x47,0,0,0       :
window  0       1       :zsh    1       :*      c8be,171x47,0,0,1       :
state   0

tmux.conf

  unbind C-b
  set-option -g prefix C-a
  bind-key C-a send-prefix

  unbind C-\\

  set -g @plugin 'tmux-plugins/tmux-tpm'
  set -g @plugin 'tmux-plugins/tmux-resurrect'

  run '~/.tmux/plugins/tpm/tpm'

meangrape avatar Jul 09 '24 12:07 meangrape