Skip to content

Kube module keeps going blank #301

Closed
@pauldthomson

Description

Is there an existing issue outlining your problem?

  • I have searched the existing issues and they do not solve my problem.

Describe your problem.

The kube module stops showing anything and I have to reload my tmux conf to make it appear again

Paste your configuration.

set -g default-terminal 'tmux-256color'
# set -as terminal-overrides ',xterm*:Tc:sitm=\E[3m'

# Workaround for tmux + system clipbaord on MacOS
if-shell "[ type reattach-to-user-namespace ]" \
	"set-option -g default-command \"reattach-to-user-namespace -l bash\""

set-window-option -g mode-keys vi

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

# Prompt for window title when creating new window
bind-key c command-prompt -p "Name of new window: " "new-window -n '%%'"

# Send prefix to nested tmux sessions
bind-key a send-prefix

# Disable delay between escape key and subsequent keys in vim
set -sg escape-time 0

# Start window numbering at 1
set -g base-index 1

# Automatically renumber windows if one is closed
set -g renumber-windows on

# Start pane numbering at 1
setw -g pane-base-index 1

# Scroll history
set -g history-limit 3000

# Enable mouse scrolling
setw -g mouse on

# Stay in copy mode on drag end.
unbind-key -T copy-mode-vi MouseDragEnd1Pane

# Pane resizing with PREFIX + Alt-hjkl
bind -r H resize-pane -L 5
bind -r J resize-pane -D 5
bind -r K resize-pane -U 5
bind -r L resize-pane -R 5

# Set prefix to space.
unbind-key C-b
set-option -g prefix C-Space

# Split pane horizontally with PREFIX + -
bind - split-window -v -c '#{pane_current_path}'

# Split pane vertically with PREFIX + |
bind | split-window -h -c '#{pane_current_path}'

# Use vim style keys
set -g status-keys vi
setw -g mode-keys vi

# Reload .tmux.conf with PREFIX r
bind r source-file ~/.tmux.conf \; display "Reloaded!"

# Smart pane switching with awareness of Vim splits.
# See: https://github.com/christoomey/vim-tmux-navigator
is_vim="ps -o state= -o comm= -t '#{pane_tty}' \
    | grep -iqE '^[^TXZ ]+ +(\\S+\\/)?g?(view|n?vim?x?)(diff)?$'"
bind-key -n C-h if-shell "$is_vim" "send-keys C-h"  "select-pane -L"
bind-key -n C-j if-shell "$is_vim" "send-keys C-j"  "select-pane -D"
bind-key -n C-k if-shell "$is_vim" "send-keys C-k"  "select-pane -U"
bind-key -n C-l if-shell "$is_vim" "send-keys C-l"  "select-pane -R"
# bind-key -n C-\ if-shell "$is_vim" "send-keys C-\\" "select-pane -l"
bind-key -T copy-mode-vi C-h select-pane -L
bind-key -T copy-mode-vi C-j select-pane -D
bind-key -T copy-mode-vi C-k select-pane -U
bind-key -T copy-mode-vi C-l select-pane -R
# bind-key -T copy-mode-vi C-\ select-pane -l

# Use <prefix> C-l to clear screen
bind C-l send-keys "C-l"

# Copy to system clipboard
bind -T copy-mode-vi 'v' send-keys -X begin-selection
bind -T copy-mode-vi 'y' send-keys -X copy-pipe-and-cancel "pbcopy"

# Interactive search of windows/sessions
bind j split-window -v "tmux list-sessions -F '#S' | fzf --reverse | xargs tmux switch-client -t"
bind k split-window -v "tmux list-window -F '#W' | fzf --reverse | xargs tmux select-window -t"

# Plugins
set -g @plugin 'catppuccin/tmux#latest'
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'jonmosco/kube-tmux'

set -g @catppuccin_window_left_separator ""
set -g @catppuccin_window_right_separator " "
set -g @catppuccin_window_middle_separator " █"
set -g @catppuccin_window_number_position "right"

set -g @catppuccin_window_default_fill "number"
set -g @catppuccin_window_default_text "#W"

set -g @catppuccin_window_current_fill "number"
set -g @catppuccin_window_current_text "#W"

set -g @catppuccin_status_modules_right "session kube"
set -g @catppuccin_status_left_separator  " "
set -g @catppuccin_status_right_separator ""
set -g @catppuccin_status_fill "icon"
set -g @catppuccin_status_connect_separator "no"

set -g @catppuccin_directory_text "#{pane_current_path}"

run '~/.tmux/plugins/tpm/tpm'

Attach screenshots.

Screen.Recording.2024-08-30.at.9.40.40.AM.mov

What tmux version are you seeing the issue on?

tmux 3.4

Any additional comments?

I have been running kube-tmux for a long time prior to using catppuccin and this issue didn't exist, so it seems theme related?

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions