Skip to content

Conversation

@dmatos2012
Copy link

@dmatos2012 dmatos2012 commented Dec 14, 2025

Closes #9880.

2025-12-14.06-50-31.mp4

Note

Used AI to get to explain to me some of the APIs and functionality between windows and tabs and their connections. But the code itself, I implemented everything, just used it for help with explaining some things

If you feel like reading more:

  • I feel there is a lot of duplication now with the prompt surface title functionality. For the dialog creation, i basically copied-pasted the surface_title_dialog, and some of the titleOverride and the TabDialogSet functionality is identical to that of the prompt_surface_title

  • I would think about abstracting it out, but first I think Id be nice to think what the maintainers think about this approach before doing anything else.

@dmatos2012 dmatos2012 requested a review from a team as a code owner December 14, 2025 06:15
Copy link
Contributor

@mitchellh mitchellh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, parts of this look great and others not so much. I think we should be able to rename SurfaceTitleDialog to TitleDialog and reuse that with differing copy depending on the mode, rather than introducing a whole new dialog.

The actual core tab stuff looks fine though.

@dmatos2012
Copy link
Author

Thx for the review!. I refactored into a single TitleDialog following your feedback.

@dmatos2012 dmatos2012 requested a review from mitchellh December 17, 2025 18:58
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

Successfully merging this pull request may close these issues.

GTK: Implement tab title renaming

2 participants