Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

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

未關閉
#383 1 則留言 1 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
4/5
預估耗時
3-5 天
新手友好度
48/100
Issue 類型
功能
描述清晰度
基本清楚
活躍度
冷清
技術堆疊
github, go
領域
cli

研究方向

首先定位 stack 提交 UI 以及目前 Ctrl+S 快捷鍵的 handler,然後檢查 gh-stack 如何接收終端輸入。根據提案決定所支援的 binding 行為,並驗證使用所選快捷鍵即可完成提交,而不依賴 Ctrl+S。

由索引模型根據 Issue 內容生成。

描述

feature request topic: cli - submit
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.

主要語言
Go
星號
1.5k
分支
73
平均合併
1 天 8 小時
30 天內合併 PR
7

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

github/gh-stack 的其他 Issue

查看 github/gh-stack 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。