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

automatic saving not working when tmux status is off

Open michalre opened this issue 9 years ago • 9 comments

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?

michalre avatar Jun 12 '16 11:06 michalre

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.

michalre avatar Jun 12 '16 23:06 michalre

+1

kaidiren avatar May 08 '17 15:05 kaidiren

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.

wreed4 avatar Mar 23 '18 12:03 wreed4

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.

bruno- avatar Mar 25 '18 17:03 bruno-

Ah. That incompatibility seems like it should be documented.

wreed4 avatar Mar 29 '18 16:03 wreed4

It might be and I might just be bad at Googling.

wreed4 avatar Mar 29 '18 16:03 wreed4

Maybe this could be added to the FAQ?

msuozzo avatar Mar 02 '21 00:03 msuozzo

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

casret avatar May 30 '21 22:05 casret