Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for keyboard shortcuts on multi-selection menus #8

Open
tbarusseau opened this issue Jul 17, 2020 · 1 comment
Open

Add support for keyboard shortcuts on multi-selection menus #8

tbarusseau opened this issue Jul 17, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@tbarusseau
Copy link
Contributor

Currently, running git cm offers a quite lengthy menu:

$ git cm
? Select the type of change that you're committing: ›
❯ feat: A new feature
  test: Adding missing tests or correcting existing tests
  ci: Changes to our CI configuration files and scripts (example scopes: Travis, Circle, GitHub Actions)
  build: Changes that affect the build system or external dependencies (example scopes: cargo, bazel, make)
  style: Changes that do not affect the meaning of the code (white-space, formatting, etc)
  chore: Other changes that don't modify src or test files
  perf: A code change that improves performance
  fix: A bug fix
  revert: Reverts a previous commit
  docs: Documentation only changes
  refactor: A code change that neither fixes a bug nor adds a feature

Being able to instantly select one with a key-press would make it really faster to use.

I'm thinking about some letter hints, which are indicated by a line below the relevant character.

@mainrs
Copy link
Owner

mainrs commented Jul 17, 2020

I like the underline thingy! I was thinking about maybe adding a fuzzy search, where you can type for example fix and it filters out everything that matches it.

@mainrs mainrs added the enhancement New feature or request label Jul 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants