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

Want a component for building and tracking modal input #1

Closed
ulyssa opened this issue Aug 25, 2021 · 0 comments
Closed

Want a component for building and tracking modal input #1

ulyssa opened this issue Aug 25, 2021 · 0 comments
Assignees

Comments

@ulyssa
Copy link
Owner

ulyssa commented Aug 25, 2021

In order to support building iamb, I would like to have a library that helps building modal editing interfaces. To start with, I need a component that can help map keyboard input to actions to take. It needs to support the following high-level features:

  • Multiple modes where input is interpreted differently, so that I can have a Normal mode, an Insert mode, and so on
  • Support for prefixing input with counts (1234), registers ("A) and more
  • Support for building pseudo-modes like operation-pending mode, so that common suffixes can be created for operations like d and y
  • Support for handling unmapped keys so that Insert mode can just type
  • Support for fetching the current mode so that the user interface can tell the user what mode they're in
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant