Skip to content

feat(keymap_derive): support custom key symbols and help messages#41

Merged
rezigned merged 2 commits into
mainfrom
feat/custom-symbol-help
May 23, 2026
Merged

feat(keymap_derive): support custom key symbols and help messages#41
rezigned merged 2 commits into
mainfrom
feat/custom-symbol-help

Conversation

@rezigned
Copy link
Copy Markdown
Owner

Summary

Add support for custom key symbols and help text in keymap attribute definitions.

Changes:

  • Extended #[key(...)] attribute to accept symbol = "..." and help = "..." named arguments
  • Added symbol and help fields to Item struct with builder methods (with_symbol(), with_help())
  • Symbol defaults to first key binding if not explicitly provided
  • Added tests verifying symbol/help parsing and fallback behavior

Example usage:

#[key("ctrl-b", symbol = "^B", help = "jump")]
Jump

@rezigned rezigned force-pushed the feat/custom-symbol-help branch from 0960c34 to 9e391d4 Compare May 23, 2026 03:36
@rezigned rezigned force-pushed the feat/custom-symbol-help branch from 9e391d4 to 52833a5 Compare May 23, 2026 03:38
@rezigned rezigned merged commit 8e5ad6f into main May 23, 2026
4 checks passed
@rezigned rezigned deleted the feat/custom-symbol-help branch May 23, 2026 03:39
@github-actions github-actions Bot mentioned this pull request May 23, 2026
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