Support Ctrl+N / Ctrl+P for list navigation
還沒有人認領這個 Issue。
評估
研究方向
從 gh stack CLI 的 stack 和 prompt 導覽入口開始,追蹤箭頭鍵選取移動的處理位置。新增與箭頭鍵具有相同方向和行為的 Ctrl+N 和 Ctrl+P 導覽,然後驗證這兩個繫結都能正確移動選取項目。
由索引模型根據 Issue 內容生成。
描述
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+Nmoves to the next item (down)Ctrl+Pmoves 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+Kfor 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
ghversion: 2.90.0gh stackversion: 0.0.2
- 主要語言
- Go
- 星號
- 1.5k
- 分支
- 73
- 平均合併
- 1 天 8 小時
- 30 天內合併 PR
- 5
貢獻指南
從這裡開始
- 先讀完整個 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
-
agentic-workflows
難度 2/5 1-3 小時 新手友好度 76/100
-
agentic-workflows
難度 2/5 1-3 小時 新手友好度 70/100
microsoft/agent-framework-go#1179 ·
-
bug
難度 2/5 1-3 小時 新手友好度 76/100
-
[Bug]: OLLAMA_KEEP_ALIVE="5m" / "24h" crashes Ollama embedding and vision models with ValueError 未關閉
難度 2/5 1-3 小時 新手友好度 75/100
infiniflow/ragflow#20223 · 1 個 reaction ·
-
bug needs triage pkg/translator/faro
難度 2/5 1-3 小時 新手友好度 88/100
open-telemetry/opentelemetry-collector-contrib#51484 · 1 則留言 ·