macOS: move pwd to OSSurfaceView

This commit is contained in:
Lukas
2026-04-12 11:57:15 +02:00
parent 8bd1aba40a
commit 46fef7718c
3 changed files with 4 additions and 7 deletions

View File

@@ -8,6 +8,10 @@ extension Ghostty {
/// Unique ID per surface
let id: UUID
// The current pwd of the surface as defined by the pty. This can be
// changed with escape codes.
@Published var pwd: String?
init(id: UUID?, frame: CGRect) {
self.id = id ?? UUID()
super.init(frame: frame)

View File

@@ -21,10 +21,6 @@ extension Ghostty {
}
}
// The current pwd of the surface as defined by the pty. This can be
// changed with escape codes.
@Published var pwd: String?
// The cell size of this surface. This is set by the core when the
// surface is first created and any time the cell size changes (i.e.
// when the font size changes). This is used to allow windows to be

View File

@@ -9,9 +9,6 @@ extension Ghostty {
// to the app level and it is set from there.
@Published var title: String = "👻"
// The current pwd of the surface.
@Published var pwd: String?
// The cell size of this surface. This is set by the core when the
// surface is first created and any time the cell size changes (i.e.
// when the font size changes). This is used to allow windows to be