mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
config: make the proxy icon documentation more detailed
This commit is contained in:
@ -229,15 +229,15 @@ extension Ghostty {
|
|||||||
return String(cString: ptr)
|
return String(cString: ptr)
|
||||||
}
|
}
|
||||||
|
|
||||||
var macosTitlebarProxyIcon: Ghostty.MacOSTitlebarProxyIcon {
|
var macosTitlebarProxyIcon: MacOSTitlebarProxyIcon {
|
||||||
let defaultValue = Ghostty.MacOSTitlebarProxyIcon.visible
|
let defaultValue = MacOSTitlebarProxyIcon.visible
|
||||||
guard let config = self.config else { return defaultValue }
|
guard let config = self.config else { return defaultValue }
|
||||||
var v: UnsafePointer<Int8>? = nil
|
var v: UnsafePointer<Int8>? = nil
|
||||||
let key = "macos-titlebar-proxy-icon"
|
let key = "macos-titlebar-proxy-icon"
|
||||||
guard ghostty_config_get(config, &v, key, UInt(key.count)) else { return defaultValue }
|
guard ghostty_config_get(config, &v, key, UInt(key.count)) else { return defaultValue }
|
||||||
guard let ptr = v else { return defaultValue }
|
guard let ptr = v else { return defaultValue }
|
||||||
let str = String(cString: ptr)
|
let str = String(cString: ptr)
|
||||||
return Ghostty.MacOSTitlebarProxyIcon(rawValue: str) ?? defaultValue
|
return MacOSTitlebarProxyIcon(rawValue: str) ?? defaultValue
|
||||||
}
|
}
|
||||||
|
|
||||||
var macosWindowShadow: Bool {
|
var macosWindowShadow: Bool {
|
||||||
|
@ -1444,9 +1444,20 @@ keybind: Keybinds = .{},
|
|||||||
/// Changing this option at runtime only applies to new windows.
|
/// Changing this option at runtime only applies to new windows.
|
||||||
@"macos-titlebar-style": MacTitlebarStyle = .transparent,
|
@"macos-titlebar-style": MacTitlebarStyle = .transparent,
|
||||||
|
|
||||||
/// State of the proxy icon for the macOS titlebar.
|
/// Whether the proxy icon in the macOS titlebar is visible. The proxy icon
|
||||||
/// The "hidden" style hides the proxy icon.
|
/// is the icon that represents the folder of the current working directory.
|
||||||
/// The default value is "visible".
|
/// You can see this very clearly in the macOS built-in Terminal.app
|
||||||
|
/// titlebar.
|
||||||
|
///
|
||||||
|
/// The proxy icon is only visible with the native macOS titlebar style.
|
||||||
|
///
|
||||||
|
/// The default value is `visible`.
|
||||||
|
///
|
||||||
|
/// This setting can be changed at runtime and will affect all currently
|
||||||
|
/// open windows but only after their working directory changes again.
|
||||||
|
/// Therefore, to make this work after changing the setting, you must
|
||||||
|
/// usually `cd` to a different directory, open a different file in an
|
||||||
|
/// editor, etc.
|
||||||
@"macos-titlebar-proxy-icon": MacTitlebarProxyIcon = .visible,
|
@"macos-titlebar-proxy-icon": MacTitlebarProxyIcon = .visible,
|
||||||
|
|
||||||
/// If `true`, the *Option* key will be treated as *Alt*. This makes terminal
|
/// If `true`, the *Option* key will be treated as *Alt*. This makes terminal
|
||||||
|
Reference in New Issue
Block a user