Support Ctrl+N / Ctrl+P for list navigation
- 主要言語
- Go
- スター
- 1.5k
- フォーク
- 70
- 平均マージ
- 1日 8時間
- マージ済み PR(30日)
- 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
コントリビューションガイド
調査の方向性
gh stack CLI の stack と prompt のナビゲーションエントリポイントから開始し、矢印キーによる選択項目の移動がどこで処理されているかを追跡します。矢印キーと同じ方向および動作で Ctrl+N と Ctrl+P によるナビゲーションを追加し、両方のバインディングで選択項目が正しく移動することを確認します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- go
- 領域
- cli
- issue の種類
- 機能追加
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 活発さ
- 静か
- 明瞭さ
- 明確に書かれている
- 初心者へのやさしさ
- 72/100