Persistent Tab Titles #7581
Replies: 2 comments 3 replies
-
I too find this to be very useful. I have a similar setup on iTerm2: I wrote an AutoLaunch script that monitors the first split of a tab, and sets the title of that tab to be that, permanently. For reference, this is the script:
Why is this useful for me? My workflow is to have the first split of a tab be neovim, with some folder open (a repo, a config dir, anything really). Then have many other splits where I can run commands. If I switch to another tab, no matter in which split I was, the tab title will show the actual working directory I care about (e.g.: the one with neovim in it) Any way to make this doable in Ghostty would be greatly appreciated. |
Beta Was this translation helpful? Give feedback.
-
#2353 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all, based on this discord help thread, I wanted to propose this Ghostty feature. It's possible some of my terminology might be a little off (particularly, with the distinction of "window" and "tab", as well as discussing terminal "splits" and "panes"), so please bear with me! Or, please correct my terminology/ask if this feature idea is unclear.
Right now (at least on
tip
), it is possible to useprompt_surface_title
to change the title of the tab/window. However, this is tied to the specific terminal that the user was in when they made that change. If, from within that same tab, the user then decides to split the terminal to create a new terminal within the same tab, the title of the tab will change when they change focus to that new split.If they go back to the original terminal pane (again, all within the same tab), the title will indeed go back to what the user set it to.
The feature idea I'd like to propose is being able to set the title of a tab in such a way that it is "sticky" or "persistent", regardless of whether new terminal splits are created/used within the tab.
The inspiration for this feature idea came from being able to rename windows in tmux, which I always liked using to organize my work so that each window had a name like "testing", "project 1", "code review", etc.
Beta Was this translation helpful? Give feedback.
All reactions