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

Support Ctrl+N / Ctrl+P for list navigation

未關閉 適合新手
#58 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
2/5
預估耗時
1-3 小時
新手友好度
72/100
Issue 類型
功能
描述清晰度
描述清楚
活躍度
冷清
技術堆疊
go
領域
cli

研究方向

從 gh stack CLI 的 stack 和 prompt 導覽入口開始,追蹤箭頭鍵選取移動的處理位置。新增與箭頭鍵具有相同方向和行為的 Ctrl+N 和 Ctrl+P 導覽,然後驗證這兩個繫結都能正確移動選取項目。

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

描述

feature request topic: cli - general
Summary

When navigating stacks and prompts, only the arrow keys work for moving the selection up and down. Ctrl+N / Ctrl+P do not work as alternatives.

Expected behavior

Support Unix / editor-style navigation so that:

  • Ctrl+N moves to the next item (down)
  • Ctrl+P moves to the previous item (up)

This matches common behavior in Vim, Emacs, VS Code, and many terminal UIs, and lets users keep their hands on the home row while working with gh stack.

Optionally, supporting Ctrl+J / Ctrl+K for down/up (or allowing these to be configured) would make the experience even more familiar for Vim users.

Actual behavior

Arrow keys move the selection, but Ctrl+N / Ctrl+P have no effect.

Environment
  • gh version: 2.90.0
  • gh stack version: 0.0.2
主要語言
Go
星號
1.5k
分支
73
平均合併
1 天 8 小時
30 天內合併 PR
5

貢獻指南

開啟貢獻指南

從這裡開始

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

github/gh-stack 的其他 Issue

查看 github/gh-stack 的全部 Issue

相似的 Issue

更多 Go Issue

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

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