Merge branch 'select_boundary_dollar' of github.com:ringtailsoftware/ghostty into select_boundary_dollar

This commit is contained in:
Toby Jaffey
2024-12-12 16:48:28 +00:00
3 changed files with 8 additions and 15 deletions

0
dist/linux/ghostty_dolphin.desktop vendored Executable file → Normal file
View File

View File

@ -123,13 +123,6 @@ pub fn init(core_app: *CoreApp, opts: Options) !App {
// and initializing a Vulkan context was causing a longer delay
// on some systems.
_ = 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 {
// 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

View File

@ -30,10 +30,10 @@ pub fn genConfig(writer: anytype, cli: bool) !void {
inline for (@typeInfo(Config).Struct.fields) |field| {
if (field.name[0] == '_') continue;
try writer.writeAll("`");
try writer.writeAll("**`");
if (cli) try writer.writeAll("--");
try writer.writeAll(field.name);
try writer.writeAll("`\n\n");
try writer.writeAll("`**\n\n");
if (@hasDecl(help_strings.Config, field.name)) {
var iter = std.mem.splitScalar(u8, @field(help_strings.Config, field.name), '\n');
var first = true;
@ -60,12 +60,12 @@ pub fn genActions(writer: anytype) !void {
const action = std.meta.stringToEnum(Action, field.name).?;
switch (action) {
.help => try writer.writeAll("`--help`\n\n"),
.version => try writer.writeAll("`--version`\n\n"),
.help => try writer.writeAll("**`--help`**\n\n"),
.version => try writer.writeAll("**`--version`**\n\n"),
else => {
try writer.writeAll("`+");
try writer.writeAll("**`+");
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| {
if (field.name[0] == '_') continue;
try writer.writeAll("`");
try writer.writeAll("**`");
try writer.writeAll(field.name);
try writer.writeAll("`\n\n");
try writer.writeAll("`**\n\n");
if (@hasDecl(help_strings.KeybindAction, field.name)) {
var iter = std.mem.splitScalar(u8, @field(help_strings.KeybindAction, field.name), '\n');