catppuccin / tmux

💽 Soothing pastel theme for Tmux!
MIT License
1.72k stars 526 forks source link

session name in status bar gets cut off on some sessions #256

Closed shadow-absorber closed 1 month ago

shadow-absorber commented 1 month ago

Is there an existing issue outlining your problem?

Describe your problem.

some sessions names get cut off in the status bar

Paste your configuration.

#set true colour mode to have better colours in tmux
set-option -ga terminal-overrides ',alacritty:RGB'
#set mouse to be enabled to handle tmux with mouse
set -g mouse on

# rebind tmux prefix to ctrl + s
unbind C-b
set -g prefix C-s
bind C-s send-prefix

# set leader r to reload config
unbind r
bind r source-file ~/.config/tmux/tmux.conf

# leader l to clear history
bind-key L send-keys "clear" \; send-keys "Enter"
bind-key K clear-history

# set options to make yazi work in tmux
set -g allow-passthrough on

set -ga update-environment TERM
set -ga update-environment TERM_PROGRAM

# Vim style pane selection
bind h select-pane -L
bind j select-pane -D 
bind k select-pane -U
bind l select-pane -R

# Start windows and panes at 1, not 0
set -g base-index 1
set -g pane-base-index 1
set-window-option -g pane-base-index 1
set-option -g renumber-windows on

# Use Alt-arrow keys without prefix key to switch panes
bind -n M-Left select-pane -L
bind -n M-Right select-pane -R
bind -n M-Up select-pane -U
bind -n M-Down select-pane -D

# Shift arrow to switch windows
bind -n S-Left  previous-window
bind -n S-Right next-window

# Shift Alt vim keys to switch windows
bind -n M-H previous-window
bind -n M-L next-window

# set vi-mode
set-window-option -g mode-keys vi
# keybindings
bind-key -T copy-mode-vi v send-keys -X begin-selection
bind-key -T copy-mode-vi C-v send-keys -X rectangle-toggle
bind-key -T copy-mode-vi y send-keys -X copy-selection-and-cancel

bind '"' split-window -v -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"

set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'christoomey/vim-tmux-navigator'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
set -g @plugin 'omerxx/tmux-sessionx'

set -g @sessionx-zoxide-mode 'on'

set -g @plugin 'catppuccin/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#{?window_zoomed_flag,(),}"

set -g @catppuccin_status_modules_right "directory user host date_time session"
set -g @catppuccin_status_left_separator  " "
set -g @catppuccin_status_right_separator ""
set -g @catppuccin_status_right_separator_inverse "no"
set -g @catppuccin_status_fill "icon"
set -g @catppuccin_status_connect_separator "no"

set -g @catppuccin_directory_text "#{pane_current_path}"

set -g @catppuccin_date_time_text "%Y-%m-%d %H:%M:%S"

set -g status-position top

# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run ~/.config/tmux/tpm/tpm

Attach screenshots.

Screenshot_2024-07-19-11-29-17_1920x1080 Screenshot_2024-07-19-11-31-00_1920x1080

What tmux version are you seeing the issue on?

tmux 3.4

Any additional comments?

No response

shadow-absorber commented 1 month ago

changing the director shadow is in "fixes"/changes the amount of the session name that gets cut out

vdbe commented 1 month ago

status-right-length is set to 100 you can set it larger if you want. You can also truncate the working directory text.

shadow-absorber commented 1 month ago

status-right-length is set to 100 you can set it larger if you want. You can also truncate the working directory text.

how do i truncate the directory text??

vdbe commented 1 month ago

how do i truncate the directory text??

https://superuser.com/a/1515416