英文:
Opening a new pane in a window resets window name
问题
每当我在命名的窗口内打开一个新的窗格,它会重置该窗口的名称。这使得命名无法使用。我该如何解决这个问题/我做错了什么?
比如我将一个窗口重命名如下:
然后我会得到:
但是,只要我打开一个额外的窗格,它就会重置窗口名称:
英文:
Whenever I open a new pane inside a named window, it resets the name of that window. This makes the naming unusable. How do I solve this/what am I doing wrong?
Say I renamed a window like so:
I then have:
But as soon as I open an additional pane it resets the window name:
答案1
得分: 1
你的shell或终端中有自动发出窗口重命名命令给tmux,可以是通过 tmux rename-window '...'
或转义序列 printf '\ek...\e\\'
完成的。
虽然可以轻松地在配置文件中搜索 rename-window
模式,但对于转义序列来说并不容易,因为它们可以用多种方式表示。
至少你可以通过禁用 allow-rename
选项来阻止通过转义序列重命名窗口:
tmux set-option -wg allow-rename off
如果这有效果,那么现在你有线索了:检查你的shell配置或终端首选项。
英文:
Something in your shell or terminal is automatically issuing a window rename command to tmux, either via tmux rename-window '...'
or an escape sequence printf '\ek...\e\\'
.
While it is easy to grep your config files for rename-window
patterns, the same cannot be done easily for escape sequences, because those can be represented in many ways.
At least you can forbid window rename via escape sequence by disabling allow-rename
option:
tmux set-option -wg allow-rename off
If that worked, now have a clue: check you shell config or terminal preferences.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论