Skip to content

Pane titles not per-pane: all panes show the same title (last focused pane)Β #565

@ympadilha

Description

@ympadilha

I am not requesting help with my configuration and believe something is genuinely broken.

  • Something is really actually broken.

Is there an existing issue outlining your problem?

Describe your problem.

Describe the bug

When using @catppuccin_pane_default_text "#{pane_title}", all panes display the same title instead of their individual titles. The title shown is always from the last pane that was focused when the config was reloaded.

Expected behavior

Each pane should display its own individual title as set with select-pane -T "title" or the keybinding for renaming panes.

Actual behavior

  1. Set different titles for multiple panes (e.g., select-pane -T "Database" for pane 0, select-pane -T "API" for pane 1)
  2. All panes show the same title
  3. When focusing a specific pane and reloading the config, ALL panes update to show that focused pane's title
  4. The titles appear to be stored per-pane correctly (verified with tmux list-panes -F "#{pane_index}: #{pane_title}")

Workaround

Manually overriding pane-border-format after Catppuccin loads fixes the issue but loses all Catppuccin styling:

set -g pane-border-format "#[fg=#{@thm_surface_2}] #{pane_index} #[fg=#{@thm_fg}]#{pane_title} "

## Debug

When I did `tmux show-options -g pane-border-format` I got:

pane-border-format "#[fg=#a6e3a1,bg=default]β–ˆ#[fg=#313244,bg=#a6e3a1]#{pane_index}#[fg=#a6e3a1,bg=#313244]β–ˆ #[fg=#a6e3a1,bg=#313244]FE Running#[fg=#313244,bg=default]β–ˆ"


See that `FE Running` was static. I had to manually override it with `#{pane_title}`.


### Paste your configuration.

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

# remap prefix from 'C-b' to 'C-space;'
unbind C-b
set-option -g prefix C-space;
bind-key C-space; send-prefix

# Mouse controls
set -g mouse on
setw -g mode-keys vi

# Keybinding to rename (Prefix + T)
bind T command-prompt -p "Pane title:" "select-pane -T '%%'"

# Pane names
set -g @catppuccin_pane_status_enabled "yes"
set -g @catppuccin_pane_border_status "top"
set -g @catppuccin_pane_number_position "left"

# Status bar
set-option -g status-position bottom

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

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

# Customize border colors
set -g @catppuccin_pane_border_style "fg=#{@thm_overlay_0}"
set -g @catppuccin_pane_active_border_style "fg=#{@thm_peach}"

set -g @catppuccin_pane_number_position "left"
# set -g @catppuccin_pane_default_text "#{pane_title}"
set -g @catppuccin_pane_default_fill "number"
set -g @catppuccin_pane_background_color "#{@thm_surface_0}"
# set -g @catppuccin_menu_selected_style "fg=#{@thm_fg},bold,bg=#{@thm_overlay_0}"

# Misc
set -g default-terminal "tmux-256color"
set -g @catppuccin_window_status_style "rounded"
set -g @catppuccin_window_text " #W"
set -g @catppuccin_window_current_text "#W"
set -g @catppuccin_window_default_text "#W"

## Little hack to count the window correctly (since it starts with 1 now)
set -g @catppuccin_window_number "#(expr #I + 1)"

# Make the status line pretty and add some modules
set -g status-right-length 100
set -g status-left-length 100
set -g status-left ""
set -g status-right "#{E:@catppuccin_status_application}"
set -agF status-right "#{E:@catppuccin_status_cpu}"
set -ag status-right "#{E:@catppuccin_status_session}"
set -ag status-right "#{E:@catppuccin_status_uptime}"
set -agF status-right "#{E:@catppuccin_status_battery}"

# Plugins
set -g @plugin 'tmux-plugins/tpm'

set -g @plugin 'catppuccin/tmux'

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

set -g pane-border-format "#[fg=#a6e3a1,bg=default]β–ˆ#[fg=#313244,bg=#a6e3a1]#{pane_index}#[fg=#a6e3a1,bg=#313244]β–ˆ #[fg=#a6e3a1,bg=#313244]#{pane_title}#[fg=#313244,bg=default]β–ˆ"


`Note that I added the last line to override the catpuccin config and with that I was able to make it work`



### Attach screenshots.

_No response_

### What tmux version are you seeing the issue on?

tmux 3.5a

### What shell are you using?

zsh

### Any additional comments?

_No response_

Metadata

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