Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tmuxp pane name doesn't work - they all have the same name: zsh #852

Open
Adelante10k opened this issue Dec 22, 2022 · 3 comments
Open

tmuxp pane name doesn't work - they all have the same name: zsh #852

Adelante10k opened this issue Dec 22, 2022 · 3 comments

Comments

@Adelante10k
Copy link

Step 1: Provide a summary of your problem

Panes name doesn't work, all have the same name: zsh
Screenshot from 2022-12-22 03-58-16

OS: Linux Mint 21.1 (Ubuntu 22.04 based)
Shell: zsh. I use powerlevel10k for terminal customization, the theme is based on the zsh shell.

.tmux.conf

unbind C-b
set-option -g prefix C-a
set-option -g allow-rename off
set -g default-terminal "screen-256color"
set -g pane-border-format "#{pane_index} #{pane_title}"
set -g pane-border-status bottom
set -g status-left-length 85
set-window-option -g window-status-current-style bg=yellow
set -g mouse on
# List of TMUX Plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'

Step 2: Provide tmuxp details

tmuxp debug-info

-------------------------
environment:
	dist: Linux-5.15.0-56-generic-x86_64-with-glibc2.35
	arch: x86_64
	uname: Linux; marius; 5.15.0-56-generic
	version: #62-Ubuntu SMP Tue Nov 22 19:54:14 UTC 2022
-------------------------
python version: 3.10.6 (main, Nov 14 2022, 16:10:14) [GCC 11.3.0]
system PATH: /home/marius/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/go/bin:/usr/local/bin:/home/marius/
tmux version: 3.2
libtmux version: 0.10.1
tmuxp version: 1.9.2
tmux path: /usr/bin/tmux
tmuxp path: /usr/lib/python3/dist-packages/tmuxp/__init__.py
shell: /usr/bin/zsh
-------------------------
tmux sessions:
	0: 1 windows (created Thu Dec 22 03:55:48 2022) (attached)
	4-pane-split: 1 windows (created Thu Dec 22 03:57:58 2022)
	alt-pane-split: 1 windows (created Thu Dec 22 03:56:54 2022)

tmux windows:
	0: zsh* (1 panes) [190x43] [layout b8bd,190x43,0,0,0] @0 (active)

tmux panes:
	0: [190x42] [history 287/50000, 131286 bytes] %0 (active)

tmux global options:
	@continuum-save-last-timestamp 1671675049
	@plugin tmux-plugins/tmux-continuum
	@resurrect-restore-script-path /home/marius/.tmux/plugins/tmux-resurrect/scripts/restore.sh
	@resurrect-save-script-path /home/marius/.tmux/plugins/tmux-resurrect/scripts/save.sh
	@resurrect-strategy-irb default_strategy
	@resurrect-strategy-mosh-client default_strategy
	activity-action other
	assume-paste-time 1
	base-index 0
	bell-action any
	default-command ''
	default-shell /usr/bin/zsh
	default-size 80x24
	destroy-unattached off
	detach-on-destroy on
	display-panes-active-colour red
	display-panes-colour blue
	display-panes-time 1000
	display-time 4000
	history-limit 50000
	key-table root
	lock-after-time 0
	lock-command "lock -np"
	message-command-style bg=black,fg=yellow
	message-style bg=yellow,fg=black
	mouse off
	prefix C-a
	prefix2 None
	renumber-windows off
	repeat-time 500
	set-titles off
	set-titles-string "#S:#I:#W - \"#T\" #{session_alerts}"
	silence-action other
	status on
	status-bg default
	status-fg default
	status-format[0] "#[align=left range=left #{status-left-style}]#[push-default]#{T;=/#{status-left-length}:status-left}#[pop-default]#[norange default]#[list=on align=#{status-justify}]#[list=left-marker]<#[list=right-marker]>#[list=on]#{W:#[range=window|#{window_index} #{window-status-style}#{?#{&&:#{window_last_flag},#{!=:#{window-status-last-style},default}}, #{window-status-last-style},}#{?#{&&:#{window_bell_flag},#{!=:#{window-status-bell-style},default}}, #{window-status-bell-style},#{?#{&&:#{||:#{window_activity_flag},#{window_silence_flag}},#{!=:#{window-status-activity-style},default}}, #{window-status-activity-style},}}]#[push-default]#{T:window-status-format}#[pop-default]#[norange default]#{?window_end_flag,,#{window-status-separator}},#[range=window|#{window_index} list=focus #{?#{!=:#{window-status-current-style},default},#{window-status-current-style},#{window-status-style}}#{?#{&&:#{window_last_flag},#{!=:#{window-status-last-style},default}}, #{window-status-last-style},}#{?#{&&:#{window_bell_flag},#{!=:#{window-status-bell-style},default}}, #{window-status-bell-style},#{?#{&&:#{||:#{window_activity_flag},#{window_silence_flag}},#{!=:#{window-status-activity-style},default}}, #{window-status-activity-style},}}]#[push-default]#{T:window-status-current-format}#[pop-default]#[norange list=on default]#{?window_end_flag,,#{window-status-separator}}}#[nolist align=right range=right #{status-right-style}]#[push-default]#{T;=/#{status-right-length}:status-right}#[pop-default]#[norange default]"
	status-format[1] "#[align=centre]#{P:#{?pane_active,#[reverse],}#{pane_index}[#{pane_width}x#{pane_height}]#[default] }"
	status-interval 5
	status-justify left
	status-keys emacs
	status-left "[#{session_name}] "
	status-left-length 85
	status-left-style default
	status-position bottom
	status-right "#(/home/marius/.tmux/plugins/tmux-continuum/scripts/continuum_save.sh)#{?window_bigger,[#{window_offset_x}#,#{window_offset_y}] ,}\"#{=21:pane_title}\" %H:%M %d-%b-%y"
	status-right-length 40
	status-right-style default
	status-style bg=green,fg=black
	update-environment[0] DISPLAY
	update-environment[1] KRB5CCNAME
	update-environment[2] SSH_ASKPASS
	update-environment[3] SSH_AUTH_SOCK
	update-environment[4] SSH_AGENT_PID
	update-environment[5] SSH_CONNECTION
	update-environment[6] WINDOWID
	update-environment[7] XAUTHORITY
	visual-activity off
	visual-bell off
	visual-silence off
	word-separators " "

tmux window options:
	aggressive-resize on
	allow-rename off
	alternate-screen on
	automatic-rename on
	automatic-rename-format "#{?pane_in_mode,[tmux],#{pane_current_command}}#{?pane_dead,[dead],}"
	clock-mode-colour blue
	clock-mode-style 24
	copy-mode-match-style bg=cyan,fg=black
	copy-mode-current-match-style bg=magenta,fg=black
	copy-mode-mark-style bg=red,fg=black
	main-pane-height 24
	main-pane-width 80
	mode-keys emacs
	mode-style bg=yellow,fg=black
	monitor-activity off
	monitor-bell on
	monitor-silence 0
	other-pane-height 0
	other-pane-width 0
	pane-active-border-style "#{?pane_in_mode,fg=yellow,#{?synchronize-panes,fg=red,fg=green}}"
	pane-base-index 0
	pane-border-format "#{pane_index} #{pane_title}"
	pane-border-lines single
	pane-border-status bottom
	pane-border-style default
	remain-on-exit off
	synchronize-panes off
	window-active-style default
	window-size latest
	window-style default
	window-status-activity-style reverse
	window-status-bell-style reverse
	window-status-current-format "#I:#W#{?window_flags,#{window_flags}, }"
	window-status-current-style bg=yellow
	window-status-format "#I:#W#{?window_flags,#{window_flags}, }"
	window-status-last-style default
	window-status-separator " "
	window-status-style default
	wrap-search on
	xterm-keys on

Step 3: Describe the problem:

Steps to reproduce:

  1. tmuxp load mysession (cretated folder .tmuxp in home directory that hold all the .yml files)
  2. My .yml file (mysession) is the default example from tmuxp

Expected Results:

The pane must respect the name declared in the .yml file

@tony
Copy link
Member

tony commented Dec 22, 2022

In regards to this:

libtmux version: 0.10.1
tmuxp version: 1.9.2

You can try a newer tmuxp + libtmux version via pip if you'd like

Also, I don't know for sure, but this may have a role:

export DISABLE_AUTO_TITLE='true'

Does adding the above to your ~/.zshrc and trying a new tmux session change anything? I have a hunch auto-title is renaming the session to zsh

@Adelante10k
Copy link
Author

Adelante10k commented Dec 22, 2022

1. I uninstalled the previously installed tmuxp via sudo apt-get and installed tmuxp via pip:

Installing collected packages: PyYAML
  Attempting uninstall: PyYAML
    Found existing installation: PyYAML 5.4.1
    Uninstalling PyYAML-5.4.1:
      Successfully uninstalled PyYAML-5.4.1
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
awscli 1.27.35 requires PyYAML<5.5,>=3.10, but you have pyyaml 6.0 which is incompatible.
Successfully installed PyYAML-6.0

2. The new tmuxp debug-info:

libtmux version: 0.16.1                                                                                            
tmuxp version: 1.19.1

3. I added the export DISABLE_AUTO_TITLE='true' to .zshrc and source ~/.zshrc

4. tmux kill-server

5. Start tmux & tmuxp load mysession

6. Same result, all panes are called zsh

@tony
Copy link
Member

tony commented Dec 22, 2022

That's strange, I was pretty sure export DISABLE_AUTO_TITLE='true' would do the trick.

Same result if you remove these?

# List of TMUX Plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'

Small note: By "panes", I assume you mean windows, right? tmuxp won't set pane titles. tmux will detect the pane title via the application running it. tmuxp can set the window name.

Does this issue also happen without tmuxp?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants