github / github/gh-stack

Support Ctrl+N / Ctrl+P for list navigation

Ouverte Adaptée aux débutants
#58 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
feature request topic: cli - general
Langage dominant
Go
Étoiles
1.5k
Forks
70
Merge moyen
1 j 8 h
PR mergées (30 j)
7

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

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
go
Domaine
cli
Type d'issue
Fonctionnalité
Difficulté
2/5
Temps estimé
1-3 heures
Activité
Calme
Clarté
Clairement spécifiée
Accessibilité débutants
72/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.