automatic saving not working when tmux status is off
I have this config in my tmux.conf
set -g status off
and the continuum plugin never saves the sessions. It took me a long time to find out why, so could you please at least mention it in README?
I was able to workaround this limitation by setting PROMP_COMMAND in /etc/bash.bashrc to call continuum save script:
PROMPT_COMMAND="$PROMPT_COMMAND; saveTmuxSessionsWithContinuum"
function saveTmuxSessionsWithContinuum() {
if [ -n "$TMUX" ]; then
$HOME/.tmux/plugins/tmux-continuum/scripts/continuum_save.sh
fi
}
So every time I enter a command in tmux terminal the continuum checks its last save timestamp and saves all sessions if last save is older than 15 minutes.
+1
continuum has actually never automatically saved for me. And my status is on. But it is managed by vim-tmuxline so maybe the mechanism is the same. Maybe it doesn't work if there's any custom status?? seems unlikely.
But it is managed by vim-tmuxline so maybe the mechanism is the same. Maybe it doesn't work if there's any custom status?? seems unlikely.
tmux-continuum is triggered by a script ran from a tmux's status line. If vim-tmuxline overrides tmux status line, that's likely the cause why tmux-continuum is not triggered.
Ah. That incompatibility seems like it should be documented.
It might be and I might just be bad at Googling.
Maybe this could be added to the FAQ?
So it is in the known issues section of the README (https://github.com/tmux-plugins/tmux-continuum#known-issues) now, but it would be nice to have some workarounds in there as well. I also use tmuxline, so was also surprised by the behavior