mattbrictson / bundle_update_interactive

A stylish interactive mode for Bundler, inspired by `yarn upgrade-interactive`
MIT License
137 stars 3 forks source link

Add Vim- and Emacs-like up/down keybindings #4

Closed dylnclrk closed 2 months ago

dylnclrk commented 2 months ago

Motivation

When I tried bundle ui for the first time, I found myself trying to move around the list with n/p and j/k. yarn upgrade-interactive listens for j/k keypresses to move around the table. Similarly, many CLIs support n/p to move up and down.

Proposed Change

Add listeners for those keys as described in the tty-prompt docs. To be honest, I wasn't totally sure what was going on in this file, so I'm not sure if this is the best place to set up these listeners.

Screen Recording 2024-07-14 at 3 10 17 PM

mattbrictson commented 2 months ago

Released in 0.2.0 https://github.com/mattbrictson/bundle_update_interactive/releases/tag/v0.2.0