mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-15 00:06:09 +03:00
linux default keybindings for scroll top, bot, page up, down
This commit is contained in:
@ -435,15 +435,37 @@ pub const Config = struct {
|
|||||||
.{ .goto_split = .right },
|
.{ .goto_split = .right },
|
||||||
);
|
);
|
||||||
|
|
||||||
// Semantic prompts
|
// Viewport scrolling
|
||||||
|
try result.keybind.set.put(
|
||||||
|
alloc,
|
||||||
|
.{ .key = .home, .mods = .{ .shift = true } },
|
||||||
|
.{ .scroll_to_top = {} },
|
||||||
|
);
|
||||||
|
try result.keybind.set.put(
|
||||||
|
alloc,
|
||||||
|
.{ .key = .end, .mods = .{ .shift = true } },
|
||||||
|
.{ .scroll_to_bottom = {} },
|
||||||
|
);
|
||||||
try result.keybind.set.put(
|
try result.keybind.set.put(
|
||||||
alloc,
|
alloc,
|
||||||
.{ .key = .page_up, .mods = .{ .shift = true } },
|
.{ .key = .page_up, .mods = .{ .shift = true } },
|
||||||
.{ .jump_to_prompt = -1 },
|
.{ .scroll_page_up = {} },
|
||||||
);
|
);
|
||||||
try result.keybind.set.put(
|
try result.keybind.set.put(
|
||||||
alloc,
|
alloc,
|
||||||
.{ .key = .page_down, .mods = .{ .shift = true } },
|
.{ .key = .page_down, .mods = .{ .shift = true } },
|
||||||
|
.{ .scroll_page_down = {} },
|
||||||
|
);
|
||||||
|
|
||||||
|
// Semantic prompts
|
||||||
|
try result.keybind.set.put(
|
||||||
|
alloc,
|
||||||
|
.{ .key = .page_up, .mods = .{ .shift = true, .ctrl = true } },
|
||||||
|
.{ .jump_to_prompt = -1 },
|
||||||
|
);
|
||||||
|
try result.keybind.set.put(
|
||||||
|
alloc,
|
||||||
|
.{ .key = .page_down, .mods = .{ .shift = true, .ctrl = true } },
|
||||||
.{ .jump_to_prompt = 1 },
|
.{ .jump_to_prompt = 1 },
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user