config: select all should default to ctrl+shift+a on linux

This commit is contained in:
Mitchell Hashimoto
2023-11-18 11:17:02 -08:00
parent 2a002bad5e
commit eb694574ab

View File

@ -933,6 +933,13 @@ pub fn default(alloc_gpa: Allocator) Allocator.Error!Config {
.{ .key = .i, .mods = .{ .shift = true, .ctrl = true } }, .{ .key = .i, .mods = .{ .shift = true, .ctrl = true } },
.{ .inspector = .toggle }, .{ .inspector = .toggle },
); );
// Terminal
try result.keybind.set.put(
alloc,
.{ .key = .a, .mods = .{ .shift = true, .ctrl = true } },
.{ .select_all = {} },
);
} }
{ {
// Cmd+N for goto tab N // 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 // Toggle fullscreen
try result.keybind.set.put( try result.keybind.set.put(
alloc, alloc,
@ -1004,6 +1004,11 @@ pub fn default(alloc_gpa: Allocator) Allocator.Error!Config {
.{ .key = .k, .mods = .{ .super = true } }, .{ .key = .k, .mods = .{ .super = true } },
.{ .clear_screen = {} }, .{ .clear_screen = {} },
); );
try result.keybind.set.put(
alloc,
.{ .key = .a, .mods = .{ .super = true } },
.{ .select_all = {} },
);
// Viewport scrolling // Viewport scrolling
try result.keybind.set.put( try result.keybind.set.put(