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

Support tiny commands in keymap config #410

Merged
merged 4 commits into from
Aug 5, 2023
Merged

Conversation

nthnd
Copy link
Contributor

@nthnd nthnd commented Aug 4, 2023

Allows the user to specify a config of this sort:

key_map:
  ctrl_d:
    run_command: quit

Fixes #403

nthnd added 2 commits August 4, 2023 10:31
allows the user to specify a config of this sort:
```yaml
key_map:
  ctrl_d:
    run_irc_command: quit
```

fixes osa1#403
Copy link
Owner

@osa1 osa1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Code looks great. Added some inline comments regarding naming.

crates/libtiny_tui/src/key_map.rs Outdated Show resolved Hide resolved
crates/libtiny_tui/src/key_map.rs Outdated Show resolved Hide resolved
Copy link
Owner

@osa1 osa1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks again!

@osa1 osa1 merged commit 66a1014 into osa1:master Aug 5, 2023
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

Successfully merging this pull request may close these issues.

String input key binding
2 participants