mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-05-19 19:41:27 +00:00
Add settings shortcut on MacOS
- Settings shortcut opens the config file in the default editor. Signed-off-by: Borja Clemente <borja.clemente@gmail.com>
This commit is contained in:
@@ -120,6 +120,12 @@ export fn ghostty_config_get_error(self: *Config, idx: u32) Error {
|
||||
return .{ .message = err.message.ptr };
|
||||
}
|
||||
|
||||
export fn ghostty_config_open() void {
|
||||
Config.edit(global.alloc) catch |err| {
|
||||
log.err("error opening config in editor err={}", .{err});
|
||||
};
|
||||
}
|
||||
|
||||
/// Sync with ghostty_error_s
|
||||
const Error = extern struct {
|
||||
message: [*:0]const u8 = "",
|
||||
|
||||
Reference in New Issue
Block a user