mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-22 23:35:20 +00:00
macOS: add Cmd+J "Jump to Selection" menu item and default binding
This matches other built-in macOS apps like Terminal, Notes, Safari. We already had the binding, just needed to create the menu. https://ampcode.com/threads/T-019b956a-f4e6-71b4-87fa-4162258d33ff
This commit is contained in:
@@ -6446,6 +6446,12 @@ pub const Keybinds = struct {
|
||||
.{ .key = .{ .physical = .page_down }, .mods = .{ .super = true } },
|
||||
.{ .scroll_page_down = {} },
|
||||
);
|
||||
try self.set.putFlags(
|
||||
alloc,
|
||||
.{ .key = .{ .unicode = 'j' }, .mods = .{ .super = true } },
|
||||
.{ .scroll_to_selection = {} },
|
||||
.{ .performable = true },
|
||||
);
|
||||
|
||||
// Semantic prompts
|
||||
try self.set.put(
|
||||
|
||||
Reference in New Issue
Block a user