mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-16 16:56:09 +03:00
Merge branch 'select_boundary_dollar' of github.com:ringtailsoftware/ghostty into select_boundary_dollar
This commit is contained in:
0
dist/linux/ghostty_dolphin.desktop
vendored
Executable file → Normal file
0
dist/linux/ghostty_dolphin.desktop
vendored
Executable file → Normal file
@ -123,13 +123,6 @@ pub fn init(core_app: *CoreApp, opts: Options) !App {
|
|||||||
// and initializing a Vulkan context was causing a longer delay
|
// and initializing a Vulkan context was causing a longer delay
|
||||||
// on some systems.
|
// on some systems.
|
||||||
_ = internal_os.setenv("GDK_DEBUG", "opengl,gl-disable-gles,vulkan-disable");
|
_ = internal_os.setenv("GDK_DEBUG", "opengl,gl-disable-gles,vulkan-disable");
|
||||||
|
|
||||||
// Wayland-EGL on GTK 4.14 causes "Failed to create EGL context" errors.
|
|
||||||
// This can be fixed by forcing the backend to prefer X11. This issue
|
|
||||||
// appears to be fixed in GTK 4.16 but I wasn't able to bisect why.
|
|
||||||
// The "*" at the end says that if X11 fails, try all remaining
|
|
||||||
// backends.
|
|
||||||
_ = internal_os.setenv("GDK_BACKEND", "x11,*");
|
|
||||||
} else {
|
} else {
|
||||||
// Versions prior to 4.14 are a bit of an unknown for Ghostty. It
|
// Versions prior to 4.14 are a bit of an unknown for Ghostty. It
|
||||||
// is an environment that isn't tested well and we don't have a
|
// is an environment that isn't tested well and we don't have a
|
||||||
|
@ -30,10 +30,10 @@ pub fn genConfig(writer: anytype, cli: bool) !void {
|
|||||||
inline for (@typeInfo(Config).Struct.fields) |field| {
|
inline for (@typeInfo(Config).Struct.fields) |field| {
|
||||||
if (field.name[0] == '_') continue;
|
if (field.name[0] == '_') continue;
|
||||||
|
|
||||||
try writer.writeAll("`");
|
try writer.writeAll("**`");
|
||||||
if (cli) try writer.writeAll("--");
|
if (cli) try writer.writeAll("--");
|
||||||
try writer.writeAll(field.name);
|
try writer.writeAll(field.name);
|
||||||
try writer.writeAll("`\n\n");
|
try writer.writeAll("`**\n\n");
|
||||||
if (@hasDecl(help_strings.Config, field.name)) {
|
if (@hasDecl(help_strings.Config, field.name)) {
|
||||||
var iter = std.mem.splitScalar(u8, @field(help_strings.Config, field.name), '\n');
|
var iter = std.mem.splitScalar(u8, @field(help_strings.Config, field.name), '\n');
|
||||||
var first = true;
|
var first = true;
|
||||||
@ -60,12 +60,12 @@ pub fn genActions(writer: anytype) !void {
|
|||||||
const action = std.meta.stringToEnum(Action, field.name).?;
|
const action = std.meta.stringToEnum(Action, field.name).?;
|
||||||
|
|
||||||
switch (action) {
|
switch (action) {
|
||||||
.help => try writer.writeAll("`--help`\n\n"),
|
.help => try writer.writeAll("**`--help`**\n\n"),
|
||||||
.version => try writer.writeAll("`--version`\n\n"),
|
.version => try writer.writeAll("**`--version`**\n\n"),
|
||||||
else => {
|
else => {
|
||||||
try writer.writeAll("`+");
|
try writer.writeAll("**`+");
|
||||||
try writer.writeAll(field.name);
|
try writer.writeAll(field.name);
|
||||||
try writer.writeAll("`\n\n");
|
try writer.writeAll("`**\n\n");
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -97,9 +97,9 @@ pub fn genKeybindActions(writer: anytype) !void {
|
|||||||
inline for (info.Union.fields) |field| {
|
inline for (info.Union.fields) |field| {
|
||||||
if (field.name[0] == '_') continue;
|
if (field.name[0] == '_') continue;
|
||||||
|
|
||||||
try writer.writeAll("`");
|
try writer.writeAll("**`");
|
||||||
try writer.writeAll(field.name);
|
try writer.writeAll(field.name);
|
||||||
try writer.writeAll("`\n\n");
|
try writer.writeAll("`**\n\n");
|
||||||
|
|
||||||
if (@hasDecl(help_strings.KeybindAction, field.name)) {
|
if (@hasDecl(help_strings.KeybindAction, field.name)) {
|
||||||
var iter = std.mem.splitScalar(u8, @field(help_strings.KeybindAction, field.name), '\n');
|
var iter = std.mem.splitScalar(u8, @field(help_strings.KeybindAction, field.name), '\n');
|
||||||
|
Reference in New Issue
Block a user