omarchy icon indicating copy to clipboard operation
omarchy copied to clipboard

Universal copy/paste broken in foot when foot.ini predates the Ctrl+Shift+C/V bindings

Open bodhiblues opened this issue 3 weeks ago • 4 comments

System details

AMD Ryzen 5 5500U (Radeon Lucienne iGPU), Omarchy 4.5.0-3 (stable), foot 1.28.0-2, Hyprland 0.56.2

What's wrong?

After updating from 4.0.6 to 4.5.0, universal copy and paste stopped working in foot. SUPER+V types a literal ^V instead of pasting, and SUPER+C does not copy a mouse selection. The clipboard itself is fine: the clipboard manager shows the text and both shortcuts work in other apps.

Cause

Two changes combine, and neither shipped a migration for an existing ~/.config/foot/foot.ini:

  1. 37d6ae7f4 (2026-05-15, "Make sure foot responds to all the conventional copy/paste keybindings") added Control+Shift+c / Control+Shift+v to config/foot/foot.ini. A foot.ini copied to ~/.config before that kept the old lines:
    clipboard-copy=Control+Insert
    clipboard-paste=Shift+Insert
    
  2. 129c67e25 (2026-09-22, "Add select all and standard terminal clipboard shortcuts") changed what default/hypr/bindings/clipboard.lua sends to terminal-tagged windows from CTRL+Insert / SHIFT+Insert to CTRL SHIFT+C / CTRL SHIFT+V.

A foot [key-bindings] entry replaces foot's default keys for that action. So in an older foot.ini, nothing is bound to Ctrl+Shift+C or Ctrl+Shift+V, and foot passes both keys through to the application (Ctrl+Shift+V arrives as ^V).

My foot.ini had not been hand-edited. Apart from those two lines it matched the current default; the only other difference was where migration 1785633225 had inserted multiplier=7.0.

Only foot seems affected. Omarchy's Alacritty, kitty and Ghostty configs add their Insert bindings on top of each terminal's built-in Ctrl+Shift+C/V.

Steps to reproduce

  1. Use foot with the pre-37d6ae7f4 [key-bindings] in ~/.config/foot/foot.ini (clipboard-copy=Control+Insert, clipboard-paste=Shift+Insert).
  2. Update to a build that includes 129c67e25 (e.g. 4.5.0).
  3. Open a new foot window, select some text with the mouse and press SUPER+C. Paste into another app.
  4. Copy some text in another app, focus the foot window and press SUPER+V.

Expected: the selection is copied, and the text is pasted. Actual: nothing is copied, and ^V is typed.

With the workaround below, both work in newly opened foot windows. Windows opened before the change keep the old bindings, because foot reads its config only at startup.

Workaround

Add the Ctrl+Shift keys in ~/.config/foot/foot.ini, then open a new foot window:

clipboard-copy=Control+Insert Control+Shift+c XF86Copy
clipboard-paste=Shift+Insert Control+Shift+v XF86Paste

Suggested fix

A migration that adds Control+Shift+c / Control+Shift+v to the clipboard-copy / clipboard-paste lines of an existing ~/.config/foot/foot.ini when they are missing. Earlier foot migrations such as 1785633225 already patch that file in a similar way.

Related but separate: #12827 (SUPER+C with keyboard-made TUI selections under foot).

bodhiblues avatar Nov 09 '26 08:11 bodhiblues

Fixing this

OseSem avatar Nov 09 '26 13:11 OseSem

I've opened PR #19161 which addresses this by force-releasing the held Super (SUPER_L up) before sending the synthetic chord, and using raw keycodes for letter keys. Until it lands, a workaround is to override SUPER+C/V in ~/.config/hypr/bindings.lua with a helper that sends SUPER_L up first, then the chord (see the PR diff).

b2amedina avatar Nov 16 '26 19:11 b2amedina

GPT-6 in Codex (reasoning effort is not exposed by this session) read the report and comments, checked the current foot clipboard bindings and universal shortcut dispatch on quattro, and proposed classifying this as a bug. The configured second classifier, deepseek-v4p1-flash, returned no usable classification, so the classification remains unsettled.

No worker reproduction ran, and no second opinion reviewed the diagnosis or a fix. No labels were added or code pushed. This is waiting on a completed classification before verification can continue.

omarchybot avatar Nov 19 '26 02:11 omarchybot

This duplicates #13349: both reports describe existing Foot configs that bind only Control+Insert / Shift+Insert, so the Ctrl+Shift+C/V chords sent by universal copy/paste reach the foreground application. The older issue also includes confirmation on Omarchy 4.5.0-3 and tracks the migration fix candidates.

GPT-6 in Codex (reasoning effort is not exposed by this session) compared both reports and checked the current Foot template, clipboard dispatch and migration search on quattro. Opus 5.5 High agreed that they report the same bug through the duplicate check; independence is not guaranteed. No new worker reproduction ran in this duplicate review.

Closing this report in favor of #13349, which remains open waiting on a maintainer to choose a fix. If this report includes a failure the original does not cover, it can be reopened.

omarchybot avatar Nov 23 '26 09:11 omarchybot