Make submit shortcut configurable (or change default from `Ctrl+S`)
還沒有人認領這個 Issue。
評估
研究方向
首先定位 stack 提交 UI 以及目前 Ctrl+S 快捷鍵的 handler,然後檢查 gh-stack 如何接收終端輸入。根據提案決定所支援的 binding 行為,並驗證使用所選快捷鍵即可完成提交,而不依賴 Ctrl+S。
由索引模型根據 Issue 內容生成。
描述
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):
- Add configurable keybindings for TUI actions (including submit), with a sensible default.
- Keep
Ctrl+Sas an optional binding but add an additional default (e.g.Enteron focused submit,Ctrl+Enter, orsin a specific mode). - 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.
- 主要語言
- Go
- 星號
- 1.5k
- 分支
- 73
- 平均合併
- 1 天 8 小時
- 30 天內合併 PR
- 7
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
github/gh-stack 的其他 Issue
-
難度 2/5 1-3 小時 新手友好度 85/100
-
難度 1/5 1 小時以內 新手友好度 92/100
-
feature request topic: cli - general
難度 2/5 1-3 小時 新手友好度 68/100
-
feature request topic: auto-merge
難度 2/5 1-3 小時 新手友好度 68/100
-
bug topic: docs
難度 1/5 1 小時以內 新手友好度 68/100
相似的 Issue
-
難度 1/5 1 小時以內 新手友好度 60/100
github/gh-aw-mcpg#13748 ·
-
agentic-workflows
難度 2/5 1-3 小時 新手友好度 65/100
-
needs-triage
難度 2/5 1-3 小時 新手友好度 75/100
-
難度 2/5 1-3 小時 新手友好度 65/100
-
難度 2/5 1-3 小時 新手友好度 75/100
googleapis/librarian#7670 · 2 則留言 ·