From 31d53849204c7294eba5e973047d9fc6f6e915ff Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sun, 7 Jul 2024 14:01:20 -0700 Subject: [PATCH] macOS select output is cmd+tripleclick not control anymore Fixes #1920 Ctrl interferes with context menus. --- README.md | 2 +- src/Surface.zig | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 864b56aa1..2c4aac950 100644 --- a/README.md +++ b/README.md @@ -199,7 +199,7 @@ The currently supported shell integration features in Ghostty: - We do not confirm close for windows where the cursor is at a prompt. - New terminals start in the working directory of the previously focused terminal. - Complex prompts resize correctly by allowing the shell to redraw the prompt line. -- Triple-click while holding control to select the output of a command. +- Triple-click while holding control (Linux) or command (macOS) to select the output of a command. - The cursor at the prompt is turned into a bar. - The `jump_to_prompt` keybinding can be used to scroll the terminal window forward and back through prompts. diff --git a/src/Surface.zig b/src/Surface.zig index 149a2c5eb..57f1138cb 100644 --- a/src/Surface.zig +++ b/src/Surface.zig @@ -2378,7 +2378,7 @@ pub fn mouseButtonCallback( // Triple click, select the line under our mouse 3 => { - const sel_ = if (mods.ctrl) + const sel_ = if (mods.ctrlOrSuper()) self.io.terminal.screen.selectOutput(pin.*) else self.io.terminal.screen.selectLine(.{ .pin = pin.* });