-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Add tab title renaming feature to macos #4217
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
Conversation
|
Haven't reviewed the code, but the demo looks good. I'd prefer if the UI were in a popover that drops down from the tab title, but that can come later, this is fine as it is. |
|
I love this feature! It would also be nice to be able to change the title by double-clicking the tab title. This could be addressed in a separate PR, depending on the difficulty. |
|
Sorry for the delay! Great work with this. I made some modifications that I felt were important:
|
|
I'm going to bikeshed this a bit but what's the rationale for some things being called |
Yeah I will unify this.
Because the user is being prompted
Note this is actually unrelated to tabs. These are surface titles. |
Then it should be |
I'm good with this |
|
Renamed. The macOS details are still named |
mdznr
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The ellipsis character should be used in menu items like these
https://support.apple.com/guide/applestyleguide/e-apsg076a7313/1.0/web/1.0#apd4768067dad604
| </connections> | ||
| </menuItem> | ||
| <menuItem isSeparatorItem="YES" id="L3L-I8-sqk"/> | ||
| <menuItem title="Change Title..." id="24I-xg-qIq"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| <menuItem title="Change Title..." id="24I-xg-qIq"> | |
| <menuItem title="Change Title…" id="24I-xg-qIq"> |
| menu.addItem(withTitle: "Reset Terminal", action: #selector(resetTerminal(_:)), keyEquivalent: "") | ||
| menu.addItem(withTitle: "Toggle Terminal Inspector", action: #selector(toggleTerminalInspector(_:)), keyEquivalent: "") | ||
| menu.addItem(.separator()) | ||
| menu.addItem(withTitle: "Change Title...", action: #selector(changeTitle(_:)), keyEquivalent: "") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| menu.addItem(withTitle: "Change Title...", action: #selector(changeTitle(_:)), keyEquivalent: "") | |
| menu.addItem(withTitle: "Change Title…", action: #selector(changeTitle(_:)), keyEquivalent: "") |
|
This issue is marked as merged, but I have version 1.1.2 and when I right-click in a split in macOS I don't see the "Set Title" menu option. Is this change currently available for macOS? |
|
No it’s on tip. See the milestone this got attached to |
|
I'm on but when I reload the config, I get the |
|
It's not |
| syncMenuShortcut(config, action: "increase_font_size:1", menuItem: self.menuIncreaseFontSize) | ||
| syncMenuShortcut(config, action: "decrease_font_size:1", menuItem: self.menuDecreaseFontSize) | ||
| syncMenuShortcut(config, action: "reset_font_size", menuItem: self.menuResetFontSize) | ||
| syncMenuShortcut(config, action: "change_title_prompt", menuItem: self.menuChangeTitle) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line is very suspicious though (it's still like this on the current main); every other instance is prompt_surface_title. (Corrected in #7149.)
|
Yeah, open a new Discussion. |
|
For reference: #7105 |
This was changed pretty late at #4217 (comment), and I don't think anybody saw my comment at #4217 (comment); I have no idea if this change is correct and have no way to test it either as I don't use macOS, but I'm quite suspicious of that line having not been changed.
|
I'm running version 1.1.3 and not seeing a way to trigger the dialog. Has this been rolled back since? Is this feature documented anywhere? |
It is not part of 1.1.3 or any other released version. It will be part of 1.2 when it is released. Please read the comments more carefully before commenting on such an old closed PR. |
|
@jcollie sorry but it's not obvious which release this feature is attached to at first glance, so I think given that the PR was approved a couple months ago it's reasonable to assume the feature might already be part of the latest public release. Looking forward to 1.2 though :) |
Check the "milestone" that this PR is attached to. It's up near the top on the right. It's even mentioned in a comment above. |


Tries to resolve #2509 partially by enabling tab title renaming feature for MacOS.
titleSetManuallyin the SurfaceViewtitleproperty in the configDemo:
Screenshare.-.2025-01-01.12_59_47.AM.1.mp4
Need some feedback. Thanks!