github / github/gh-stack

Support Ctrl+N / Ctrl+P for list navigation

未关闭 适合新手
#58 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
feature request topic: cli - general
主要语言
Go
星标
1.5k
派生
70
平均合并
1 天 8 小时
30 天内合并 PR
7

描述

### 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

贡献指南

打开贡献指南

调研方向

Start in the gh stack CLI's stack and prompt navigation entry points, tracing where arrow-key selection movement is handled. Add Ctrl+N and Ctrl+P navigation with the same direction and behavior as the arrow keys, then verify both bindings move selection correctly.

由索引模型根据 Issue 内容生成。

评估

技术栈
go
领域
cli
Issue 类型
功能
难度
2/5
预计耗时
1-3 小时
活跃度
冷清
描述清晰度
描述清楚
新手友好度
72/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。