Add dynamic window title (#293)#297
Merged
Merged
Conversation
Sets the macOS navigationTitle from the current selection so window-tracking tools like Toggl can attribute time per repo/tab. Worktree → "<repo> · <tab>" (or just "<repo>"), archived view → "Archive", nothing selected → "Supacode". The Window scene title and the ⌘0 menu item are unchanged. Tab titles are stripped of control characters before joining to prevent embedded "\n" from silently truncating NSWindow.title.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
.navigationTitle()on the main content view from the current sidebar selection, so window-tracking tools (Toggl etc.) can attribute time per repo/tab. Closes Feature Request: Change window title based on active repository/folder #293.<repo> · <tab>(or just<repo>when no tab title yet). Archived view →Archive. Nothing selected →Supacode.\nfrom silently truncatingNSWindow.title.Windowscene title and the ⌘0 menu item are untouched.Test plan
make build-appmake check(format + lint)make test— 1032 tests pass, including 14 newWindowTitleTestscoveringformat,sanitize, and thecomputebranches (archived, no-selection, unknown worktree, custom-title precedence, whitespace-only custom title, repo-name fallback)printf '\033]0;new\007') mid-sessionCloses #293