Reworked proxy icon, added config options.

This commit is contained in:
johnseth97
2024-10-24 21:54:08 -04:00
parent 93f70ce237
commit 8e223fdcd9
4 changed files with 37 additions and 2 deletions

View File

@@ -236,8 +236,14 @@ class BaseTerminalController: NSWindowController,
// Set the main window title
window.title = to
}
func proxyIconURLDidChange(to: URL?){
guard let window else { return }
// Get the current working directory from the focused surface
if let pwd = focusedSurface?.pwd {
if ghostty.config.macosTitlebarProxyIcon == "visible", let pwd = focusedSurface?.pwd {
// Set the window's representedURL to the current working directory
window.representedURL = URL(fileURLWithPath: pwd)
} else {