Support Ctrl+N / Ctrl+P for list navigation
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 72/100
Research direction
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.
Written by the indexing model from the issue text.
Description
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
- Dominant language
- Go
- Stars
- 1.5k
- Forks
- 73
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 7
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from github/gh-stack
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
-
feature request topic: cli - general
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
feature request topic: auto-merge
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
bug topic: docs
Difficulty 1/5 Under an hour Newbie friendliness 68/100
Similar issues
-
feature-request helm
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
gravitational/teleport#69785 ·
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 92/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
crossplane/crossplane#7859 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100