github / github/gh-stack

Support Ctrl+N / Ctrl+P for list navigation

Đang mở Phù hợp với người mới
#58 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
feature request topic: cli - general
Ngôn ngữ chính
Go
Star
1.5k
Fork
70
Merge trung bình
1 ngày 8 giờ
Pull request đã merge (30 ngày)
7

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
go
Lĩnh vực
cli
Loại issue
Tính năng
Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức độ hoạt động
Ít trao đổi
Độ rõ ràng
Đặc tả rõ ràng
Mức phù hợp với người mới
72/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.