tmux-plugins / tmux-continuum

Continuous saving of tmux environment. Automatic restore when tmux is started. Automatic tmux start when computer is turned on.
MIT License
3.31k stars 149 forks source link

Continuum Does Not Save Session After Interval Time #97

Open FOSSilizedDaemon opened 3 years ago

FOSSilizedDaemon commented 3 years ago

Hello,

I am having an issue where this plugin does not save my session after the desired interval time of five minuets. I have the following settings

## Update the saved session every five minuets.
set -g @continuum-save-interval '5'

## Enable automatic session restoring.
set -g @continuum-restore 'on'

## Load the tmux-conium plugin.
run-shell ~/.config/tmux/plugins/tmux-continuum/continuum.tmux

but I always have to manually save in order for my saved session to be updated.

As a side question, how would I have tmux does run the specified default command only when continuum restores a session? For example, I have tmux run my SHELL every time I start it, but if I am restoring a session with continuum, then I do not want that command executed and simply want my session restored.

casret commented 3 years ago

Probably #48 also see #99

nyngwang commented 2 years ago

No, it does save.

My settings:

set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-resurrect'
## set -g @resurrect-dir '~/.local/share/tmux/resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
set -g @continuum-save-interval '5'
set -g @continuum-restore 'on'
set -g status-right 'Continuum status: #{continuum_status}'

## ... your other settings

## Required on last
run "~/.config/tmux/plugins/tpm/tpm"
FOSSilizedDaemon commented 2 years ago

No, it does save.

My settings:

set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-resurrect'
## set -g @resurrect-dir '~/.local/share/tmux/resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
set -g @continuum-save-interval '5'
set -g @continuum-restore 'on'
set -g status-right 'Continuum status: #{continuum_status}'

## ... your other settings

## Required on last
run "~/.config/tmux/plugins/tpm/tpm"

I have something similar to this, but am still experiencing this issue. I have my plugin settings and everything set. I am not sure what other information I should be provided, but this simply does not work even when I only load plugins and set nothing else.

FOSSilizedDaemon commented 2 years ago

Probably #48 also see #99

Sorry for the extremely late reply, I have been busy with university. Is the solution still to use a systemd timer or cron job? I just want to make sure, but nevertheless those are easy to write up. Thank you for your help.

mattkatz commented 2 years ago

Hey - are you on macos or linux? I've been setting up continuum on Ubuntu 21.10 and I had to make some changes to get the automatic systemd service running. https://github.com/tmux-plugins/tmux-continuum/pull/102

EmVee381 commented 4 months ago

Hi, I found that my autosave does not work if set -g status-right is set to a non-default string. Is it dependent on the clock, which is configured as the default?