Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

restore reports success but does not restore #513

Open
meangrape opened this issue Jul 9, 2024 · 1 comment
Open

restore reports success but does not restore #513

meangrape opened this issue Jul 9, 2024 · 1 comment

Comments

@meangrape
Copy link

meangrape commented Jul 9, 2024

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
cff343c

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'
@ca5ua1
Copy link

ca5ua1 commented Jul 28, 2024

I have almost same issue but in a more severe way and happens pretty randomly
For me after reboot, especially after nixos-rebuild switch tmux dones't restore itself and last points to nonexistent file
OS: NixOS

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants