mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-17 09:16:11 +03:00
Merge pull request #2476 from johnseth97/native-title-proxy-icons-macos
Native title proxy icons macos
This commit is contained in:
@ -235,6 +235,15 @@ class BaseTerminalController: NSWindowController,
|
|||||||
|
|
||||||
// Set the main window title
|
// Set the main window title
|
||||||
window.title = to
|
window.title = to
|
||||||
|
|
||||||
|
// Get the current working directory from the focused surface
|
||||||
|
if let pwd = focusedSurface?.pwd {
|
||||||
|
// Set the window's representedURL to the current working directory
|
||||||
|
window.representedURL = URL(fileURLWithPath: pwd)
|
||||||
|
} else {
|
||||||
|
// If we don't have a pwd, set representedURL to nil
|
||||||
|
window.representedURL = nil
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func cellSizeDidChange(to: NSSize) {
|
func cellSizeDidChange(to: NSSize) {
|
||||||
|
Reference in New Issue
Block a user