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.24k stars 149 forks source link

Plugins don't work #56

Open Cyberdr3am opened 5 years ago

Cyberdr3am commented 5 years ago

Hi,

I try to use this plugin with tmux but auto-save, auto restore or the timer inside the powerline bar never show. The other plugin work great and tmux-resurrect work great to but i can't use this one.

This is my tmux.conf


# Set the prefix to ^A.
unbind C-b
set -g prefix ^A
bind a send-prefix

# reduce escapge time
# Principalement pour pas avoir d'interference avec VIM
set -sg escape-time 0

# Bind appropriate commands similar to screen.
# lockscreen ^X x
unbind ^X
bind ^X lock-server
unbind x
bind x lock-server

# screen ^C c
unbind ^C
bind ^C new-window -c "#{pane_current_path}"
unbind c
bind c new-window -c "#{pane_current_path}"

# detach ^D d
unbind ^D
bind ^D detach

# displays *
unbind *
bind * list-clients

# next ^@ ^N sp n
unbind ^@
bind ^@ next-window
unbind ^N
bind ^N next-window
unbind " "
bind " " next-window
unbind n
bind n next-window

# title A
unbind A
bind A command-prompt "rename-window %%"

# other ^A
unbind ^A
bind ^A last-window

# prev ^H ^P p ^?
unbind ^H
bind ^H previous-window
unbind ^P
bind ^P previous-window
unbind p
bind p previous-window
unbind BSpace
bind BSpace previous-window

# vim copy selection
bind ESCAPE copy-mode -e
#bind-key -t vi-copy 'v' begin-selection
#bind-key -t vi-copy 'y' copy-selection

# paste CTRL+A ]

# Use Alt-arrow keys without prefix key to switch panes
bind -n M-Left previous-window
bind -n M-Right next-window

# scroll buffer (mouse option)
#set -g mouse on
#bind -n WheelUpPane   select-pane -t= \; copy-mode -e \; send-keys -M
#bind -n WheelDownPane select-pane -t= \; send-keys -M

#setw -g mode-mouse off

# windows ^W w
unbind ^W
bind ^W list-windows
unbind w
bind w list-windows

# quit \
unbind '\'
bind K confirm-before "kill-server"

# kill K k
#unbind K
#bind K confirm-before "kill-window"
#unbind k
#bind k confirm-before "kill-window"

# redisplay ^L l
unbind ^L
bind ^L refresh-client
unbind l
bind l refresh-client

# split
bind-key v split-window -h
bind-key s split-window -v
bind S setw synchronize-panes

# :kB: focus up
unbind Tab
bind Tab select-pane -t:.+
unbind BTab
bind BTab select-pane -t:.-

# " windowlist -b
unbind '"'
bind '"' choose-window

# enable mouse
bind m set -g mouse on
bind M set -g mouse off

# reload config file (change file location to your the tmux.conf you want to use)
bind r source-file ~/.tmux.conf

# Automatically set window title
set-window-option -g automatic-rename on
set-option -g set-titles on

set -g @resurrect-capture-pane-contents 'on'
set -g @continuum-restore 'on'
set -g @continuum-save-interval '20'
run-shell ~/.tmux/plugins/tmux-continuum/continuum.tmux

# THEME
set -g status-bg black
set -g status-fg white
set -g window-status-current-bg white
set -g window-status-current-fg black
set -g window-status-current-attr bold
set -g status-interval 60
#set -g status-left-length 30
#set -g status-left '#[fg=green](#S) #(whoami)'
#set -g status-right '#[fg=yellow]#(cut -d " " -f 1-3 /proc/loadavg)#[default] #[fg=white]%H:%M#[default]'

# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-battery'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
set -g @plugin 'jimeh/tmux-themepack'
set -g @themepack 'double/green'
#set -g status-right '#{battery_status_bg} Batt: #{battery_icon} #{battery_percentage} #{battery_remain} | %a %h-%d %H:%M '
#set -g status-right-length 60
#set -g status-right "#[fg=yellow] %d %b %Y #[fg=green]:: %l:%M %p "

#
# # Other examples:
# set -g @plugin 'github_username/plugin_name'
# set -g @plugin 'git@github.com/user/plugin'
# set -g @plugin 'git@bitbucket.com/user/plugin'
#
# # Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'

I am on manjaro linux last build.

DVCoder commented 5 years ago

I have the same issue.

MareoRaft commented 4 years ago

I have the same issue on macOS Mojave.

karb94 commented 4 years ago

Same issue on Arch Linux.

bruno- commented 4 years ago

auto-save, auto restore or the timer inside the powerline bar never show

Something is interfering with the tmux status line. My guess is something is preventing tmux-continuum from installing a code snipped in the status line.

Another guess is that's because tmux theme from jimeh/tmux-themepack is overwriting tmux status line and practically overwriting what tmux-continuum does. Try uninstalling jimeh/tmux-themepack and see if things work then.

VladimirBeliakov commented 1 year ago

Another guess is that's because tmux theme from jimeh/tmux-themepack is overwriting tmux status line and practically overwriting what tmux-continuum does. Try uninstalling jimeh/tmux-themepack and see if things work then.

That was the case for me. And it was happening because the tmux-themepack plugin was set after the tmux-continuum plugin. After I put the tmux-themepack plugin before the tmux-continuum plugin, the auto save feature started working again.

  set -g @plugin 'jimeh/tmux-themepack'
  set -g @plugin 'tmux-plugins/tmux-continuum'