From 4365a52a08ffb0316cebdba107face86870ef1a5 Mon Sep 17 00:00:00 2001 From: Ryan Hughes Date: Wed, 8 Oct 2025 00:18:11 -0400 Subject: [PATCH] Make shift + insert paste from clipboard in ghostty --- config/ghostty/config | 1 + migrations/1759895423.sh | 3 +++ 2 files changed, 4 insertions(+) create mode 100644 migrations/1759895423.sh diff --git a/config/ghostty/config b/config/ghostty/config index 2bd47abb..85280779 100644 --- a/config/ghostty/config +++ b/config/ghostty/config @@ -21,6 +21,7 @@ shell-integration-features = no-cursor # Keyboard bindings keybind = f11=toggle_fullscreen +keybind = shift+insert=paste_from_clipboard # SSH session terminfo shell-integration-features = ssh-env diff --git a/migrations/1759895423.sh b/migrations/1759895423.sh new file mode 100644 index 00000000..e586063a --- /dev/null +++ b/migrations/1759895423.sh @@ -0,0 +1,3 @@ +echo "Make shift+insert paste from clipboard" +sed -i '/keybind = f11=toggle_fullscreen/a keybind = shift+insert=paste_from_clipboard' ~/.config/ghostty/config +sed -i 's/{ key = "F11", action = "ToggleFullscreen" }/{ key = "F11", action = "ToggleFullscreen" },\n{ key = "Insert", mods = "Shift", action = "Paste" }/' ~/.config/alacritty/alacritty.toml