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 a small table of key bindings to the "?" help dialog #91

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

robey
Copy link

@robey robey commented Jan 20, 2025

Extended Dialog to accept a Text, and used that to create a styled table of key bindings with manual layout.

Ideally, Dialog would take a widget and wrap it in a centered block, but I couldn't figure out how to do that with ratatui, and I think this is still a good first (second) step.

Table from: https://paulsmith.github.io/jj-builtin-diff-editor-cheatsheet/

image


Extended `Dialog` to accept a `Text`, and used that to create a styled
table of key bindings with manual layout.

Ideally, `Dialog` would take a widget and wrap it in a centered block, but
I couldn't figure out how to do that with ratatui, and I think this is
still a good first (second) step.

Table from: https://paulsmith.github.io/jj-builtin-diff-editor-cheatsheet/
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.

1 participant