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

cli/list-keybinds: output chorded keybinds #5357

Merged
merged 1 commit into from
Jan 24, 2025

Conversation

dpatterbee
Copy link
Contributor

Print chorded/sequenced keybinds in +list-keybinds.

Recursively traverses the binding sets of sequenced keybinds and builds a singly-linked list of triggers for each leaf. Also adapted the current sorting criteria to work for multiple triggers per keybind.

Chorded keybinds are already output when not printing to a tty so that code path is unchanged.

Closes #4505

@dpatterbee dpatterbee marked this pull request as ready for review January 24, 2025 20:39
@mitchellh
Copy link
Contributor

Excellent work. Thank you!

@mitchellh mitchellh merged commit a88e301 into ghostty-org:main Jan 24, 2025
30 checks passed
@github-actions github-actions bot added this to the 1.1.0 milestone Jan 24, 2025
@dpatterbee dpatterbee deleted the list-chord-keybinds branch January 24, 2025 23:52
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.

cli: +list-keybinds doesn't show trigger sequence keybinds
2 participants