mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-01-07 13:53:18 +00:00
config: add super+shift+t as a default undo too to mimic browsers
This commit is contained in:
@@ -4944,6 +4944,25 @@ pub const Keybinds = struct {
|
||||
.{ .key = .{ .unicode = 'q' }, .mods = .{ .super = true } },
|
||||
.{ .quit = {} },
|
||||
);
|
||||
try self.set.putFlags(
|
||||
alloc,
|
||||
.{ .key = .{ .unicode = 'k' }, .mods = .{ .super = true } },
|
||||
.{ .clear_screen = {} },
|
||||
.{ .performable = true },
|
||||
);
|
||||
try self.set.put(
|
||||
alloc,
|
||||
.{ .key = .{ .unicode = 'a' }, .mods = .{ .super = true } },
|
||||
.{ .select_all = {} },
|
||||
);
|
||||
|
||||
// Undo/redo
|
||||
try self.set.putFlags(
|
||||
alloc,
|
||||
.{ .key = .{ .unicode = 't' }, .mods = .{ .super = true, .shift = true } },
|
||||
.{ .undo = {} },
|
||||
.{ .performable = true },
|
||||
);
|
||||
try self.set.putFlags(
|
||||
alloc,
|
||||
.{ .key = .{ .unicode = 'z' }, .mods = .{ .super = true } },
|
||||
@@ -4956,17 +4975,6 @@ pub const Keybinds = struct {
|
||||
.{ .redo = {} },
|
||||
.{ .performable = true },
|
||||
);
|
||||
try self.set.putFlags(
|
||||
alloc,
|
||||
.{ .key = .{ .unicode = 'k' }, .mods = .{ .super = true } },
|
||||
.{ .clear_screen = {} },
|
||||
.{ .performable = true },
|
||||
);
|
||||
try self.set.put(
|
||||
alloc,
|
||||
.{ .key = .{ .unicode = 'a' }, .mods = .{ .super = true } },
|
||||
.{ .select_all = {} },
|
||||
);
|
||||
|
||||
// Viewport scrolling
|
||||
try self.set.put(
|
||||
|
||||
Reference in New Issue
Block a user