gh-stack icon indicating copy to clipboard operation
gh-stack copied to clipboard

Make submit shortcut configurable (or change default from `Ctrl+S`)

Open marcoroth opened this issue 4 months ago • 1 comments

Summary

In the stack submission UI, Ctrl+S is used to submit to GitHub. Could we make this shortcut configurable (and/or consider a different default)?

Problem

Ctrl+S commonly maps to "save" in many terminal editors/tools, and in some terminal environments it can conflict with user expectations or existing keybindings. This can lead to accidental submissions or friction when switching contexts. In my case I was unable to submit my stack since Ctrl+S is being hijacked by my terminal and the gh TUI was never able to receive it.

Proposal

One of the following (in order of preference):

  1. Add configurable keybindings for TUI actions (including submit), with a sensible default.
  2. Keep Ctrl+S as an optional binding but add an additional default (e.g. Enter on focused submit, Ctrl+Enter, or s in a specific mode).
  3. If full keybinding customization is out of scope, switch the default submit shortcut to a less collision-prone key combo.

Additional context

Current behavior observed in stack submission flow where Ctrl+S triggers submit.

marcoroth avatar Jul 31 '26 15:07 marcoroth

Ran into this using Zed. I had to replace the keybinding from Workspace to Editor.

Vissie2 avatar Aug 04 '26 14:08 Vissie2