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
- 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
-
难度 2/5 1-3 小时 新手友好度 88/100
NVIDIA/gpu-operator#2955 ·
-
agentic-workflows
难度 2/5 1-3 小时 新手友好度 68/100
-
难度 1/5 1 小时以内 新手友好度 90/100
kovidgoyal/kitty#10516 ·
-
bug
难度 1/5 1 小时以内 新手友好度 90/100
cisagov/vulnrichment#337 ·
-
难度 1/5 1 小时以内 新手友好度 72/100