From eb694574ab7243afa4ebc2d9b1931693be04a0b9 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sat, 18 Nov 2023 11:17:02 -0800 Subject: [PATCH] config: select all should default to ctrl+shift+a on linux --- src/config/Config.zig | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/src/config/Config.zig b/src/config/Config.zig index 341f78909..3f73ec7f9 100644 --- a/src/config/Config.zig +++ b/src/config/Config.zig @@ -933,6 +933,13 @@ pub fn default(alloc_gpa: Allocator) Allocator.Error!Config { .{ .key = .i, .mods = .{ .shift = true, .ctrl = true } }, .{ .inspector = .toggle }, ); + + // Terminal + try result.keybind.set.put( + alloc, + .{ .key = .a, .mods = .{ .shift = true, .ctrl = true } }, + .{ .select_all = {} }, + ); } { // Cmd+N for goto tab N @@ -965,13 +972,6 @@ pub fn default(alloc_gpa: Allocator) Allocator.Error!Config { } } - // Select all - try result.keybind.set.put( - alloc, - .{ .key = .a, .mods = ctrlOrSuper(.{}) }, - .{ .select_all = {} }, - ); - // Toggle fullscreen try result.keybind.set.put( alloc, @@ -1004,6 +1004,11 @@ pub fn default(alloc_gpa: Allocator) Allocator.Error!Config { .{ .key = .k, .mods = .{ .super = true } }, .{ .clear_screen = {} }, ); + try result.keybind.set.put( + alloc, + .{ .key = .a, .mods = .{ .super = true } }, + .{ .select_all = {} }, + ); // Viewport scrolling try result.keybind.set.put(