Replies: 10 comments 10 replies
-
OS windows dont have names, tey have ids. What are you referring to? The
title an OS window displays is the title of its current active kitty window.
|
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
On Wed, May 31, 2023 at 03:23:17AM -0700, Jens Dahl Møllerhøj wrote:
I can set the name of a new os_window with `kitty --title "Some name"`.
It will be displayed on hover in the task bar:
<img width="121" alt="Screenshot 2023-05-31 at 12 22 20" src="https://github.com/kovidgoyal/kitty/assets/649188/12ed3fd4-6905-4cbc-b662-d449686aa7ec">
But I don't know how to change the name on an existing window, so I have to create a new one to change the name :-)
If you want to dynamically change titles dont use --title, instead use
the kitty remote control feature:
https://sw.kovidgoyal.net/kitty/remote-control/
|
Beta Was this translation helpful? Give feedback.
-
On Wed, May 31, 2023 at 06:12:10AM -0700, Jens Dahl Møllerhøj wrote:
As far as I can tell, there is no remote control command to set the os window title. `set-window-title` sets the window title, but it is overwritten by tab titles (That is, it does not set the OS window title / id)
There is set-tab0title as well. If you use tabs then use that.
|
Beta Was this translation helpful? Give feedback.
-
The OS window title is whatever the title of the active tab is. It's not
immutable, unless you use --title. I dont see a compelling use case for
giving OS windows separate titles beyond the existing --title semantics.
|
Beta Was this translation helpful? Give feedback.
-
On Wed, Jul 12, 2023 at 12:09:20AM -0700, Jens Dahl Møllerhøj wrote:
Would editable titles be possible to implement? (I could start looking into it) or does the OS not allow renaming?
There is no technical reason they cant be implemented.
|
Beta Was this translation helpful? Give feedback.
-
On Wed, Jul 12, 2023 at 04:27:51AM -0700, Jens Dahl Møllerhøj wrote:
Would you oppose a PR adding a `kitty @ set-os-window-title` command?
Not in principle, but it will depend on the details. IIRC title handling
for OS Windows is fairly involved.
|
Beta Was this translation helpful? Give feedback.
-
Dont recall would have to check the code.
|
Beta Was this translation helpful? Give feedback.
-
I've been dreaming about this for a long time #6313 Seems like the discussion there got confused between kitty windows and OS windows at the end (#takeaway it's best to specify it explicitly each time). |
Beta Was this translation helpful? Give feedback.
-
temporary hack #6313 (comment) |
Beta Was this translation helpful? Give feedback.
-
Hi, I'd love to be able to rename an existing os_window. I'm on mac osx. Is that possible? Could it be made possible?
Beta Was this translation helpful? Give feedback.
All reactions